/* ==========================================================================
   INDEX PAGE SPECIFIC STYLES
   ========================================================================== */

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.content-wrapper {
    text-align: center;
    width: 100%;
    max-width: 1200px;
}

.page-title {
    color: white;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    font-family: 'STIX Two Text', serif;
}

.page-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    margin-bottom: 4rem;
    font-weight: 300;
}

/* Language Rotating Card */
.language-card {
    background: var(--color-warm-white);
    border-radius: 20px;
    padding: 2.5rem 3rem;
    margin: 0 auto 3rem;
    max-width: 700px;
    perspective: 1000px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(78, 23, 46, 0.1);
    z-index: 5;
}

.language-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 20px;
    border: 1px solid rgba(255, 100, 59, 0.1);
}

.language-slider {
    position: relative;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-content {
    position: absolute;
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.language-content.active {
    opacity: 1;
    transform: translateY(0);
    z-index: 2;
}

.language-content.exiting {
    opacity: 0;
    transform: translateY(-30px);
}

.rotating-title {
    color: var(--color-aubergine);
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: 'STIX Two Text', serif;
    line-height: 1.2;
}

.rotating-subtitle {
    color: var(--color-aubergine);
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.8;
}

.language-indicator {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(78, 23, 46, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.indicator-dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--color-orange);
}

/* Test Cards Container */
.tests-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* Test Card */
.test-card {
    background: var(--color-warm-white);
    border-radius: 20px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 30px rgba(78, 23, 46, 0.15);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    transition: all 0.3s ease;
    z-index: 5;
}

.test-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(78, 23, 46, 0.2);
}

.test-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
}

/* Card specific colors */
.test-card.latvian::before {
    background: linear-gradient(135deg, var(--color-aubergine) 0%, var(--color-orange) 100%);
}

.test-card.english::before {
    background: linear-gradient(135deg, var(--color-aubergine) 0%, #C2AFF0 100%);
}

.test-card.german::before {
    background: linear-gradient(135deg, #FFD900 0%, var(--color-orange) 100%);
}

/* Card Content */
.test-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
}

.test-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.test-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-aubergine);
    font-family: 'STIX Two Text', serif;
}

.test-description {
    font-size: 1rem;
    color: var(--color-aubergine);
    margin-bottom: 1rem;
}

.test-level {
    font-size: 0.9rem;
    color: var(--color-aubergine);
    font-style: italic;
    opacity: 0.7;
}

/* Arrow indicator */
.arrow-indicator {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(78, 23, 46, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .language-card {
        padding: 2rem 1.5rem;
    }

    .rotating-title {
        font-size: 2rem;
    }

    .rotating-subtitle {
        font-size: 1rem;
    }

    .language-slider {
        height: 120px;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1.1rem;
        margin-bottom: 3rem;
    }

    .tests-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .test-card {
        min-height: 200px;
    }
}

@media (max-width: 576px) {
    .rotating-title {
        font-size: 1.6rem;
    }

    .rotating-subtitle {
        font-size: 0.95rem;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }
}