/* Base styles */
.layout-selection {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url('../icons/Dracan_top_txt1.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    z-index: 2000;
    overflow: auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Blur Overlay */
.blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: -1;
}

/* WebKit-based browsers (Chrome, Safari) */
.layout-selection::-webkit-scrollbar {
    width: 8px;
}

.layout-selection::-webkit-scrollbar-track {
    background: #333;
    border-radius: 4px;
}

.layout-selection::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 4px;
    border: 2px solid #333;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.layout-selection::-webkit-scrollbar-thumb:hover {
    background-color: #D78565;
    border-color: #D78565;
}

/* Firefox */
.layout-selection {
    scrollbar-width: thin;
    scrollbar-color: #555 #333;
}

.layout-selection:hover {
    scrollbar-color: #D78565 #333;
}

.layout-selection .layout-logo {
    width: 200px;
    height: auto;
    margin-top: 20px;
    margin-bottom: 10px;
}

.layout-selection .layout-title {
    font-weight: bold;
    font-family: 'Conquera', sans-serif;
    font-size: 24px;
    color: #D78565;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ==================== VERSION CAROUSEL STYLES ==================== */

.version-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    gap: 20px;
    flex: 1;
    min-height: 0;
}

.version-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    max-width: 800px;
    min-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.version-content.slide-out-left {
    opacity: 0;
    transform: translateX(-50px);
}

.version-content.slide-out-right {
    opacity: 0;
    transform: translateX(50px);
}

.version-content.slide-in-left {
    opacity: 0;
    transform: translateX(50px);
}

.version-content.slide-in-right {
    opacity: 0;
    transform: translateX(-50px);
}

.version-image-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    flex-shrink: 1;
    min-height: 150px;
}

.version-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Coming soon overlay removed - using button text instead */

.version-name {
    font-weight: bold;
    font-family: 'Conquera', sans-serif;
    font-size: 24px;
    color: #D78565;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: opacity 0.3s ease;
}

.version-name.hidden {
    display: none;
}

.version-details {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 25px;
    max-width: 600px;
    flex-shrink: 0;
}

.version-details.hidden {
    display: none;
}

.version-details li {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #bbb;
    position: relative;
    padding-left: 20px;
}

.version-details li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: #D78565;
    font-size: 12px;
}

