/* ================================================
   COMPONENTS - Grade Cards, Progress Bars, Badges
   Gamification Elements
   ================================================ */

/* ================== GRADE CARDS ================== */

.grade-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.grade-card {
    position: relative;
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    cursor: pointer;
}

.grade-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

/* Grade Card Colors */
.grade-card[data-grade="1"] { border-top: 5px solid var(--primary-blue); }
.grade-card[data-grade="2"] { border-top: 5px solid var(--primary-green); }
.grade-card[data-grade="3"] { border-top: 5px solid var(--primary-orange); }
.grade-card[data-grade="4"] { border-top: 5px solid var(--primary-purple); }
.grade-card[data-grade="teacher"] { border-top: 5px solid var(--primary-pink); }

.grade-card-header {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    aspect-ratio: 16 / 9;
}

.grade-card-illustration {
    /* İkonlar sol üstte konumlandırıldı - inline style ile kontrol ediliyor */
    display: inline-block;
}

.grade-card-body {
    padding: 1.5rem;
}

.grade-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.grade-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
}

.stat-badge i {
    color: var(--primary-blue);
}

/* ================== PROGRESS BARS ================== */

.progress-modern {
    height: 8px;
    background: var(--bg-light);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 1rem 0;
}

.progress-modern-bar {
    height: 100%;
    background: var(--gradient-blue);
    border-radius: var(--radius-full);
    transition: width 1s ease;
}

/* Circular Progress */
.progress-circular {
    position: relative;
    width: 120px;
    height: 120px;
}

.progress-circular svg {
    transform: rotate(-90deg);
}

.progress-circular-bg {
    fill: none;
    stroke: var(--bg-light);
    stroke-width: 10;
}

.progress-circular-fill {
    fill: none;
    stroke: var(--primary-blue);
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease;
}

.progress-circular-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* ================== ACHIEVEMENT BADGES ================== */

.achievement-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.achievement-badge:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.achievement-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.achievement-icon-star {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
}

.achievement-icon-cup {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF4757 100%);
    color: white;
}

.achievement-icon-medal {
    background: linear-gradient(135deg, #4FACFE 0%, #00F2FE 100%);
    color: white;
}

.achievement-icon-rocket {
    background: linear-gradient(135deg, #A8EDEA 0%, #FED6E3 100%);
    color: #FF4757;
}

.achievement-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-gray);
}

/* ================== HERO SECTION ================== */

.hero-modern {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: var(--gradient-blue);
    overflow: hidden;
    padding: 4rem 0;
}

.hero-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ================== STATS SECTION ================== */

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-gray);
}

/* ================== RESPONSIVE ================== */

@media (max-width: 768px) {
    .grade-cards-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
}

/* Mobile Viewport & Overflow Fix */
@media (max-width: 768px) {
    /* Prevent horizontal scroll */
    body, html {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }
    
    .container {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    .col, [class*="col-"] {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Card Responsive */
    .card-modern {
        margin-bottom: 1rem;
    }
    
    /* Button Responsive */
    .btn-playful {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Badge Responsive */
    .badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }
    
    /* Grade Cards */
    .grade-cards-container {
        gap: 1rem;
    }
    
    .grade-card {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .col, [class*="col-"] {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    .btn-playful {
        padding: 0.625rem 1.25rem;
        font-size: 0.85rem;
    }
    
    .badge {
        font-size: 0.7rem;
        padding: 0.35rem 0.65rem;
    }
}

@media (max-width: 400px) {
    .container {
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .btn-playful {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

