/* ==========================================
   KIDS RAMADAN COUNTDOWN CALENDAR
   MakkahCompass Theme - Playful & Colorful for Children
   ========================================== */

/* ==========================================
   1. CSS VARIABLES
   ========================================== */
.kids-calendar-page {
    --midnight: #0A1628;
    --deep-space: #0F1D32;
    --night-blue: #152238;
    --twilight: #1E3050;
    --emerald: #10B981;
    --emerald-light: #34D399;
    --gold: #FBBF24;
    --gold-light: #FDE68A;
    --gold-bright: #F59E0B;
    --cream: #F5F5F0;
    --pearl: #E8E8E3;
    --mist: #94A3B8;
    --slate: #64748B;
    --purple: #A78BFA;
    --purple-light: #C4B5FD;
    --pink: #F472B6;
    --pink-light: #FBCFE8;
    --sky: #38BDF8;
    --sky-light: #7DD3FC;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-kids: 'Noto Sans', -apple-system, sans-serif;
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(251, 191, 36, 0.3);
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
}

/* ==========================================
   2. PAGE CONTAINER
   ========================================== */
.kids-calendar-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--space-lg);
    font-family: var(--font-kids);
    color: var(--cream);
    line-height: 1.6;
}

/* ==========================================
   3. LANGUAGE SWITCHER
   ========================================== */
.language-switcher {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.lang-btn {
    background: var(--night-blue);
    border: 1px solid var(--twilight);
    color: var(--mist);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lang-btn:hover {
    background: var(--twilight);
    color: var(--cream);
}

.lang-btn.active {
    background: var(--gold);
    color: var(--midnight);
    border-color: var(--gold);
    font-weight: 600;
}

/* ==========================================
   4. HERO SECTION (Kids Style)
   ========================================== */
.hero-section.hero-kids {
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-xl);
    border: 3px solid var(--gold);
    position: relative;
    overflow: hidden;
}

.hero-section.hero-kids::before {
    content: '✨🌙⭐✨🌟⭐✨';
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    font-size: 1.5rem;
    animation: sparkle 3s linear infinite;
    opacity: 0.5;
}

@keyframes sparkle {
    0%, 100% { transform: translateX(-20px); opacity: 0.3; }
    50% { transform: translateX(20px); opacity: 0.7; }
}

.hero-icon {
    font-size: 5rem;
    margin-bottom: var(--space-lg);
    filter: drop-shadow(0 0 30px rgba(251, 191, 36, 0.6));
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    font-family: var(--font-kids);
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    color: var(--gold);
    margin-bottom: var(--space-md);
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--cream);
    max-width: 650px;
    margin: 0 auto;
}

/* ==========================================
   5. FEATURE HIGHLIGHTS (Kids Version)
   ========================================== */
.feature-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-3xl);
}

.feature-card.feature-kids {
    background: linear-gradient(135deg, var(--night-blue) 0%, var(--twilight) 100%);
    border: 2px solid var(--purple);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition-base);
}

.feature-card.feature-kids:nth-child(1) { border-color: var(--gold); }
.feature-card.feature-kids:nth-child(2) { border-color: var(--pink); }
.feature-card.feature-kids:nth-child(3) { border-color: var(--sky); }
.feature-card.feature-kids:nth-child(4) { border-color: var(--emerald); }

.feature-card.feature-kids:hover {
    transform: translateY(-8px) rotate(-1deg);
    box-shadow: 0 12px 40px rgba(251, 191, 36, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.feature-card h3 {
    font-size: 1.125rem;
    color: var(--gold-light);
    margin-bottom: var(--space-sm);
    font-weight: 700;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--pearl);
    margin: 0;
}

/* ==========================================
   6. THEME SELECTION
   ========================================== */
.theme-selection {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.theme-selection h2 {
    font-family: var(--font-kids);
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: var(--space-xl);
    font-weight: 700;
}

.theme-options {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.theme-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--night-blue);
    border: 2px solid var(--twilight);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    color: var(--mist);
    font-size: 0.9rem;
}

.theme-btn:hover {
    border-color: var(--gold);
    transform: scale(1.05);
}

.theme-btn.active {
    border-color: var(--gold);
    background: var(--twilight);
    color: var(--gold);
    box-shadow: var(--shadow-glow);
}

.theme-preview {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background-size: cover;
    background-position: center;
}

.stars-theme {
    background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 100%);
}

