/* BİLSEM Specific Styles */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&display=swap');

:root {
    --bilsem-primary: #FF6B6B;
    --bilsem-secondary: #4ECDC4;
    --bilsem-accent: #FFE66D;
    --bilsem-dark: #2C3E50;
    --bilsem-bg: #F7F9FC;
    --text-primary: #f8fafc;
    /* Keep compatibility */
}

/* Override body font for this page specific */
body[data-page="bilsem"] {
    background-color: #0F172A;
    /* Dark theme consistent with main site but colorful elements */
    font-family: 'Fredoka', 'Inter', sans-serif;
}

.bilsem-container {
    padding-bottom: 4rem;
}

.bilsem-hero {
    text-align: center;
    margin-bottom: 3rem;
    background: radial-gradient(circle at center, rgba(78, 205, 196, 0.1), transparent 70%);
    padding: 3rem 1rem;
    border-radius: 2rem;
}

.bilsem-hero h1 {
    font-size: 3.5rem;
    color: var(--bilsem-secondary);
    text-shadow: 0 4px 0 rgba(78, 205, 196, 0.2);
    margin-bottom: 1rem;
}

.bilsem-hero p {
    color: #94a3b8;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Class Selector */
.class-selector {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 99px;
    gap: 0.5rem;
}

.class-btn {
    background: transparent;
    border: none;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 99px;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.class-btn.active {
    background: var(--bilsem-primary);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.class-btn:not(.active):hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Sections */
.section-title {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

/* Progress Section */
.progress-section {
    margin-bottom: 3rem;
}

.progress-card {
    background: linear-gradient(135deg, #2C3E50, #1E293B);
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-card h3 {
    color: #fff;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: center;
}

.stat-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 1rem;
}

.stat-label {
    display: block;
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--bilsem-accent);
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.game-card {
    background: #1E293B;
    border: 2px solid #334155;
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: var(--bilsem-secondary);
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.2);
}

.game-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    transition: transform 0.3s;
}

.game-card:hover .game-icon {
    transform: scale(1.2) rotate(10deg);
}

.game-card h3 {
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.game-card p {
    color: #94a3b8;
}

/* Reading Tool */
.reading-tool {
    background: #1E293B;
    border-radius: 2rem;
    padding: 3rem;
    text-align: center;
    border: 2px solid #334155;
    margin-bottom: 4rem;
}

.word-display {
    font-size: 4rem;
    font-weight: 700;
    color: var(--bilsem-accent);
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 1rem;
    padding: 1rem;
}

.reading-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.speed-control {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1.5rem;
    border-radius: 99px;
    color: #fff;
}

/* Exam List */
.exam-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.exam-item {
    background: #1E293B;
    padding: 1.5rem;
    border-radius: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #334155;
    transition: all 0.2s;
}

.exam-item:hover {
    border-color: var(--bilsem-primary);
    transform: translateX(5px);
}

.exam-info h4 {
    color: #fff;
    margin-bottom: 0.25rem;
    font-size: 1.2rem;
}

.exam-info span {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* IQ Banner */
.iq-banner {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    border-radius: 1.5rem;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}

.iq-banner:hover {
    transform: scale(1.02);
}

.iq-banner::before {
    content: '🧠';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 10rem;
    opacity: 0.2;
    transform: rotate(20deg);
}

.iq-banner h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.iq-banner p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

/* Game Modal Specifics */
.game-modal-content {
    background: #0F172A;
    border: 2px solid var(--bilsem-secondary);
    max-width: 800px;
}

#gameCanvasArea {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1E293B;
    border-radius: 1rem;
    margin: 1rem 0;
}

/* Memory Game Styles */
.memory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    width: 100%;
    max-width: 500px;
}

.memory-card {
    aspect-ratio: 1;
    background: var(--bilsem-primary);
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: transparent;
    transition: transform 0.3s, background 0.3s;
    user-select: none;
}

.memory-card.flipped {
    background: #fff;
    color: #000;
    transform: rotateY(180deg);
}

.memory-card.matched {
    background: var(--bilsem-secondary);
    color: #fff;
    opacity: 0.5;
    cursor: default;
}