/* Study and Quiz specific styles */

/* Word List */
.word-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.word-item {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    border-left: 4px solid #3498db;
}

.word-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.word-item.new {
    border-left-color: #3498db;
}

.word-item.learning {
    border-left-color: #f39c12;
}

.word-item.mastered {
    border-left-color: #2ecc71;
}

.word-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.word-title-section {
    flex: 1;
}

.word-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.3rem;
}

.word-pos {
    font-size: 0.8rem;
    color: #7f8c8d;
    font-style: italic;
    margin-left: 0.5rem;
}

.word-pronunciation {
    font-size: 0.9rem;
    color: #3498db;
    font-style: italic;
}

.word-status {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.word-status.new {
    background: #ebf5ff;
    color: #3498db;
}

.word-status.learning {
    background: #fef5e7;
    color: #f39c12;
}

.word-status.mastered {
    background: #eafaf1;
    color: #2ecc71;
}

.word-meaning {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    line-height: 1.5;
    font-weight: 500;
}

.word-example {
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 0.8rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 3px solid #3498db;
}

.word-synonyms {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.word-synonyms strong {
    color: #2c3e50;
}

.word-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #95a5a6;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.word-progress span {
    background: #ecf0f1;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* Quiz Container */
.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #ecf0f1;
}

.quiz-progress {
    font-size: 1.2rem;
    color: #7f8c8d;
}

.quiz-timer {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1rem;
    min-width: 80px;
    text-align: center;
}

/* Word Card in Quiz */
.word-card {
    text-align: center;
    margin: 2rem 0;
}

.word-card .word {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 2rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    border: 3px solid #3498db;
}

/* Quiz Options */
.options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.option {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 1.1rem;
}

.option:hover {
    background: #e3f2fd;
    border-color: #3498db;
    transform: translateY(-2px);
}

.option.selected {
    background: #3498db;
    color: white;
    border-color: #2980b9;
}

.option.correct {
    background: #2ecc71;
    color: white;
    border-color: #27ae60;
}

.option.wrong {
    background: #e74c3c;
    color: white;
    border-color: #c0392b;
}

/* Quiz Actions */
.quiz-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.quiz-actions button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 25px;
    min-width: 150px;
}

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

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.stat-card h3 {
    color: #7f8c8d;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 3rem;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 0.5rem;
}

/* Chart Section */
.chart-section {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.chart-section h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.chart-container {
    height: 300px;
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .word-list {
        grid-template-columns: 1fr;
    }
    
    .quiz-container {
        margin: 1rem;
        padding: 1rem;
    }
    
    .word-card .word {
        font-size: 2rem;
    }
    
    .options {
        grid-template-columns: 1fr;
    }
    
    .quiz-actions {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
}