/* Language Learning Styles - Revised Structure */
.progress-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--box-shadow);
}

.progress-container {
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #2ecc71);
    border-radius: 10px;
    width: 0%;
    transition: width 0.5s ease;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    color: var(--dark-color);
}

.calendar {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

.day-cell {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f0f0f0;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.day-cell.completed {
    background: #2ecc71;
    color: white;
}

.day-cell.current {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
    border-color: var(--accent-color);
}

.day-cell:hover {
    background: #ddd;
}

/* Daily Session */
.daily-session {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--box-shadow);
}

.session-header {
    text-align: center;
    margin-bottom: 2rem;
}

.session-header h2 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.session-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.stat-item {
    background: var(--light-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Flashcard Navigation */
.flashcard-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.nav-btn {
    padding: 0.8rem 1.5rem;
    background: #f0f0f0;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: bold;
}

.nav-btn.active {
    background: var(--primary-color);
    color: white;
}

.nav-btn:hover:not(.active) {
    background: #ddd;
}

/* Flashcard Container */
.flashcard-container {
    position: relative;
    height: 400px;
    margin-bottom: 2rem;
}

.flashcard {
    position: absolute;
    width: 100%;
    height: 100%;
    perspective: 1000px;
    display: none;
}

.flashcard.active {
    display: block;
}

.flashcard-front,
.flashcard-back {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    border-radius: var(--border-radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--box-shadow);
    transition: transform 0.6s;
}

.flashcard-front {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.flashcard-back {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    transform: rotateY(180deg);
}

.flashcard.flipped .flashcard-front {
    transform: rotateY(180deg);
}

.flashcard.flipped .flashcard-back {
    transform: rotateY(0);
}

/* Card Headers */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.card-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    color: white;
}

.card-badge.vocabulary {
    background: #3498db;
}

.card-badge.phrasal {
    background: #e74c3c;
}

.card-badge.idiom {
    background: #9b59b6;
}

.card-counter {
    background: rgba(255,255,255,0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Card Content */
.word {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phonetic {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 1rem;
    font-style: italic;
}

.part-of-speech {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1rem;
    opacity: 0.9;
}

.meaning-section,
.example-section {
    margin-bottom: 1.5rem;
}

.meaning-section h3,
.example-section h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.burmese {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.explanation {
    font-style: italic;
    opacity: 0.9;
}

.english {
    margin-bottom: 0.5rem;
}

/* Buttons */
.flip-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: bold;
    margin-top: auto;
}

.flip-btn:hover {
    background: white;
    color: var(--primary-color);
}

/* Session Controls */
.session-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-controls {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.control-btn {
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: bold;
    flex: 1;
}

.control-btn:hover:not(:disabled) {
    background: #2980b9;
    transform: translateY(-2px);
}

.control-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.pronounce-btn {
    flex: 2;
}

.completion-controls {
    display: flex;
    gap: 1rem;
}

.completion-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: bold;
    font-size: 1rem;
}

.know-btn {
    background: #2ecc71;
    color: white;
}

.know-btn:hover {
    background: #27ae60;
}

.practice-btn {
    background: #e74c3c;
    color: white;
}

.practice-btn:hover {
    background: #c0392b;
}

/* Daily Progress */
.daily-progress {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: var(--box-shadow);
}

.daily-progress h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.progress-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.progress-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-radius: var(--border-radius);
    background: #f8f9fa;
}

.item-label {
    font-weight: bold;
}

.progress-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    transition: var(--transition);
}

.dot.completed {
    background: #2ecc71;
}

.progress-item.vocabulary .dot.completed {
    background: #3498db;
}

.progress-item.phrasal .dot.completed {
    background: #e74c3c;
}

.progress-item.idiom .dot.completed {
    background: #9b59b6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .session-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .flashcard-nav {
        flex-direction: column;
    }
    
    .main-controls {
        flex-direction: column;
    }
    
    .completion-controls {
        flex-direction: column;
    }
    
    .word {
        font-size: 2.5rem;
    }
    
    .calendar {
        grid-template-columns: repeat(auto-fill, minmax(30px, 1fr));
    }
    
    .day-cell {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .progress-items {
        gap: 0.5rem;
    }
    
    .progress-item {
        padding: 0.8rem;
    }
}