/* ============================================
   COWDI ENGLISH - Page-Specific Styles
   ============================================ */

/* ============================================
   HOME PAGE
   ============================================ */
.hero {
    padding: var(--space-2xl) 0;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: var(--space-3xl);
}

.hero-text {
    flex: 1;
}

.hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: var(--space-lg);
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
}

.hero-mascot {
    flex-shrink: 0;
}

/* Features */
.features-section {
    padding: var(--space-3xl) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.feature-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.feature-card h3 {
    margin-bottom: var(--space-sm);
}

/* Daily Challenge */
.daily-section {
    padding: var(--space-xl) 0;
}

.daily-card {
    background: linear-gradient(135deg, var(--primary), var(--accent-purple));
    border-radius: var(--radius-xl);
    padding: var(--space-xl) var(--space-2xl);
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    color: white;
    box-shadow: var(--shadow-lg);
}

.daily-content {
    flex: 1;
}

.daily-content h3 {
    color: white;
    margin-bottom: var(--space-sm);
}

.daily-content p {
    color: rgba(255,255,255,0.9);
    margin-bottom: var(--space-md);
}

.daily-progress {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.daily-progress .progress-bar {
    flex: 1;
    background: rgba(255,255,255,0.3);
}

.daily-progress .progress-fill {
    background: white;
}

.daily-progress span {
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Stats */
.stats-section {
    padding: var(--space-3xl) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.stat-label {
    color: var(--text-light);
    font-weight: 600;
}

/* ============================================
   PRACTICE PAGE
   ============================================ */
.practice-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    max-width: 700px;
    margin: 0 auto;
}

.practice-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    position: relative;
}

.practice-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.practice-icon {
    margin-bottom: var(--space-md);
}

.practice-card h3 {
    margin-bottom: var(--space-sm);
}

.practice-badge {
    display: inline-block;
    margin-top: var(--space-sm);
    padding: 2px 12px;
    background: var(--bg);
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-light);
}

/* ============================================
   PROGRESS PAGE
   ============================================ */
.progress-overview {
    margin-bottom: var(--space-2xl);
}

.progress-mascot-card {
    background: linear-gradient(135deg, var(--primary), var(--accent-purple));
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
    color: white;
    box-shadow: var(--shadow-lg);
}

.level-info {
    flex: 1;
}

.level-info h3 {
    font-size: 2rem;
    color: white;
}

.level-info p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
}

.level-info .progress-bar {
    background: rgba(255,255,255,0.3);
    margin-bottom: var(--space-sm);
}

.level-info .progress-fill {
    background: white;
}

.level-info span {
    font-weight: 600;
    font-size: 0.9rem;
}

.progress-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.progress-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.progress-card h3 {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--border);
}

/* Streak Calendar */
.streak-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: var(--space-xs);
}

.streak-day {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.streak-day.active {
    background: var(--primary);
    color: white;
}

.streak-day.today {
    border: 2px solid var(--primary);
    color: var(--primary);
}

/* Achievements */
.achievements-list {
    display: grid;
    gap: var(--space-sm);
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    background: var(--bg);
}

.achievement-item.locked {
    opacity: 0.5;
}

.achievement-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.achievement-info h4 {
    font-size: 0.95rem;
}

.achievement-info p {
    font-size: 0.8rem;
}

/* Vocab Stats */
.vocab-stat-row {
    display: grid;
    grid-template-columns: 120px 1fr 40px;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Completed Lessons */
.completed-lessons {
    display: grid;
    gap: var(--space-sm);
}

.completed-lesson-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg);
    border-radius: var(--radius-sm);
}

.empty-state {
    text-align: center;
    padding: var(--space-xl);
    color: var(--text-muted);
    font-style: italic;
}

/* ============================================
   RESPONSIVE - Pages
   ============================================ */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .daily-card {
        flex-direction: column;
        text-align: center;
    }
    
    .progress-mascot-card {
        flex-direction: column;
        text-align: center;
    }
    
    .practice-types {
        grid-template-columns: 1fr;
    }
    
    .progress-grid {
        grid-template-columns: 1fr;
    }
}
