/* Planets Names Learning - Clean & Colorful */

/* Mode Tabs */
.mode-selector {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    border-bottom: 2px solid #e5e7eb;
}

.mode-btn {
    background: none;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.mode-btn:hover {
    color: #10b981;
}

.mode-btn.active {
    color: #10b981;
    border-bottom-color: #10b981;
}

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

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

/* Learn Mode Header */
.learn-header {
    margin: 20px 0;
}

.learn-header h2 {
    margin: 0;
    font-size: 24px;
    color: #1f2937;
}

/* Planets Grid - 10 columns on desktop */
#planetsContainer {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin: 30px 0;
}

/* Planet Card */
.planet-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
}

.planet-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    border-color: #10b981;
}

/* Planet Image - Support both emoji and img */
.planet-image {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px;
}

/* Emoji Style */
.planet-emoji {
    font-size: 70px;
    line-height: 1;
}

/* Image Style */
.planet-img {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

/* Planet Names */
.planet-names {
    margin-bottom: 10px;
}

.english-name {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 3px;
}

.hindi-name {
    font-size: 13px;
    font-weight: 600;
    color: #10b981;
}

/* Play Button */
.play-planet-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.play-planet-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4);
}

/* Quiz Mode Styles */
.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding: 15px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.quiz-header h2 {
    margin: 0;
    font-size: 24px;
    color: #1f2937;
}

.quiz-stats {
    display: flex;
    gap: 30px;
}

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

.stat-label {
    font-size: 13px;
    color: #6b7280;
    display: block;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #10b981;
}

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

.quiz-planet-image {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
}

.quiz-planet-image .planet-emoji {
    font-size: 120px;
}

.quiz-planet-image .planet-img {
    width: 120px;
    height: 120px;
}

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

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

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

.quiz-option:hover {
    background: #f0fdf4;
    border-color: #10b981;
    transform: scale(1.03);
}

.quiz-option.correct {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.quiz-option.wrong {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

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

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

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

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

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

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

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

.result-value {
    font-size: 36px;
    font-weight: 700;
    color: #10b981;
}

.restart-quiz-btn {
    padding: 15px 40px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.restart-quiz-btn:hover {
    background: #059669;
    transform: translateY(-2px);
}

/* Info & Features Boxes */
.info-box {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-left: 5px solid #10b981;
    padding: 30px;
    border-radius: 15px;
    margin-top: 40px;
}

.info-box h4 {
    color: #065f46;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
}

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

.info-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    line-height: 1.7;
    font-size: 14px;
    color: #555;
    border: 2px solid rgba(16, 185, 129, 0.2);
}

.info-item strong {
    color: #065f46;
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}

/* 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: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

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

.features-box li {
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 12px;
    color: #78350f;
    font-size: 14px;
    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;
}

/* SEO Content Section */
.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 Section */
.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: #10b981;
}

.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 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: #10b981;
}

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

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

/* ============================================ */
/* RESPONSIVE DESIGN - CORRECT GRID COLUMNS */
/* ============================================ */

@media (max-width: 1024px) {

    .planet-image {
        height: 60px;
    }
    
    .planet-emoji {
        font-size: 60px;
    }
    
    .planet-img {
        width: 60px;
        height: 60px;
    }
    
    .english-name {
        font-size: 15px;
    }
    
    .hindi-name {
        font-size: 12px;
    }
}

/* Mobile: 3 columns (768px and below) */
@media (max-width: 768px) {

    
    .planet-card {
        padding: 12px;
    }
    
    .planet-image {
        height: 50px;
    }
    
    .planet-emoji {
        font-size: 50px;
    }
    
    .planet-img {
        width: 50px;
        height: 50px;
    }
    
    .english-name {
        font-size: 14px;
    }
    
    .hindi-name {
        font-size: 11px;
    }
    
    .play-planet-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .quiz-options {
        grid-template-columns: 1fr;
    }
    
    .quiz-planet-image {
        height: 90px;
    }
    
    .quiz-planet-image .planet-emoji {
        font-size: 90px;
    }
    
    .quiz-planet-image .planet-img {
        width: 90px;
        height: 90px;
    }
    
    .question-text {
        font-size: 24px;
    }
}

@media (max-width: 480px) {

    .planet-card {
        padding: 10px;
    }
    
    .planet-image {
        height: 40px;
    }
    
    .planet-emoji {
        font-size: 40px;
    }
    
    .planet-img {
        width: 40px;
        height: 40px;
    }
    
    .english-name {
        font-size: 13px;
    }
    
    .hindi-name {
        font-size: 10px;
    }
    
    .play-planet-btn {
        padding: 5px 10px;
        font-size: 10px;
    }
}


@media (max-width:767px){
	#planetsContainer {
        grid-template-columns: repeat(1, 1fr);
    }
	.tool-header h1 {
		font-size: 32px;
		font-weight: 900;
		margin-bottom: 15px;
	}
	.planet-image{
		 height: 80px;
	}
	.planet-img {
        width: 80px;
        height: 80px;
    }
}
@media (max-width:1024px) and (min-width:768px) {
	#planetsContainer {
        grid-template-columns: repeat(3, 1fr);
    }
	.planet-image{
		 height: 90px;
	}
	.planet-img {
        width: 90px;
        height: 90px;
    }
}
@media (max-width:1280px) and (min-width:1024px) {
	#planetsContainer {
        grid-template-columns: repeat(3, 1fr);
    }
	.planet-image{
		 height: 100px;
	}
	.planet-img {
        width: 100px;
        height: 100p9;
    }
}
@media (min-width:1280px) and (max-width:1400px) {
	#planetsContainer {
        grid-template-columns: repeat(4, 1fr);
    }
	.planet-image{
		 height: 110px;
	}
	.planet-img {
        width: 110px;
        height: 110px;
    }
}
/* Planet-specific styles */
.planet-info {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.planet-fact {
    font-size: 12px;
    color: #555;
    line-height: 1.4;
    margin-bottom: 8px;
}

.planet-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 11px;
    color: #666;
    font-weight: 600;
}

/* Make planet cards taller to accommodate info */
.planet-card {
    min-height: 380px;
}

@media (max-width: 768px) {
    .planet-card {
        min-height: 350px;
    }
    
    .planet-fact {
        font-size: 11px;
    }
    
    .stat-label {
        font-size: 10px;
    }
}