.mosque-theme {
    background: linear-gradient(135deg, #064e3b 0%, #10b981 100%);
}

.lanterns-theme {
    background: linear-gradient(135deg, #7c2d12 0%, #f59e0b 100%);
}

.nature-theme {
    background: linear-gradient(135deg, #166534 0%, #86efac 100%);
}

/* ==========================================
   7. CALENDAR PREVIEW
   ========================================== */
.calendar-preview-section {
    margin-bottom: var(--space-3xl);
}

.calendar-preview-section h2 {
    font-family: var(--font-kids);
    font-size: 1.5rem;
    color: var(--gold);
    text-align: center;
    margin-bottom: var(--space-xl);
    font-weight: 700;
}

.calendar-preview {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
    border: 3px solid var(--gold);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    max-width: 800px;
    margin: 0 auto;
}

.calendar-header {
    text-align: center;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 2px dashed var(--gold);
}

.calendar-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: var(--space-xs);
}

.calendar-subtitle {
    font-size: 1rem;
    color: var(--cream);
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

@media (max-width: 600px) {
    .days-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: var(--space-sm);
    }
}

.day-card {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(251, 191, 36, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    text-align: center;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    position: relative;
}

.day-card:hover {
    transform: scale(1.05);
    border-color: var(--gold);
    background: rgba(251, 191, 36, 0.1);
}

.day-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cream);
}

.day-star {
    font-size: 0.8rem;
    margin-top: var(--space-xs);
    color: var(--gold);
}

.star-placeholder {
    width: 20px;
    height: 20px;
    border: 2px dashed rgba(251, 191, 36, 0.5);
    border-radius: 50%;
    margin-top: var(--space-xs);
}

.calendar-footer {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 2px dashed var(--gold);
}

.good-deed-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    color: var(--cream);
    font-size: 0.9rem;
}

.legend-icon {
    font-size: 1.25rem;
}

/* ==========================================
   8. DOWNLOAD SECTION
   ========================================== */
.download-section {
    margin-bottom: var(--space-3xl);
}

.download-section h2 {
    font-family: var(--font-kids);
    font-size: 1.5rem;
    color: var(--gold);
    text-align: center;
    margin-bottom: var(--space-xl);
    font-weight: 700;
}

.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.download-card {
    background: var(--night-blue);
    border: 2px solid var(--twilight);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition-base);
}

.download-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
}

.download-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.download-card h3 {
    font-size: 1.125rem;
    color: var(--gold-light);
    margin-bottom: var(--space-sm);
    font-weight: 700;
}

.download-card p {
    font-size: 0.9rem;
    color: var(--mist);
    margin-bottom: var(--space-lg);
}

/* ==========================================
   9. BUTTONS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    text-decoration: none;
}

.btn-cta {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
    color: var(--midnight);
}

.btn-cta:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.5);
}

.btn-secondary {
    background: var(--twilight);
    color: var(--cream);
    border: 2px solid var(--slate);
}

.btn-secondary:hover {
    background: var(--slate);
    border-color: var(--gold);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--midnight);
}

.btn-icon {
    font-size: 1.25rem;
}

.share-section {
    text-align: center;
}

/* ==========================================
   10. GOOD DEEDS SECTION
   ========================================== */
.good-deeds-section {
    margin-bottom: var(--space-3xl);
}

.good-deeds-section h2 {
    font-family: var(--font-kids);
    font-size: 1.5rem;
    color: var(--gold);
    text-align: center;
    margin-bottom: var(--space-md);
    font-weight: 700;
}

.section-desc {
    text-align: center;
    color: var(--mist);
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.deeds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-md);
}

.deed-card {
    background: var(--night-blue);
    border: 1px solid var(--twilight);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    transition: all var(--transition-fast);
}

.deed-card:hover {
    border-color: var(--emerald);
    transform: translateX(4px);
}

.deed-number {
    width: 32px;
    height: 32px;
    background: var(--emerald);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--midnight);
    font-size: 0.875rem;
    flex-shrink: 0;
}

