/* Countries Names Learning - Complete Styling with ALL Info */

/* Mode Selector */
.mode-selector {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.mode-btn {
    padding: 12px 30px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.mode-btn:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.mode-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-color: #3b82f6;
}

/* Mode Sections */
.mode-section {
    display: none;
}

.mode-section.active {
    display: block;
}

/* Learn Header */
.learn-header {
    text-align: center;
    margin-bottom: 30px;
}

.learn-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: #1f2937;
}

/* Countries Container - GRID LAYOUT */
#countriesContainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Country Card */
.country-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-height: 380px;
}

.country-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #3b82f6;
}

/* Country Flag Emoji - PROPER DISPLAY */
.country-flag-emoji {
    font-size: 80px;
    line-height: 1;
    margin-bottom: 10px;
    font-family: "Segoe UI Emoji", "Noto Color Emoji", "Apple Color Emoji", sans-serif;
}

/* Country Names */
.country-names {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

.english-name {
    font-size: 20px;
    font-weight: 800;
    color: #1f2937;
}

.hindi-name {
    font-size: 15px;
    font-weight: 600;
    color: #6b7280;
}

/* Country Info */
.country-info {
    width: 100%;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 12px;
    margin-top: auto;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #e5e7eb;
}

.info-row:last-child {
    border-bottom: none;
}

.info-icon {
    font-size: 16px;
    width: 24px;
    flex-shrink: 0;
}

.info-text {
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    text-align: left;
    flex: 1;
}

/* Play Button */
.play-country-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.play-country-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Quiz Mode Styles */
.quiz-header {
    text-align: center;
    margin-bottom: 30px;
}

.quiz-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 20px;
}

.quiz-stats {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
}

.stat-label {
    color: #6b7280;
}

.stat-value {
    color: #3b82f6;
    font-size: 24px;
}

/* Quiz Question Card */
.quiz-question-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.quiz-country-flag {
    margin-bottom: 20px;
}

/* Quiz Flag Display - LARGE FLAG */
.quiz-flag-large {
    font-size: 140px;
    line-height: 1;
    font-family: "Segoe UI Emoji", "Noto Color Emoji", "Apple Color Emoji", sans-serif;
}

.question-text {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

/* Quiz Options */
.quiz-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    max-width: 700px;
    margin: 0 auto 30px;
}

.quiz-option {
    background: white;
    border: 3px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.quiz-option:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.quiz-option.correct {
    background: #d1fae5;
    border-color: #10b981;
    color: #065f46;
}

.quiz-option.wrong {
    background: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
}

/* Quiz Result */
.quiz-result {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 0 auto;
    display: none;
}

.quiz-result.show {
    display: block;
}

.result-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.result-message {
    font-size: 28px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 30px;
}

.result-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-bottom: 30px;
}

.result-stat {
    text-align: center;
}

.result-label {
    display: block;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
}

.result-value {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: #3b82f6;
}

.restart-quiz-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.restart-quiz-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-left: 5px solid #3b82f6;
    padding: 30px;
    border-radius: 15px;
    margin-top: 50px;
}

.info-box h4 {
    color: #1e40af;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 800;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    line-height: 1.6;
    font-size: 14px;
    color: #555;
    border: 2px solid rgba(59, 130, 246, 0.2);
}

.info-item strong {
    color: #1e40af;
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
}

/* Features Box */
.features-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid rgba(245, 158, 11, 0.2);
    margin-top: 30px;
}

.features-box h4 {
    color: #92400e;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
}

.features-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-box li {
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 12px;
    color: #78350f;
    font-size: 15px;
    line-height: 1.6;
    border: 2px solid rgba(245, 158, 11, 0.1);
}

.features-box li:last-child {
    margin-bottom: 0;
}

.features-box li strong {
    color: #92400e;
}

/* Responsive Design */
@media (max-width: 1024px) {
    #countriesContainer {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .mode-selector {
        flex-direction: column;
        gap: 10px;
    }
    
    #countriesContainer {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 12px;
        padding: 15px;
    }
    
    .country-card {
        padding: 15px;
        min-height: 340px;
    }
    
    .country-flag-emoji {
        font-size: 60px;
    }
    
    .english-name {
        font-size: 18px;
    }
    
    .hindi-name {
        font-size: 14px;
    }
    
    .quiz-flag-large {
        font-size: 100px;
    }
    
    .quiz-options {
        grid-template-columns: 1fr;
    }
    
    .result-stats {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    #countriesContainer {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .country-card {
        padding: 12px;
        min-height: 320px;
    }
    
    .country-flag-emoji {
        font-size: 50px;
    }
    
    .english-name {
        font-size: 16px;
    }
    
    .quiz-flag-large {
        font-size: 80px;
    }
    
    .info-text {
        font-size: 12px;
    }
}

/* SEO Content */
.seo-content {
    padding: 80px 20px;
    background: white;
}

.content-article {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.content-article h2 {
    font-size: 32px;
    font-weight: 800;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #333;
}

.content-article h2:first-child {
    margin-top: 0;
}

.content-article h3 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #444;
}

.content-article p {
    margin-bottom: 20px;
    color: #666;
    font-size: 16px;
}

.content-article strong {
    color: #333;
    font-weight: 700;
}

/* Related Tools */
.related-tools {
    max-width: 900px;
    margin: 60px auto 0;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 15px;
}

.related-tools h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 30px;
    text-align: center;
    color: #3b82f6;
}

.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.related-tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 25px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
}

.related-tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #3b82f6;
}

.related-tool-card .tool-icon {
    font-size: 42px;
}

.related-tool-card .tool-name {
    font-weight: 700;
    color: #333;
    font-size: 16px;
}