/* Educational Platform Styles - World-Class Learning Interface */

/* Lesson Screen */
.lesson-screen {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.lesson-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
}

.lesson-header h2 {
    margin: 0 0 10px 0;
    font-size: 2em;
}

.lesson-progress-bar {
    background: rgba(255, 255, 255, 0.3);
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 15px;
}

.lesson-progress-fill {
    background: white;
    height: 100%;
    transition: width 0.3s ease;
}

/* Lesson Content */
.lesson-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.lesson-intro {
    font-size: 1.2em;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    border-radius: 5px;
}

.lesson-section {
    margin: 30px 0;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.lesson-section:last-child {
    border-bottom: none;
}

.lesson-section h4 {
    color: #667eea;
    font-size: 1.4em;
    margin-bottom: 15px;
}

/* Vowel Showcase */
.vowel-showcase {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.big-letter {
    font-size: 4em;
    font-weight: bold;
    color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Type Cards */
.noun-types,
.verb-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.type-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    text-align: center;
    transition: all 0.3s ease;
}

.type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.type-card h5 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.type-card .icon {
    font-size: 2.5em;
    display: block;
    margin-top: 10px;
}

.type-card p {
    color: #666;
    line-height: 1.6;
}

/* Sound Examples */
.sound-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.sound-card {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #667eea;
}

.sound-card strong {
    font-size: 1.5em;
    color: #667eea;
    display: block;
    margin-bottom: 10px;
}

.sound-card p {
    margin: 5px 0;
    color: #666;
}

.highlight {
    color: #667eea;
    font-weight: bold;
    background: #f0f0ff;
    padding: 2px 5px;
    border-radius: 3px;
}

/* Consonant Grid */
.consonant-grid {
    font-size: 1.5em;
    letter-spacing: 10px;
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    color: #764ba2;
    font-weight: bold;
}

/* Pro Tips */
.pro-tip {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin: 30px 0;
    font-size: 1.1em;
    line-height: 1.6;
}

.pro-tip strong {
    display: block;
    margin-bottom: 10px;
    font-size: 1.2em;
}

/* Syllable Examples */
.syllable-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.syllable-example-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 3px solid #e0e0e0;
    text-align: center;
}

.syllable-example-card strong {
    display: block;
    color: #667eea;
    font-size: 1.3em;
    margin-bottom: 10px;
}

.syllable-example-card .note {
    color: #999;
    font-size: 0.9em;
    font-style: italic;
    margin-top: 10px;
}

/* Rule Cards */
.syllable-rules,
.tense-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.rule-card,
.tense-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.tense-card.highlight {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border-left-color: #764ba2;
}

.rule-card strong,
.tense-card h5 {
    color: #667eea;
    display: block;
    margin-bottom: 10px;
}

.rule-card .example,
.tense-card .example {
    margin-top: 10px;
    font-style: italic;
    color: #666;
}

/* Comparison Sections */
.comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.comparison-side {
    padding: 20px;
    border-radius: 10px;
    background: #f8f9fa;
}

.comparison-side h5 {
    color: #667eea;
    margin-bottom: 15px;
}

.comparison-side ul {
    list-style: none;
    padding: 0;
}

.comparison-side li {
    padding: 5px 0;
    color: #666;
}

/* Test Boxes */
.test-box {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.test-box strong {
    display: block;
    margin-bottom: 10px;
    color: #856404;
}

.test-box .example {
    margin-top: 10px;
    line-height: 1.8;
    color: #666;
}

/* Agreement Examples */
.agreement-examples {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.agreement-card {
    padding: 20px;
    border-radius: 10px;
    font-size: 1.1em;
}

.agreement-card.correct {
    background: #e8f5e9;
    border: 2px solid #4caf50;
    color: #2e7d32;
}

.agreement-card.incorrect {
    background: #ffebee;
    border: 2px solid #f44336;
    color: #c62828;
}

.agreement-card p {
    margin: 10px 0;
}

/* Lesson Navigation */
.lesson-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.lesson-nav-btn {
    padding: 15px 30px;
    font-size: 1.1em;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.lesson-nav-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.lesson-nav-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.lesson-nav-btn.secondary {
    background: #f0f0f0;
    color: #333;
}

.lesson-nav-btn.secondary:hover {
    background: #e0e0e0;
}

/* Dashboard */
.dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 40px;
}

.dashboard-header h2 {
    color: #667eea;
    font-size: 2.5em;
    margin-bottom: 15px;
}

.overall-progress {
    max-width: 600px;
    margin: 30px auto;
}

.progress-circle {
    text-align: center;
    margin-bottom: 20px;
}

.progress-percentage {
    font-size: 4em;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.progress-label {
    font-size: 1.2em;
    color: #666;
}

/* Topic Grid */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.topic-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.topic-card.locked {
    opacity: 0.6;
    cursor: not-allowed;
}

.topic-card.locked::after {
    content: "🔒";
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5em;
}

.topic-title {
    font-size: 1.3em;
    color: #667eea;
    margin-bottom: 15px;
}

.mastery-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    margin-bottom: 15px;
}

.mastery-badge.beginner {
    background: #e0e0e0;
    color: #666;
}

.mastery-badge.bronze {
    background: #CD7F32;
    color: white;
}

.mastery-badge.silver {
    background: #C0C0C0;
    color: #333;
}

.mastery-badge.gold {
    background: #FFD700;
    color: #333;
}

.mastery-badge.platinum {
    background: #E5E4E2;
    color: #333;
}

.mastery-badge.master {
    background: #9370DB;
    color: white;
}

.topic-stats {
    margin: 15px 0;
    font-size: 0.9em;
    color: #666;
}

.topic-stats div {
    margin: 5px 0;
}

.stat-bar {
    background: #e0e0e0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 5px;
}

.stat-bar-fill {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100%;
    transition: width 0.3s ease;
}

.topic-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.topic-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.topic-btn.learn {
    background: #667eea;
    color: white;
}

.topic-btn.learn:hover {
    background: #5568d3;
}

.topic-btn.practice {
    background: #f0f0f0;
    color: #333;
}

.topic-btn.practice:hover {
    background: #e0e0e0;
}

/* Analytics Section */
.analytics-section {
    margin: 40px 0;
}

.analytics-section h3 {
    color: #667eea;
    font-size: 1.8em;
    margin-bottom: 20px;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.analytics-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.analytics-card h4 {
    color: #667eea;
    margin-bottom: 15px;
}

.weak-area-item,
.strong-area-item {
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.weak-area-item {
    background: #ffebee;
    border-left: 4px solid #f44336;
}

.strong-area-item {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
}

.area-name {
    font-weight: bold;
    color: #333;
}

.area-score {
    font-size: 1.2em;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .comparison {
        grid-template-columns: 1fr;
    }

    .agreement-examples {
        grid-template-columns: 1fr;
    }

    .vowel-showcase {
        gap: 10px;
    }

    .big-letter {
        font-size: 3em;
    }

    .topic-grid {
        grid-template-columns: 1fr;
    }

    .lesson-content {
        padding: 20px;
    }
}