.deed-text {
    color: var(--pearl);
    font-size: 0.9rem;
}

/* ==========================================
   11. EDUCATIONAL CONTENT
   ========================================== */
.educational-content {
    background: var(--night-blue);
    border: 1px solid var(--twilight);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    margin-bottom: var(--space-3xl);
}

.educational-content h2 {
    font-family: var(--font-kids);
    font-size: 1.5rem;
    color: var(--gold);
    margin: var(--space-xl) 0 var(--space-md);
    font-weight: 700;
}

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

.educational-content h3 {
    font-size: 1.25rem;
    color: var(--gold-light);
    margin: var(--space-lg) 0 var(--space-md);
}

.educational-content p {
    color: var(--pearl);
    margin-bottom: var(--space-md);
}

.educational-content ul,
.educational-content ol {
    color: var(--pearl);
    padding-left: var(--space-xl);
    margin-bottom: var(--space-md);
}

.educational-content li {
    margin-bottom: var(--space-sm);
}

.educational-content strong {
    color: var(--gold-light);
}

/* ==========================================
   12. FAQ SECTION
   ========================================== */
.faq-section {
    margin-bottom: var(--space-3xl);
}

.faq-section h2 {
    font-family: var(--font-kids);
    font-size: 1.5rem;
    color: var(--gold);
    text-align: center;
    margin-bottom: var(--space-xl);
    font-weight: 700;
}

.faq-item {
    background: var(--night-blue);
    border: 1px solid var(--twilight);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    overflow: hidden;
}

.faq-question {
    font-size: 1.125rem;
    color: var(--gold-light);
    padding: var(--space-lg);
    margin: 0;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.faq-question:hover {
    background: var(--twilight);
}

.faq-answer {
    padding: 0 var(--space-lg) var(--space-lg);
    color: var(--pearl);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ==========================================
   13. RELATED TOOLS
   ========================================== */
.related-tools-section h2 {
    font-family: var(--font-kids);
    font-size: 1.5rem;
    color: var(--gold);
    text-align: center;
    margin-bottom: var(--space-xl);
    font-weight: 700;
}

.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.related-tool-card {
    background: var(--night-blue);
    border: 1px solid var(--twilight);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-decoration: none;
    transition: all var(--transition-base);
}

.related-tool-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
}

.related-tool-card h3 {
    font-size: 1.125rem;
    color: var(--gold-light);
    margin: 0 0 var(--space-sm);
}

.related-tool-card p {
    font-size: 0.9rem;
    color: var(--mist);
    margin: 0;
}

/* ==========================================
   14. RTL SUPPORT
   ========================================== */
[lang="ar"] .kids-calendar-page,
[lang="ur"] .kids-calendar-page {
    direction: rtl;
}

[lang="ar"] .deed-card:hover,
[lang="ur"] .deed-card:hover {
    transform: translateX(-4px);
}

/* ==========================================
   15. RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .kids-calendar-page {
        padding: var(--space-md);
    }

    .hero-section.hero-kids {
        padding: var(--space-xl) var(--space-md);
    }

    .hero-icon {
        font-size: 3.5rem;
    }

    .theme-options {
        gap: var(--space-md);
    }

    .theme-preview {
        width: 50px;
        height: 50px;
    }

    .download-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {
    .language-switcher {
        gap: var(--space-xs);
    }

    .lang-btn {
        padding: var(--space-xs) var(--space-sm);
        font-size: 0.75rem;
    }

    .feature-highlights {
        grid-template-columns: 1fr 1fr;
    }

    .feature-card.feature-kids {
        padding: var(--space-md);
    }

    .feature-icon {
        font-size: 2rem;
    }

    .days-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .day-card {
        padding: var(--space-sm);
    }

    .day-number {
        font-size: 1rem;
    }
}

/* ==========================================
   16. PRINT STYLES
   ========================================== */
@media print {
    .language-switcher,
    .download-section,
    .share-section,
    .related-tools-section,
    .theme-selection {
        display: none !important;
    }

    .kids-calendar-page {
        background: white;
        color: black;
    }

    .calendar-preview {
        border: 2px solid #333;
        background: white;
    }

    .day-card {
        border: 1px solid #ccc;
        background: white;
    }
}
