/* Showcase Mainpage Styles - Converted from SCSS to CSS */

/* Default colors for options */
:root {
    --option-color-1: #ED5565;
    --option-color-2: #FC6E51;
    --option-color-3: #FFCE54;
    --option-color-4: #2ECC71;
    --option-color-5: #5D9CEC;
    --option-color-6: #AC92EC;
}

/* Showcase Container */
.showcase-mainpage {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    min-height: 600px;
    padding: 80px 40px;
    font-family: 'Roboto', sans-serif;
    transition: 0.25s;
    background: #f8f9fa;
    width: 100%;
}

.showcase-mainpage .credit {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: inherit;
    font-size: 0.85rem;
    opacity: 0.7;
}

.showcase-mainpage .options {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    overflow: hidden;
    min-width: 300px;
    max-width: 100%;
    width: calc(100% - 80px);
    height: 500px;
}

/* Responsive breakpoints - Tablet */
@media screen and (max-width: 992px) {
    .showcase-mainpage .options .option:nth-child(5) {
        display: none;
    }
}

/* Responsive breakpoints - Mobile Large */
@media screen and (max-width: 768px) {
    .showcase-mainpage {
        padding: 30px 10px;
        min-height: 350px;
        overflow-x: hidden;
    }
    
    .showcase-mainpage .options {
        width: 100%;
        height: 320px;
        min-width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0 5px;
    }
    
    .showcase-mainpage .options .option {
        margin: 3px;
        min-width: 45px;
    }
    
    .showcase-mainpage .options .option.active {
        max-width: 100%;
        border-radius: 25px;
        margin: 0;
    }
    
    .showcase-mainpage .options .option.active .label {
        bottom: 12px;
        left: 12px;
        right: 12px;
    }
    
    .showcase-mainpage .options .option.active .label .info {
        margin-left: 8px;
    }
    
    .showcase-mainpage .options .option.active .label .info .main {
        font-size: 0.95rem;
        line-height: 1.2;
    }
    
    .showcase-mainpage .options .option.active .label .info .sub {
        font-size: 0.75rem;
        line-height: 1.2;
    }
    
    .showcase-mainpage .options .option.active .label .icon {
        min-width: 35px;
        max-width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .showcase-mainpage .options .option:nth-child(4) {
        display: none;
    }
    
    .showcase-mainpage .options .option:nth-child(5) {
        display: none;
    }
}

/* Responsive breakpoints - Mobile Medium */
@media screen and (max-width: 576px) {
    .showcase-mainpage {
        padding: 25px 8px;
        min-height: 300px;
        overflow-x: hidden;
    }
    
    .showcase-mainpage .options {
        width: 100%;
        height: 280px;
        min-width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0 3px;
    }
    
    .showcase-mainpage .options .option {
        margin: 2px;
        min-width: 40px;
    }
    
    .showcase-mainpage .options .option.active {
        border-radius: 20px;
        margin: 0;
    }
    
    .showcase-mainpage .options .option.active .label {
        bottom: 10px;
        left: 10px;
        right: 10px;
    }
    
    .showcase-mainpage .options .option.active .label .icon {
        min-width: 32px;
        max-width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    
    .showcase-mainpage .options .option.active .label .info {
        margin-left: 6px;
    }
    
    .showcase-mainpage .options .option.active .label .info .main {
        font-size: 0.85rem;
        line-height: 1.2;
    }
    
    .showcase-mainpage .options .option.active .label .info .sub {
        font-size: 0.7rem;
        line-height: 1.2;
    }
    
    .showcase-mainpage .options .option:nth-child(3) {
        display: none;
    }
    
    .showcase-mainpage .options .option:nth-child(4) {
        display: none;
    }
    
    .showcase-mainpage .options .option:nth-child(5) {
        display: none;
    }
}

/* Responsive breakpoints - Mobile Small */
@media screen and (max-width: 400px) {
    .showcase-mainpage {
        padding: 20px 5px;
        min-height: 280px;
        overflow-x: hidden;
    }
    
    .showcase-mainpage .options {
        width: 100%;
        height: 250px;
        min-width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0 2px;
    }
    
    .showcase-mainpage .options .option {
        margin: 1px;
        min-width: 35px;
    }
    
    .showcase-mainpage .options .option.active {
        border-radius: 18px;
        margin: 0;
    }
    
    .showcase-mainpage .options .option.active .label {
        bottom: 8px;
        left: 8px;
        right: 8px;
    }
    
    .showcase-mainpage .options .option.active .label .icon {
        min-width: 30px;
        max-width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .showcase-mainpage .options .option.active .label .info {
        margin-left: 5px;
    }
    
    .showcase-mainpage .options .option.active .label .info .main {
        font-size: 0.8rem;
    }
    
    .showcase-mainpage .options .option.active .label .info .sub {
        font-size: 0.65rem;
    }
    
    .showcase-mainpage .options .option:nth-child(2) {
        display: none;
    }
    
    .showcase-mainpage .options .option:nth-child(3) {
        display: none;
    }
    
    .showcase-mainpage .options .option:nth-child(4) {
        display: none;
    }
    
    .showcase-mainpage .options .option:nth-child(5) {
        display: none;
    }
}

.showcase-mainpage .options .option {
    position: relative;
    overflow: hidden;
    min-width: 60px;
    margin: 10px;
    background-color: var(--defaultBackground, #E6E9ED);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: 0.5s cubic-bezier(0.05, 0.61, 0.41, 0.95);
}

/* Default background colors for each option */
.showcase-mainpage .options .option:nth-child(1) {
    --defaultBackground: var(--option-color-1);
}

.showcase-mainpage .options .option:nth-child(2) {
    --defaultBackground: var(--option-color-2);
}

.showcase-mainpage .options .option:nth-child(3) {
    --defaultBackground: var(--option-color-3);
}

.showcase-mainpage .options .option:nth-child(4) {
    --defaultBackground: var(--option-color-4);
}

.showcase-mainpage .options .option:nth-child(5) {
    --defaultBackground: var(--option-color-5);
}

.showcase-mainpage .options .option:nth-child(6) {
    --defaultBackground: var(--option-color-6);
}

/* Active state */
.showcase-mainpage .options .option.active {
    flex-grow: 10000;
    transform: scale(1);
    max-width: 800px;
    margin: 0px;
    border-radius: 40px;
    background-size: cover;
}

.showcase-mainpage .options .option.active .shadow {
    box-shadow: inset 0 -120px 120px -120px black, inset 0 -120px 120px -100px black;
}

.showcase-mainpage .options .option.active .label {
    bottom: 20px;
    left: 20px;
}

.showcase-mainpage .options .option.active .label .info > div {
    left: 0px;
    opacity: 1;
    visibility: visible;
}

/* Inactive state */
.showcase-mainpage .options .option:not(.active) {
    flex-grow: 1;
    border-radius: 30px;
}

.showcase-mainpage .options .option:not(.active) .shadow {
    bottom: -40px;
    box-shadow: inset 0 -120px 0px -120px black, inset 0 -120px 0px -100px black;
}

.showcase-mainpage .options .option:not(.active) .label {
    bottom: 10px;
    left: 10px;
}

.showcase-mainpage .options .option:not(.active) .label .info {
    opacity: 0.3;
}

.showcase-mainpage .options .option:not(.active) .label .info > div {
    left: 20px;
    opacity: 0;
    visibility: hidden;
}

/* Shadow overlay */
.showcase-mainpage .options .option .shadow {
    position: absolute;
    bottom: 0px;
    left: 0px;
    right: 0px;
    height: 120px;
    transition: 0.5s cubic-bezier(0.05, 0.61, 0.41, 0.95);
    z-index: 1;
    pointer-events: none;
}

/* Label container */
.showcase-mainpage .options .option .label {
    display: flex;
    position: absolute;
    right: 0px;
    height: 40px;
    transition: 0.5s cubic-bezier(0.05, 0.61, 0.41, 0.95);
    z-index: 2;
    pointer-events: none;
}

.showcase-mainpage .options .option .label .icon {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    min-width: 40px;
    max-width: 40px;
    height: 40px;
    border-radius: 100%;
    background-color: white;
    color: var(--defaultBackground);
    font-size: 1.1rem;
}

.showcase-mainpage .options .option .label .info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 10px;
    color: white;
    white-space: pre;
}

.showcase-mainpage .options .option .label .info > div {
    position: relative;
    transition: 0.5s cubic-bezier(0.05, 0.61, 0.41, 0.95), opacity 0.5s ease-out;
}

.showcase-mainpage .options .option .label .info .main {
    font-weight: bold;
    font-size: 1.2rem;
}

.showcase-mainpage .options .option .label .info .sub {
    transition-delay: 0.1s;
    font-size: 0.9rem;
    opacity: 0.9;
}


/* Large screens */
@media screen and (min-width: 1200px) {
    .showcase-mainpage {
        min-height: 700px;
        padding: 100px 40px;
    }
    
    .showcase-mainpage .options {
        height: 600px;
        width: calc(100% - 80px);
    }
    
    .showcase-mainpage .options .option.active {
        max-width: 1000px;
    }
}
