/* ============================================================
   EXAM PREPARATION FLASH CARDS - GLASSMORPHISM DESIGN
   Premium Flash Card Aesthetic for Language School
   ============================================================ */

/* Section Container */
.exam-flash-cards-section {
    position: relative;
    padding: 5rem 0;
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 50%, #0f1419 100%);
    overflow: hidden;
}

/* Animated Background Orbs */
.exam-flash-cards-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-gentle 25s ease-in-out infinite;
    pointer-events: none;
}

.exam-flash-cards-section::after {
    content: '';
    position: absolute;
    bottom: -25%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-gentle 30s ease-in-out infinite reverse;
    pointer-events: none;
}

@keyframes float-gentle {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    50% {
        transform: translateY(-40px) translateX(30px);
    }
}

/* Section Header */
.exam-cards-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.exam-cards-title {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.exam-cards-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* Flash Cards Grid */
.flash-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

/* Individual Flash Card */
.flash-card {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem;
    
    /* Glassmorphism Base */
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Top Shine Effect */
.flash-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    pointer-events: none;
}

/* Gradient Overlay for Accent */
.flash-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent);
    border-radius: 28px;
    pointer-events: none;
}

/* Card Content */
.flash-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Card Title */
.flash-card-title {
    font-size: clamp(1.3rem, 3.5vw, 1.75rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
    text-align: center;
}

/* Logo Container */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
    flex-grow: 1;
}

/* Individual Logo Circle */
.logo-circle {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    
    /* Glassmorphism for Logo */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

/* Logo Circle Hover */
.flash-card:hover .logo-circle {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.1) translateY(-5px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Logo Placeholder Icon */
.logo-placeholder {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.flash-card:hover .logo-placeholder {
    color: rgba(255, 255, 255, 0.85);
}

/* Logo Image (if provided) */
.logo-image {
    width: 85%;
    height: 85%;
    object-fit: contain;
    border-radius: 50%;
    padding: 5px;
}

/* Card Details Section */
.flash-card-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* Detail Item */
.detail-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    color: rgba(255, 255, 255, 0.85);
    flex-wrap: wrap;
}

.detail-label {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}

.detail-value {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

/* Accent Colors for Different Exam Types */

/* IELTS - Cool Blue Accent */
.flash-card.ielts-card {
    border-color: rgba(52, 152, 219, 0.25);
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.08), rgba(255, 255, 255, 0.05));
}

.flash-card.ielts-card::before {
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.3), transparent);
}

.flash-card.ielts-card .logo-circle {
    border-color: rgba(52, 152, 219, 0.3);
    background: rgba(52, 152, 219, 0.06);
}