/* Carousel Arrow Buttons */
.carousel-arrow {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.carousel-arrow:hover {
    background: rgba(215, 133, 101, 0.3);
    border-color: #D78565;
    color: #D78565;
    transform: scale(1.1);
}

.carousel-arrow:active {
    transform: scale(0.95);
}

.carousel-arrow svg {
    width: 24px;
    height: 24px;
}

/* Version Indicators (dots) */
.version-indicators {
    display: flex;
    gap: 12px;
    margin: 15px 0;
    flex-shrink: 0;
}

.version-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.version-indicator:hover {
    background: rgba(215, 133, 101, 0.5);
    border-color: #D78565;
}

.version-indicator.active {
    background: #D78565;
    border-color: #D78565;
    transform: scale(1.2);
}

.version-indicator.coming-soon-dot {
    opacity: 0.5;
}

/* Select Button */
.version-select-btn {
    font-family: 'Conquera', sans-serif;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #D78565 0%, #c06a4a 100%);
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(215, 133, 101, 0.4);
    margin-bottom: 30px;
}

.version-select-btn:hover {
    background: linear-gradient(135deg, #e8967a 0%, #D78565 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(215, 133, 101, 0.5);
}

.version-select-btn:active {
    transform: translateY(0);
}

.version-select-btn:disabled {
    background: #555;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.6;
}

/* Hide carousel when showing layouts/finishes */
.version-carousel.hidden,
.version-indicators.hidden,
.version-select-btn.hidden {
    display: none;
}

.layout-selection .layout-options {
    display: flex;
    justify-content: space-around;
    gap: 40px;
    width: 80%;
}

.layout-selection .layout-option {
    background-color: #1b1b1b;
    border-radius: 8px;
    padding: 30px;
    width: 30%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-align: center; /* Center all content */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.layout-selection .layout-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    border: 2px solid #D78565;
}

.layout-selection .layout-option-title {
    font-family: 'Conquera', sans-serif;
    font-size: 20px;
    color: #D78565;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
}

.layout-selection .layout-option-description {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    color: #bbb;
    line-height: 1.5;
    text-align: left; /* Left align the description */
    margin-bottom: 10px;
    padding-left: auto; /* Add padding for the tick marks */
    list-style-type: none; /* Remove default bullets */
}

.layout-selection .layout-option-description li {
    position: relative;
    padding-left: 20px; /* Space for the tick mark */
    margin-bottom: 10px;
}

.layout-selection .layout-option-description li::before {
    content: '✔'; /* Unicode character for a check mark */
    position: absolute;
    left: 0;
    color: #D78565; /* Match the theme color */
    font-size: 16px; /* Size of the tick mark */
}


/* Coming Soon Overlay for versions */
.coming-soon {
    position: relative;
    cursor: not-allowed;
    overflow: hidden; /* Ensure child elements do not overflow */
    border: 2px solid #444; /* Border to match the design theme */
    border-radius: 8px; /* Rounded corners for a sleek look */
}

.coming-soon::before {
    content: "Coming Soon";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.75); /* Dark overlay for better contrast */
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    font-family: 'Conquera', sans-serif;
    font-size: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 10;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    opacity: 0.85;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.coming-soon:hover::before {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 1;
}

.coming-soon::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 5;
}

/* Hide layout-options when version carousel is visible */
.layout-options.hidden {
    display: none;
}

/* ==================== RESPONSIVE STYLES ==================== */

/* Responsive adjustments for tablets (1024px and below) */
@media (max-width: 1024px) {
    .layout-selection .layout-options {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-bottom: 30px;
    }

    .layout-selection .layout-option {
        width: 80%;
        max-width: 400px;
    }

    .layout-selection .layout-title {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .version-carousel {
        gap: 15px;
    }

    .version-image-container {
        max-width: 500px;
    }

    .carousel-arrow {
        width: 48px;
        height: 48px;
    }

    .version-name {
        font-size: 16px;
    }

    .version-select-btn {
        padding: 10px 18px;
        font-size: 16px;
    }
}

/* Responsive adjustments for tablets and large phones (768px and below) */
@media (max-width: 768px) {
    .layout-selection .layout-options {
        width: 90%;
        gap: 20px;
    }

    .layout-selection .layout-option {
        width: 90%;
        padding: 20px;
    }

    .layout-selection .layout-title {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .layout-selection .layout-logo {
        width: 150px;
    }

    .layout-selection .layout-option-title {
        font-size: 20px;
    }

    .layout-selection .layout-option-description {
        font-size: 14px;
        padding-left: 15px;
    }

    .version-carousel {
        gap: 10px;
    }

    .version-image-container {
        max-width: 400px;
    }

    .carousel-arrow {
        width: 44px;
        height: 44px;
    }

    .carousel-arrow svg {
        width: 20px;
        height: 20px;
    }

    .version-name {
        font-size: 16px;
    }

    .version-details {
        gap: 10px 20px;
    }

    .version-details li {
        font-size: 13px;
    }

    .coming-soon-overlay {
        font-size: 22px;
    }
}

/* Responsive adjustments for mobile phones (480px and below) */
@media (max-width: 480px) {
    .layout-selection {
        padding: 15px;
    }

    .layout-selection .layout-options {
        width: 100%;
        gap: 10px;
    }

    .layout-selection .layout-option {
        width: 85%;
        padding: 15px;
    }

    .layout-selection .layout-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .layout-selection .layout-logo {
        width: 120px;
        margin-top: 10px;
    }

    .layout-selection .layout-option-title {
        font-size: 18px;
    }

    .layout-selection .layout-option-description {
        font-size: 12px;
        padding-left: 10px;
    }

    .version-carousel {
        gap: 8px;
    }

    .version-image-container {
        max-width: 280px;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
    }

    .carousel-arrow svg {
        width: 18px;
        height: 18px;
    }

    .version-name {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .version-details {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .version-details li {
        font-size: 12px;
    }

    .version-indicators {
        gap: 10px;
        margin: 15px 0;
    }

    .version-indicator {
        width: 10px;
        height: 10px;
    }

    .version-select-btn {
        padding: 10px 18px;
        font-size: 14px;
        margin-bottom: 20px;
    }

    .coming-soon-overlay {
        font-size: 18px;
        letter-spacing: 2px;
    }
}