.flash-card.ielts-card:hover {
    border-color: rgba(52, 152, 219, 0.4);
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.12), rgba(255, 255, 255, 0.08));
    box-shadow: 
        0 12px 48px rgba(52, 152, 219, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.flash-card.ielts-card:hover .logo-circle {
    border-color: rgba(52, 152, 219, 0.5);
    background: rgba(52, 152, 219, 0.12);
    box-shadow: 
        0 8px 25px rgba(52, 152, 219, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Spanish Exam - Warm Orange/Red Accent */
.flash-card.spanish-card {
    border-color: rgba(255, 107, 157, 0.25);
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.08), rgba(255, 255, 255, 0.05));
}

.flash-card.spanish-card::before {
    background: linear-gradient(90deg, transparent, rgba(255, 107, 157, 0.3), transparent);
}

.flash-card.spanish-card .logo-circle {
    border-color: rgba(255, 107, 157, 0.3);
    background: rgba(255, 107, 157, 0.06);
}

.flash-card.spanish-card:hover {
    border-color: rgba(255, 107, 157, 0.4);
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.12), rgba(255, 255, 255, 0.08));
    box-shadow: 
        0 12px 48px rgba(255, 107, 157, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.flash-card.spanish-card:hover .logo-circle {
    border-color: rgba(255, 107, 157, 0.5);
    background: rgba(255, 107, 157, 0.12);
    box-shadow: 
        0 8px 25px rgba(255, 107, 157, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* German Exam - Emerald Green Accent */
.flash-card.german-card {
    border-color: rgba(46, 204, 113, 0.25);
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.08), rgba(255, 255, 255, 0.05));
}

.flash-card.german-card::before {
    background: linear-gradient(90deg, transparent, rgba(46, 204, 113, 0.3), transparent);
}

.flash-card.german-card .logo-circle {
    border-color: rgba(46, 204, 113, 0.3);
    background: rgba(46, 204, 113, 0.06);
}

.flash-card.german-card:hover {
    border-color: rgba(46, 204, 113, 0.4);
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.12), rgba(255, 255, 255, 0.08));
    box-shadow: 
        0 12px 48px rgba(46, 204, 113, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.flash-card.german-card:hover .logo-circle {
    border-color: rgba(46, 204, 113, 0.5);
    background: rgba(46, 204, 113, 0.12);
    box-shadow: 
        0 8px 25px rgba(46, 204, 113, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* General Hover Effect */
.flash-card:hover {
    transform: translateY(-12px) scale(1.02);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

/* Focus State for Accessibility */
.flash-card:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 4px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .flash-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }

    .flash-card {
        min-height: 450px;
        padding: 2rem;
    }

    .flash-card-title {
        font-size: clamp(1.2rem, 3vw, 1.5rem);
        margin-bottom: 1.5rem;
    }

    .logo-circle {
        width: 110px;
        height: 110px;
    }

    .logo-placeholder {
        font-size: 2.8rem;
    }

    .detail-row {
        font-size: clamp(0.9rem, 2.2vw, 1rem);
    }
}

@media (max-width: 768px) {
    .exam-flash-cards-section {
        padding: 3rem 0;
    }

    .exam-cards-header {
        margin-bottom: 3rem;
    }

    .exam-cards-title {
        font-size: 2rem;
    }

    .exam-cards-subtitle {
        font-size: 1rem;
    }

    .flash-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .flash-card {
        min-height: 380px;
        padding: 1.2rem;
        border-radius: 20px;
    }

    .flash-card-title {
        font-size: clamp(1.2rem, 3vw, 1.5rem);
        margin-bottom: 1rem;
    }

    .logo-container {
        gap: 0.8rem;
        margin: 1.2rem 0;
    }

    .logo-circle {
        width: 110px;
        height: 110px;
    }

    .logo-placeholder {
        font-size: 2.8rem;
    }

    .flash-card-details {
        gap: 0.7rem;
        margin-top: 1rem;
        padding-top: 1rem;
    }

    .detail-row {
        font-size: clamp(0.95rem, 2.2vw, 1.05rem);
    }

    .detail-label {
        font-size: clamp(0.9rem, 2vw, 1rem);
    }

    .detail-value {
        font-size: clamp(0.9rem, 2vw, 1rem);
    }
}

@media (max-width: 480px) {
    .exam-flash-cards-section {
        padding: 1.5rem 0;
    }

    .exam-cards-title {
        font-size: 1.5rem;
        margin-bottom: 0.6rem;
    }

    .exam-cards-subtitle {
        font-size: 0.9rem;
    }

    .flash-cards-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        padding: 0 0.5rem;
    }

    .flash-card {
        min-height: 360px;
        padding: 1rem;
        border-radius: 18px;
    }

    .flash-card-title {
        font-size: clamp(1.15rem, 3vw, 1.4rem);
        margin-bottom: 0.8rem;
    }

    .logo-container {
        gap: 0.6rem;
        margin: 1rem 0;
    }

    .logo-circle {
        width: 105px;
        height: 105px;
    }

    .logo-placeholder {
        font-size: 2.6rem;
    }

    .flash-card-details {
        gap: 0.5rem;
        margin-top: 0.8rem;
        padding-top: 0.8rem;
    }

    .detail-row {
        font-size: clamp(0.95rem, 2vw, 1.05rem);
    }

    .detail-label {
        font-size: clamp(0.9rem, 1.8vw, 1rem);
    }

    .detail-value {
        font-size: clamp(0.9rem, 1.8vw, 1rem);
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .exam-flash-cards-section {
        padding: 1.2rem 0;
    }

    .exam-cards-title {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }

    .exam-cards-subtitle {
        font-size: 0.85rem;
    }

    .flash-cards-grid {
        gap: 0.6rem;
        padding: 0 0.3rem;
    }

    .flash-card {
        padding: 0.9rem;
        min-height: 340px;
        border-radius: 16px;
    }

    .flash-card-title {
        font-size: clamp(1.05rem, 2.8vw, 1.25rem);
        margin-bottom: 0.6rem;
    }

    .logo-container {
        gap: 0.4rem;
        margin: 0.8rem 0;
    }

    .logo-circle {
        width: 95px;
        height: 95px;
    }

    .logo-placeholder {
        font-size: 2.4rem;
    }

    .flash-card-details {
        gap: 0.4rem;
        margin-top: 0.6rem;
        padding-top: 0.6rem;
    }

    .detail-row {
        font-size: clamp(0.9rem, 1.6vw, 1rem);
        gap: 0.2rem;
    }

    .detail-label {
        font-size: clamp(0.85rem, 1.4vw, 0.95rem);
    }

    .detail-value {
        font-size: clamp(0.85rem, 1.4vw, 0.95rem);
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .exam-flash-cards-section::before,
    .exam-flash-cards-section::after {
        animation: none;
    }

    .flash-card,
    .logo-circle {
        transition: none;
    }

    .flash-card:hover {
        transform: none;
    }

    .logo-circle:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .exam-flash-cards-section::before,
    .exam-flash-cards-section::after {
        display: none;
    }

    .flash-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 2px solid #ccc;
    }
}
