/* ═══════════════════════════════════════════════════════════════════════════════
   ANHAD INSIGHTS PAGE - iOS 18+ Premium Design
   ═══════════════════════════════════════════════════════════════════════════════ */

:root {
    /* Color Palette */
    --bg-primary: #1C1C1F;
    --bg-secondary: #1C1C1F;
    --bg-card: var(--bg-primary);
    --bg-glass: var(--bg-primary);

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.5);

    --gold-300: #f0d890;
    --gold-400: #d4a574;
    --gold-500: #c9a86c;
    --gold-gradient: linear-gradient(135deg, #d4a574, #f0d890);

    --mint-400: #6EE7B7;
    --mint-500: #10B981;

    --blue-400: #60A5FA;
    --purple-400: #A78BFA;
    --red-400: #F87171;
    --orange-400: #FB923C;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;

    /* Safe Areas */
    --safe-top: env(safe-area-inset-top, 20px);
    --safe-bottom: env(safe-area-inset-bottom, 20px);

    /* ═══ EXTREME CLAYMORPHISM SHADOWS ═══ */
    /* Dark Theme Clay */
    --clay-outer: 20px 20px 60px rgba(0, 0, 0, 0.6), 
                   -20px -20px 60px rgba(255, 255, 255, 0.05),
                   inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    --clay-inner: inset 6px 6px 12px rgba(0, 0, 0, 0.5), 
                  inset -6px -6px 12px rgba(255, 255, 255, 0.08);
    --clay-outer-sm: 10px 10px 30px rgba(0, 0, 0, 0.5), 
                      -10px -10px 30px rgba(255, 255, 255, 0.05);
    --clay-inner-sm: inset 4px 4px 8px rgba(0, 0, 0, 0.5), 
                      inset -4px -4px 8px rgba(255, 255, 255, 0.08);
    
    /* Color-accented clay shadows */
    --clay-gold: 0 12px 40px rgba(232, 168, 56, 0.3), 
                 0 4px 12px rgba(0, 0, 0, 0.3);
    --clay-mint: 0 12px 40px rgba(110, 231, 183, 0.25), 
                  0 4px 12px rgba(0, 0, 0, 0.3);
    --clay-blue: 0 12px 40px rgba(96, 165, 250, 0.25), 
                  0 4px 12px rgba(0, 0, 0, 0.3);
    --clay-purple: 0 12px 40px rgba(167, 139, 250, 0.25), 
                    0 4px 12px rgba(0, 0, 0, 0.3);
    --clay-red: 0 12px 40px rgba(248, 113, 113, 0.25), 
                 0 4px 12px rgba(0, 0, 0, 0.3);
    --clay-pink: 0 12px 40px rgba(244, 114, 182, 0.25), 
                  0 4px 12px rgba(0, 0, 0, 0.3);
    --clay-orange: 0 12px 40px rgba(251, 146, 60, 0.25), 
                    0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Light Theme - works with global-theme.js */
.light-mode,
html:not(.dark-mode) {
    --bg-primary: #F5F0EB;
    --bg-secondary: #F5F0EB;
    --bg-card: var(--bg-primary);
    --bg-glass: var(--bg-primary);
    --text-primary: #1d1d1f;
    --text-secondary: rgba(0, 0, 0, 0.6);
    --text-tertiary: rgba(0, 0, 0, 0.4);

    /* Light Theme Clay */
    --clay-outer: 12px 12px 30px rgba(0, 0, 0, 0.12), 
                   -12px -12px 30px rgba(255, 255, 255, 0.95),
                   inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    --clay-inner: inset 4px 4px 8px rgba(0, 0, 0, 0.08), 
                  inset -4px -4px 8px rgba(255, 255, 255, 1);
    --clay-outer-sm: 6px 6px 16px rgba(0, 0, 0, 0.1), 
                      -6px -6px 16px rgba(255, 255, 255, 0.95);
    --clay-inner-sm: inset 3px 3px 6px rgba(0, 0, 0, 0.08), 
                      inset -3px -3px 6px rgba(255, 255, 255, 1);
}

/* Dark Theme - needs html.dark-mode */
html.dark-mode {
    --bg-primary: #1C1C1F;
    --bg-secondary: #1C1C1F;
    --bg-card: var(--bg-primary);
    --bg-glass: var(--bg-primary);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ANIMATED BACKGROUND (CLEANED UP FOR FOCUS)
   ═══════════════════════════════════════════════════════════════════════════════ */

.insights-bg {
    display: none; /* Removed as per user request to keep background clean and focus colors on widgets */
}

/* ═══════════════════════════════════════════════════════════════════════════════
   MAIN LAYOUT
   ═══════════════════════════════════════════════════════════════════════════════ */

.insights-app {
    position: relative;
    z-index: 1;
    padding: var(--spacing-md);
    padding-top: calc(var(--safe-top) + 60px);
    padding-bottom: calc(var(--safe-bottom) + 100px);
    max-width: 600px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════════════════════ */

.insights-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) var(--spacing-lg);
    padding-top: calc(var(--safe-top));
    background: transparent;
    border-bottom: none;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.insights-header.scrolled {
    background: rgba(13, 13, 18, 0.7);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
}

.light-mode .insights-header.scrolled,
html:not(.dark-mode) .insights-header.scrolled {
    background: rgba(245, 245, 247, 0.75);
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

.insights-header__title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.back-btn,
.theme-toggle-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: var(--radius-full);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    /* Extreme Claymorphism */
    box-shadow: var(--clay-outer-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 101;
    pointer-events: auto;
}

.back-btn:active,
.theme-toggle-btn:active {
    box-shadow: var(--clay-inner-sm);
    transform: scale(0.95);
}

.theme-toggle-btn:hover {
    box-shadow: var(--clay-gold), var(--clay-outer-sm);
    color: var(--gold-400);
    transform: scale(1.05);
}

.theme-toggle-btn:active {
    box-shadow: var(--clay-inner-sm);
    transform: scale(0.95);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   PREMIUM WIDGET CARDS
   ═══════════════════════════════════════════════════════════════════════════════ */

.glass-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    border: none;
    padding: var(--spacing-lg);
    box-shadow: var(--clay-outer);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.light-mode .glass-card,
html:not(.dark-mode) .glass-card {
    background: var(--bg-primary);
    border: none;
    box-shadow: var(--clay-outer);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   INSPIRATION SECTION — Premium Realistic Sky & Clouds
   ═══════════════════════════════════════════════════════════════════════════════ */

.inspiration-section {
    margin-bottom: var(--spacing-xl);
    padding: 28px;
    border-radius: 32px;
    background: linear-gradient(180deg, 
        #E8F4FC 0%, 
        #D6EBFA 25%,
        #B8DFF7 50%, 
        #A5D8F5 75%,
        #7ECBF2 100%
    );
    color: #1E3A5F;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 
        /* Outer soft claymorphic glow */
        0 20px 60px rgba(125, 211, 252, 0.3),
        0 8px 24px rgba(14, 165, 233, 0.15),
        /* Inner highlight for depth */
        inset 0 1px 2px rgba(255, 255, 255, 0.9),
        inset 0 -1px 2px rgba(14, 165, 233, 0.1);
    position: relative;
    overflow: hidden;
}

/* Realistic fluffy clouds - multiple layers */
.inspiration-section::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -40px;
    width: 180px;
    height: 100px;
    background: 
        radial-gradient(ellipse 60px 40px at 30% 50%, rgba(255,255,255,0.95) 0%, transparent 70%),
        radial-gradient(ellipse 50px 35px at 60% 45%, rgba(255,255,255,0.9) 0%, transparent 70%),
        radial-gradient(ellipse 45px 30px at 80% 55%, rgba(255,255,255,0.85) 0%, transparent 70%);
    filter: blur(1px);
    opacity: 0.9;
    animation: cloudFloat1 20s ease-in-out infinite;
}

.inspiration-section::after {
    content: '';
    position: absolute;
    top: 40px;
    left: -30px;
    width: 140px;
    height: 80px;
    background: 
        radial-gradient(ellipse 50px 35px at 35% 50%, rgba(255,255,255,0.9) 0%, transparent 70%),
        radial-gradient(ellipse 40px 28px at 65% 45%, rgba(255,255,255,0.85) 0%, transparent 70%),
        radial-gradient(ellipse 35px 25px at 85% 55%, rgba(255,255,255,0.8) 0%, transparent 70%);
    filter: blur(1px);
    opacity: 0.7;
    animation: cloudFloat2 25s ease-in-out infinite;
}

/* Additional cloud layer */
.inspiration-section .cloud-layer {
    position: absolute;
    bottom: 60px;
    right: 20px;
    width: 120px;
    height: 70px;
    background: 
        radial-gradient(ellipse 45px 30px at 40% 50%, rgba(255,255,255,0.85) 0%, transparent 70%),
        radial-gradient(ellipse 38px 26px at 70% 48%, rgba(255,255,255,0.8) 0%, transparent 70%);
    filter: blur(1px);
    opacity: 0.6;
    animation: cloudFloat3 18s ease-in-out infinite;
}

/* Soft sun glow effect */
.inspiration-section .sun-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, rgba(255,248,220,0.2) 40%, transparent 70%);
    pointer-events: none;
}

/* Cloud animations */
@keyframes cloudFloat1 {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(15px) translateY(-5px); }
}

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

@keyframes cloudFloat3 {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(8px) translateY(-3px); }
}

/* Dark mode - twilight sky */
html.dark-mode .inspiration-section {
    background: linear-gradient(180deg, 
        #1E3A5F 0%, 
        #0F2847 25%,
        #0A1F3D 50%, 
        #05152B 75%,
        #020D1F 100%
    );
    color: #E0F2FE;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 8px 24px rgba(14, 165, 233, 0.1),
        inset 0 1px 2px rgba(255, 255, 255, 0.05),
        inset 0 -1px 2px rgba(0, 0, 0, 0.3);
}

html.dark-mode .inspiration-section::before,
html.dark-mode .inspiration-section::after,
html.dark-mode .inspiration-section .cloud-layer {
    opacity: 0.25;
    filter: blur(2px);
}

html.dark-mode .inspiration-section .sun-glow {
    background: radial-gradient(circle, rgba(125,211,252,0.15) 0%, rgba(14,165,233,0.05) 40%, transparent 70%);
}

.inspiration-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.inspiration-tag {
    font-size: 13px;
    font-weight: 700;
    color: #0369A1;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(255, 255, 255, 0.7);
    padding: 6px 12px;
    border-radius: 100px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

html.dark-mode .inspiration-tag {
    color: #7DD3FC;
    background: rgba(14, 165, 233, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

.refresh-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-full);
    color: #0369A1;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 2px rgba(255, 255, 255, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

html.dark-mode .refresh-btn {
    background: rgba(14, 165, 233, 0.2);
    color: #7DD3FC;
    border-color: rgba(255, 255, 255, 0.1);
}

.refresh-btn:active {
    transform: scale(0.95);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.inspiration-quote__text {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    color: #1E3A5F;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 2;
}

html.dark-mode .inspiration-quote__text {
    color: #E0F2FE;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.inspiration-quote__translation {
    font-size: 15px;
    color: #334155;
    font-style: italic;
    line-height: 1.6;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

html.dark-mode .inspiration-quote__translation {
    color: #BAE6FD;
}

.inspiration-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(14, 165, 233, 0.2);
    color: #475569;
    position: relative;
    z-index: 2;
}

html.dark-mode .inspiration-meta {
    border-top-color: rgba(255, 255, 255, 0.1);
    color: #94A3B8;
}

.inspiration-meta span {
    font-size: 13px;
    font-weight: 600;
}

.share-btn {
    padding: 10px 20px;
    border: none;
    background: #FFFFFF;
    color: #0369A1;
    font-size: 13px;
    font-weight: 700;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 2px rgba(255, 255, 255, 1);
    border: 1px solid rgba(14, 165, 233, 0.2);
}

html.dark-mode .share-btn {
    background: rgba(14, 165, 233, 0.2);
    color: #7DD3FC;
    border-color: rgba(255, 255, 255, 0.1);
}

.share-btn:active {
    transform: scale(0.95);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SECTION TITLE
   ═══════════════════════════════════════════════════════════════════════════════ */

.section-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   TODAY'S WISDOM CARD - PREMIUM & CURVY 
   ═══════════════════════════════════════════════════════════════════════════════ */

.wisdom-section {
    margin-bottom: var(--spacing-xl);
}

.wisdom-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    border-radius: 32px;
    background: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Extreme Claymorphism */
    box-shadow: var(--clay-outer);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.wisdom-card:active {
    box-shadow: var(--clay-inner);
    transform: translateY(2px);
}

.light-mode .wisdom-card,
html:not(.dark-mode) .wisdom-card {
    background: var(--bg-primary);
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: var(--clay-outer);
}

.light-mode .wisdom-card:active,
html:not(.dark-mode) .wisdom-card:active {
    box-shadow: var(--clay-inner);
}

/* Subtle background glow element to make it lively */
.wisdom-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 120px;
    background: radial-gradient(ellipse at top, rgba(212, 165, 116, 0.15), transparent 70%);
    pointer-events: none;
}

.wisdom-icon {
    font-size: 28px;
    width: 72px;
    height: 72px;
    background: var(--bg-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    /* Claymorphic orb */
    box-shadow: var(--clay-outer-sm), 0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.wisdom-icon::before {
    content: '';
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

html.dark-mode .wisdom-icon {
    box-shadow: var(--clay-outer-sm), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.wisdom-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.01em;
    position: relative;
    z-index: 2;
}

.wisdom-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    font-weight: 500;
    max-width: 95%;
    position: relative;
    z-index: 2;
}

.wisdom-gurbani {
    background: rgba(0, 0, 0, 0.04);
    padding: var(--spacing-lg);
    border-radius: 20px; /* curvy inner card */
    width: 100%;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05); /* very soft inner border */
    overflow: hidden;
}

.light-mode .wisdom-gurbani,
html:not(.dark-mode) .wisdom-gurbani {
    background: rgba(0, 0, 0, 0.025);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

html.dark-mode .wisdom-gurbani {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Beautiful curved left border matching screenshot */
.wisdom-gurbani::before {
    content: '';
    position: absolute;
    top: 14px; right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.15), transparent 60%);
    pointer-events: none;
}

.wisdom-pankti {
    font-family: 'Noto Sans Gurmukhi', 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--gold-500);
    margin-bottom: 8px;
    line-height: 1.5;
}

.light-mode .wisdom-pankti,
html:not(.dark-mode) .wisdom-pankti {
    color: #C37A32; /* matching golden brown colour in the screenshot */
}

.wisdom-source {
    font-size: 13px;
    font-style: italic;
    color: var(--text-tertiary);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   WISDOM CARD PREMIUM EFFECTS — Creative Claymorphism
   ═══════════════════════════════════════════════════════════════════════════════ */

/* 3D Clay orbs floating in background */
.wisdom-glow {
    position: absolute;
    top: 15px;
    left: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.3) 0%, rgba(212, 165, 116, 0.1) 100%);
    box-shadow: 
        8px 8px 20px rgba(0, 0, 0, 0.15),
        -8px -8px 20px rgba(255, 255, 255, 0.8),
        inset 0 1px 2px rgba(255, 255, 255, 0.5);
    pointer-events: none;
    z-index: 1;
    animation: clayOrbFloat1 8s ease-in-out infinite;
}

.wisdom-glow::after {
    content: '';
    position: absolute;
    top: 80px;
    right: -150px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.25) 0%, rgba(167, 139, 250, 0.08) 100%);
    box-shadow: 
        6px 6px 16px rgba(0, 0, 0, 0.12),
        -6px -6px 16px rgba(255, 255, 255, 0.7),
        inset 0 1px 2px rgba(255, 255, 255, 0.4);
    animation: clayOrbFloat2 10s ease-in-out infinite;
}

@keyframes clayOrbFloat1 {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.05); }
}

@keyframes clayOrbFloat2 {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(12px) scale(0.95); }
}

/* Embossed geometric pattern instead of rays */
.wisdom-rays {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
    background: 
        radial-gradient(circle at 20% 30%, rgba(212, 165, 116, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 80% 70%, rgba(167, 139, 250, 0.12) 0%, transparent 20%),
        radial-gradient(circle at 40% 80%, rgba(110, 231, 183, 0.1) 0%, transparent 18%);
}

/* Claymorphic ridges/pillars */
.wisdom-rays::before {
    content: '';
    position: absolute;
    top: 30px;
    right: 15px;
    width: 8px;
    height: 80px;
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.2) 100%);
    box-shadow: 
        3px 3px 8px rgba(0, 0, 0, 0.1),
        -3px -3px 8px rgba(255, 255, 255, 0.8),
        inset 0 1px 2px rgba(255, 255, 255, 0.9);
    animation: clayRidgePulse 6s ease-in-out infinite;
}

.wisdom-rays::after {
    content: '';
    position: absolute;
    bottom: 40px;
    left: 20px;
    width: 6px;
    height: 50px;
    border-radius: 3px;
    background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.15) 100%);
    box-shadow: 
        2px 2px 6px rgba(0, 0, 0, 0.08),
        -2px -2px 6px rgba(255, 255, 255, 0.7),
        inset 0 1px 1px rgba(255, 255, 255, 0.8);
    animation: clayRidgePulse 8s ease-in-out infinite reverse;
}

@keyframes clayRidgePulse {
    0%, 100% { opacity: 0.7; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.1); }
}

/* Clay dots pattern instead of floating particles */
.wisdom-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.wisdom-particles span {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.4) 100%);
    box-shadow: 
        2px 2px 6px rgba(0, 0, 0, 0.1),
        -2px -2px 6px rgba(255, 255, 255, 0.8),
        inset 0 1px 1px rgba(255, 255, 255, 1);
}

.wisdom-particles span:nth-child(1) {
    top: 25%;
    left: 8%;
    width: 12px;
    height: 12px;
    animation: clayDotBounce 5s ease-in-out infinite;
}

.wisdom-particles span:nth-child(2) {
    top: 45%;
    right: 10%;
    width: 8px;
    height: 8px;
    animation: clayDotBounce 6s ease-in-out infinite 1s;
}

.wisdom-particles span:nth-child(3) {
    top: 65%;
    left: 15%;
    width: 10px;
    height: 10px;
    animation: clayDotBounce 7s ease-in-out infinite 2s;
}

.wisdom-particles span:nth-child(4) {
    top: 35%;
    right: 20%;
    width: 6px;
    height: 6px;
    animation: clayDotBounce 5.5s ease-in-out infinite 0.5s;
}

.wisdom-particles span:nth-child(5) {
    top: 75%;
    right: 8%;
    width: 14px;
    height: 14px;
    animation: clayDotBounce 8s ease-in-out infinite 1.5s;
}

@keyframes clayDotBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.1); }
}

/* Dark mode adjustments for claymorphism effects */
html.dark-mode .wisdom-glow {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.2) 0%, rgba(212, 165, 116, 0.05) 100%);
    box-shadow: 
        8px 8px 20px rgba(0, 0, 0, 0.4),
        -8px -8px 20px rgba(255, 255, 255, 0.03),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

html.dark-mode .wisdom-glow::after {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.15) 0%, rgba(167, 139, 250, 0.05) 100%);
    box-shadow: 
        6px 6px 16px rgba(0, 0, 0, 0.3),
        -6px -6px 16px rgba(255, 255, 255, 0.02),
        inset 0 1px 2px rgba(255, 255, 255, 0.08);
}

html.dark-mode .wisdom-rays {
    background: 
        radial-gradient(circle at 20% 30%, rgba(212, 165, 116, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 80% 70%, rgba(167, 139, 250, 0.08) 0%, transparent 20%),
        radial-gradient(circle at 40% 80%, rgba(110, 231, 183, 0.06) 0%, transparent 18%);
}

html.dark-mode .wisdom-rays::before,
html.dark-mode .wisdom-rays::after {
    background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 100%);
    box-shadow: 
        3px 3px 8px rgba(0, 0, 0, 0.3),
        -3px -3px 8px rgba(255, 255, 255, 0.05),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

html.dark-mode .wisdom-particles span {
    background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.15) 100%);
    box-shadow: 
        2px 2px 6px rgba(0, 0, 0, 0.2),
        -2px -2px 6px rgba(255, 255, 255, 0.05),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   CATEGORIES GRID
   ═══════════════════════════════════════════════════════════════════════════════ */

.categories-section {
    margin-bottom: var(--spacing-lg);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    text-decoration: none;
    color: var(--text-primary) !important;
    padding: 20px;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: linear-gradient(145deg, #FFFFFF 0%, #F8F8FA 100%);
    box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, 1),
        inset 0 -2px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:active {
    transform: scale(0.98);
    box-shadow:
        inset 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Specific colorful icon backgrounds - Premium Claymorphism */
.category-card[data-topic="history"] { 
    background: linear-gradient(145deg, #FFF5F5 0%, #FFEBEB 100%) !important; 
    border-color: rgba(255, 154, 139, 0.2);
}
.category-card[data-topic="history"] .category-icon {
    background: linear-gradient(135deg, #FFF0ED 0%, #FFE8E4 100%) !important;
    color: #E07A5F;
    box-shadow: 
        6px 6px 16px rgba(224, 122, 95, 0.15),
        -6px -6px 16px rgba(255, 255, 255, 0.9),
        inset 0 1px 2px rgba(255, 255, 255, 0.8),
        inset 0 -1px 2px rgba(224, 122, 95, 0.05);
    border: 1px solid rgba(224, 122, 95, 0.15);
}

.category-card[data-topic="sakhis"] { 
    background: linear-gradient(145deg, #F8F5FF 0%, #F0EBFF 100%) !important; 
    border-color: rgba(167, 139, 250, 0.2);
}
.category-card[data-topic="sakhis"] .category-icon {
    background: linear-gradient(135deg, #F5F0FF 0%, #EDE5FF 100%) !important;
    color: #9B7AE8;
    box-shadow: 
        6px 6px 16px rgba(155, 122, 232, 0.15),
        -6px -6px 16px rgba(255, 255, 255, 0.9),
        inset 0 1px 2px rgba(255, 255, 255, 0.8),
        inset 0 -1px 2px rgba(155, 122, 232, 0.05);
    border: 1px solid rgba(155, 122, 232, 0.15);
}

.category-card[data-topic="raags"] { 
    background: linear-gradient(145deg, #F0FDF7 0%, #E6FAF0 100%) !important; 
    border-color: rgba(110, 231, 183, 0.2);
}
.category-card[data-topic="raags"] .category-icon {
    background: linear-gradient(135deg, #EBFDF5 0%, #DFF9ED 100%) !important;
    color: #4ECB9C;
    box-shadow: 
        6px 6px 16px rgba(78, 203, 156, 0.15),
        -6px -6px 16px rgba(255, 255, 255, 0.9),
        inset 0 1px 2px rgba(255, 255, 255, 0.8),
        inset 0 -1px 2px rgba(78, 203, 156, 0.05);
    border: 1px solid rgba(78, 203, 156, 0.15);
}

.category-card[data-topic="composers"] { 
    background: linear-gradient(145deg, #F0F7FF 0%, #E6F0FF 100%) !important; 
    border-color: rgba(96, 165, 250, 0.2);
}
.category-card[data-topic="composers"] .category-icon {
    background: linear-gradient(135deg, #EBF3FF 0%, #DFECFF 100%) !important;
    color: #5A9CF5;
    box-shadow: 
        6px 6px 16px rgba(90, 156, 245, 0.15),
        -6px -6px 16px rgba(255, 255, 255, 0.9),
        inset 0 1px 2px rgba(255, 255, 255, 0.8),
        inset 0 -1px 2px rgba(90, 156, 245, 0.05);
    border: 1px solid rgba(90, 156, 245, 0.15);
}

.category-card[data-topic="themes"] { 
    background: linear-gradient(145deg, #FFF0F5 0%, #FFE8F0 100%) !important; 
    border-color: rgba(244, 162, 192, 0.2);
}
.category-card[data-topic="themes"] .category-icon {
    background: linear-gradient(135deg, #FFEBF2 0%, #FFE0EA 100%) !important;
    color: #E86B9A;
    box-shadow: 
        6px 6px 16px rgba(232, 107, 154, 0.15),
        -6px -6px 16px rgba(255, 255, 255, 0.9),
        inset 0 1px 2px rgba(255, 255, 255, 0.8),
        inset 0 -1px 2px rgba(232, 107, 154, 0.05);
    border: 1px solid rgba(232, 107, 154, 0.15);
}

.category-card[data-topic="guruSahibs"] { 
    background: linear-gradient(145deg, #FFFBF5 0%, #FFF5E6 100%) !important; 
    border-color: rgba(251, 191, 36, 0.2);
}
.category-card[data-topic="guruSahibs"] .category-icon {
    background: linear-gradient(135deg, #FFF8ED 0%, #FFF0D9 100%) !important;
    color: #D4A34B;
    box-shadow: 
        6px 6px 16px rgba(212, 163, 75, 0.15),
        -6px -6px 16px rgba(255, 255, 255, 0.9),
        inset 0 1px 2px rgba(255, 255, 255, 0.8),
        inset 0 -1px 2px rgba(212, 163, 75, 0.05);
    border: 1px solid rgba(212, 163, 75, 0.15);
}

.category-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 16px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.category-card:active .category-icon {
    transform: scale(0.95);
    box-shadow: 
        inset 3px 3px 8px rgba(0, 0, 0, 0.08),
        inset -3px -3px 8px rgba(255, 255, 255, 0.9);
}

/* Dark mode category icons - softer appearance */
html.dark-mode .category-card[data-topic="history"] .category-icon {
    background: linear-gradient(135deg, rgba(224, 122, 95, 0.15) 0%, rgba(224, 122, 95, 0.1) 100%) !important;
    color: #F4A896;
    box-shadow: 
        6px 6px 16px rgba(0, 0, 0, 0.3),
        -6px -6px 16px rgba(255, 255, 255, 0.03),
        inset 0 1px 2px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(244, 168, 150, 0.2);
}

html.dark-mode .category-card[data-topic="sakhis"] .category-icon {
    background: linear-gradient(135deg, rgba(155, 122, 232, 0.15) 0%, rgba(155, 122, 232, 0.1) 100%) !important;
    color: #B8A0F0;
    box-shadow: 
        6px 6px 16px rgba(0, 0, 0, 0.3),
        -6px -6px 16px rgba(255, 255, 255, 0.03),
        inset 0 1px 2px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(184, 160, 240, 0.2);
}

html.dark-mode .category-card[data-topic="raags"] .category-icon {
    background: linear-gradient(135deg, rgba(78, 203, 156, 0.15) 0%, rgba(78, 203, 156, 0.1) 100%) !important;
    color: #6EE7B7;
    box-shadow: 
        6px 6px 16px rgba(0, 0, 0, 0.3),
        -6px -6px 16px rgba(255, 255, 255, 0.03),
        inset 0 1px 2px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(110, 231, 183, 0.2);
}

html.dark-mode .category-card[data-topic="composers"] .category-icon {
    background: linear-gradient(135deg, rgba(90, 156, 245, 0.15) 0%, rgba(90, 156, 245, 0.1) 100%) !important;
    color: #7DB8FA;
    box-shadow: 
        6px 6px 16px rgba(0, 0, 0, 0.3),
        -6px -6px 16px rgba(255, 255, 255, 0.03),
        inset 0 1px 2px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(125, 184, 250, 0.2);
}

html.dark-mode .category-card[data-topic="themes"] .category-icon {
    background: linear-gradient(135deg, rgba(232, 107, 154, 0.15) 0%, rgba(232, 107, 154, 0.1) 100%) !important;
    color: #F094B4;
    box-shadow: 
        6px 6px 16px rgba(0, 0, 0, 0.3),
        -6px -6px 16px rgba(255, 255, 255, 0.03),
        inset 0 1px 2px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(240, 148, 180, 0.2);
}

html.dark-mode .category-card[data-topic="guruSahibs"] .category-icon {
    background: linear-gradient(135deg, rgba(212, 163, 75, 0.15) 0%, rgba(212, 163, 75, 0.1) 100%) !important;
    color: #E8C87A;
    box-shadow: 
        6px 6px 16px rgba(0, 0, 0, 0.3),
        -6px -6px 16px rgba(255, 255, 255, 0.03),
        inset 0 1px 2px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(232, 200, 122, 0.2);
}

/* Dark mode category card backgrounds - fix light colors */
html.dark-mode .category-card[data-topic="history"] { 
    background: linear-gradient(145deg, rgba(244, 168, 150, 0.15) 0%, rgba(224, 122, 95, 0.08) 100%) !important; 
    border-color: rgba(244, 168, 150, 0.15);
}

html.dark-mode .category-card[data-topic="sakhis"] { 
    background: linear-gradient(145deg, rgba(184, 160, 240, 0.15) 0%, rgba(155, 122, 232, 0.08) 100%) !important; 
    border-color: rgba(184, 160, 240, 0.15);
}

html.dark-mode .category-card[data-topic="raags"] { 
    background: linear-gradient(145deg, rgba(110, 231, 183, 0.15) 0%, rgba(78, 203, 156, 0.08) 100%) !important; 
    border-color: rgba(110, 231, 183, 0.15);
}

html.dark-mode .category-card[data-topic="composers"] { 
    background: linear-gradient(145deg, rgba(125, 184, 250, 0.15) 0%, rgba(90, 156, 245, 0.08) 100%) !important; 
    border-color: rgba(125, 184, 250, 0.15);
}

html.dark-mode .category-card[data-topic="themes"] { 
    background: linear-gradient(145deg, rgba(240, 148, 180, 0.15) 0%, rgba(232, 107, 154, 0.08) 100%) !important; 
    border-color: rgba(240, 148, 180, 0.15);
}

html.dark-mode .category-card[data-topic="guruSahibs"] { 
    background: linear-gradient(145deg, rgba(232, 200, 122, 0.15) 0%, rgba(212, 163, 75, 0.08) 100%) !important; 
    border-color: rgba(232, 200, 122, 0.15);
}

.category-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.category-desc {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Image-based category icons */
.category-icon--img {
    background: transparent !important;
    overflow: hidden;
    padding: 0;
}

.category-icon--img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   TOPICS LIST
   ═══════════════════════════════════════════════════════════════════════════════ */

.topics-section {
    margin-bottom: var(--spacing-lg);
}

.topics-list {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-xl);
    background: var(--bg-primary);
    border: none;
    box-shadow: var(--clay-outer);
    overflow: hidden;
}

.light-mode .topics-list, html:not(.dark-mode) .topics-list {
    background: var(--bg-primary);
    border: none;
    box-shadow: var(--clay-outer);
}

.topic-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    text-decoration: none;
    color: var(--text-primary);
    border-bottom: 0.5px solid rgba(255,255,255,0.06);
    background: transparent;
    transition: background 0.2s;
}

.light-mode .topic-card, html:not(.dark-mode) .topic-card {
    border-bottom-color: rgba(0,0,0,0.04);
}

.topic-card:last-child {
    border-bottom: none;
}

.topic-card:active {
    background: rgba(128, 128, 128, 0.1);
}

.topic-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.topic-emoji {
    font-size: 24px;
    width: 48px;
    height: 48px;
    background: var(--bg-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Claymorphic emoji container */
    box-shadow: var(--clay-outer-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.topic-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
    letter-spacing: -0.01em;
}

.topic-desc {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.topic-card svg {
    color: var(--text-tertiary);
    opacity: 0.6;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   QUICK STATS
   ═══════════════════════════════════════════════════════════════════════════════ */

.quick-stats-section {
    margin-bottom: var(--spacing-lg);
}

.quick-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

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

.quick-stat__value {
    font-size: 28px;
    font-weight: 900;
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
}

.quick-stat__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quick-stat__divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

.light-mode .quick-stat__divider,
html:not(.dark-mode) .quick-stat__divider {
    background: rgba(0, 0, 0, 0.08);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RECOMMENDATIONS
   ═══════════════════════════════════════════════════════════════════════════════ */

.recommendations-section {
    margin-bottom: var(--spacing-lg);
}

.shabads-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.shabad-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    /* Claymorphism */
    box-shadow: var(--clay-outer-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.shabad-card:active {
    box-shadow: var(--clay-inner-sm);
    transform: scale(0.98);
}

.shabad-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.shabad-title {
    font-size: 16px;
    font-weight: 600;
}

.shabad-meta {
    font-size: 12px;
    color: var(--text-tertiary);
}

.shabad-play-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-primary);
    border-radius: var(--radius-full);
    color: var(--gold-400);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    /* Claymorphic orb */
    box-shadow: var(--clay-outer-sm), 0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.shabad-play-btn:active {
    box-shadow: var(--clay-inner-sm);
    transform: scale(0.95);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   BOTTOM NAVIGATION — Unified Emoji Navbar (matches Dashboard)
   ═══════════════════════════════════════════════════════════════════════════════ */

.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
  display: flex; justify-content: center;
  padding: 0 24px; padding-bottom: calc(12px + var(--safe-bottom));
  pointer-events: none;
}
.bottom-nav__glass {
  pointer-events: all; width: 100%; max-width: 340px;
  display: flex; align-items: center; justify-content: space-around;
  padding: 8px; height: 64px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border-radius: 100px;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 10px rgba(0, 0, 0, 0.04);
  position: relative; overflow: hidden;
}
html.dark-mode .bottom-nav__glass {
  background: rgba(28, 28, 30, 0.65) !important;
  backdrop-filter: blur(40px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(40px) saturate(200%) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 
    0 6px 32px rgba(0, 0, 0, 0.40),
    0 2px 10px rgba(0, 0, 0, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -0.5px 0 rgba(0, 0, 0, 0.2) !important;
}
html.dark-mode .bottom-nav__glass::before {
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.10) 30%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.10) 70%,
    transparent 100%
  ) !important;
}
html.dark-mode .bottom-nav__glass::after {
  display: none !important;
}
.nav-tab {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 6px 12px; border-radius: 22px; border: none;
  background: transparent; text-decoration: none; color: rgba(0, 0, 0, 0.38);
  cursor: pointer; transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  -webkit-tap-highlight-color: transparent; min-width: 56px;
}
html.dark-mode .nav-tab { color: rgba(255, 255, 255, 0.38); }
.nav-tab:active { transform: scale(0.85); }
.ios-emoji--nav { font-size: 22px; line-height: 1; opacity: 0.5; transition: opacity 0.2s, transform 0.2s; }
.nav-tab:hover .ios-emoji--nav { opacity: 0.8; }
.nav-tab__label { font-size: 10px; font-weight: 600; letter-spacing: -0.01em; line-height: 1; }

.nav-tab--active { color: #000000 !important; background: transparent; }
html.dark-mode .nav-tab--active { color: #FFFFFF !important; background: transparent !important; }
.nav-tab--active .nav-tab__label { font-weight: 700; color: #000000; transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
html.dark-mode .nav-tab--active .nav-tab__label { 
  color: #FFFFFF !important; 
  font-weight: 800;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}
.nav-tab--active .ios-emoji--nav { 
  opacity: 1 !important; 
  background: transparent !important;
  transform: scale(1.35) translateY(-3px); 
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15));
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
html.dark-mode .nav-tab--active .ios-emoji--nav {
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8)) drop-shadow(0 6px 10px rgba(0,0,0,0.6)) !important;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   MODAL STYLES
   ═══════════════════════════════════════════════════════════════════════════════ */

.insight-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.insight-modal--active {
    opacity: 1;
    visibility: visible;
}

.insight-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.insight-modal__content {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.insight-modal--active .insight-modal__content {
    transform: translateY(0);
}

.insight-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

html:not(.dark-mode) .insight-modal__header {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

.insight-modal__title {
    font-size: 18px;
    font-weight: 700;
}

.insight-modal__close {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: var(--radius-full);
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    /* Claymorphic orb */
    box-shadow: var(--clay-outer-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.insight-modal__close:hover {
    box-shadow: var(--clay-gold), var(--clay-outer-sm);
    color: var(--gold-400);
}

.insight-modal__close:active {
    box-shadow: var(--clay-inner-sm);
    transform: scale(0.95);
}

.insight-modal__lang-switch {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

html:not(.dark-mode) .insight-modal__lang-switch {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

.lang-btn {
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-lg);
    background: var(--bg-glass);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-btn--active {
    background: var(--gold-gradient);
    color: #fff;
}

.insight-modal__body {
    padding: var(--spacing-lg);
    overflow-y: auto;
    max-height: calc(85vh - 120px);
}

/* Modal Content Styles */
.modal-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.modal-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background: var(--bg-glass);
    border-radius: var(--radius-md);
    transition: transform 0.2s;
}

.modal-list-item:active {
    transform: scale(0.98);
}

.modal-list-item__name {
    font-size: 14px;
    font-weight: 600;
}

.modal-list-item__info {
    font-size: 12px;
    color: var(--text-tertiary);
}

.modal-list-item__count {
    font-size: 12px;
    padding: 4px 10px;
    background: var(--gold-gradient);
    color: #fff;
    border-radius: 100px;
    font-weight: 600;
}

/* Theme Cards */
.theme-card {
    padding: var(--spacing-lg);
    background: var(--bg-glass);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
}

.theme-card__title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.theme-card__desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* History Content */
.history-content {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.history-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.history-content p {
    margin-bottom: var(--spacing-md);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   WISDOM SECTION
   ═══════════════════════════════════════════════════════════════════════════════ */

.wisdom-section {
    margin-bottom: var(--spacing-lg);
}

.wisdom-card {
    text-align: center;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.12), rgba(167, 139, 250, 0.08)) !important;
}

.wisdom-icon {
    font-size: 48px;
    margin-bottom: var(--spacing-sm);
    line-height: 1;
}

.wisdom-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.wisdom-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.wisdom-gurbani {
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--gold-400);
}

html:not(.dark-mode) .wisdom-gurbani {
    background: rgba(0, 0, 0, 0.03);
}

.wisdom-pankti {
    font-family: 'Noto Sans Gurmukhi', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--gold-400);
    line-height: 1.5;
    margin-bottom: var(--spacing-xs);
}

.wisdom-source {
    font-size: 12px;
    color: var(--text-tertiary);
    font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   LINK RESETS
   ═══════════════════════════════════════════════════════════════════════════════ */

a.topic-card {
    text-decoration: none;
    color: inherit;
}

a.topic-card svg {
    color: var(--text-tertiary);
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   CATEGORY CARD HOVER
   ═══════════════════════════════════════════════════════════════════════════════ */

.category-card {
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════════ */

@media (min-width: 480px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   BOTTOM NAVIGATION — Unified iOS Floating Pill (matches Home exactly)
   ═══════════════════════════════════════════════════════════════════════════════ */

.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 900;
    display: flex;
    justify-content: center;
    padding: 0 24px;
    padding-bottom: calc(12px + var(--safe-bottom));
    pointer-events: none;
}

.bottom-nav__glass {
    pointer-events: all;
    width: 100%;
    max-width: 320px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 8px 8px;
    height: 64px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(80px) saturate(260%) brightness(1.08);
    -webkit-backdrop-filter: blur(80px) saturate(260%) brightness(1.08);
    border-radius: 9999px;
    border: 0.5px solid rgba(255, 255, 255, 0.65);
    box-shadow:
        0 6px 32px rgba(0, 0, 0, 0.10),
        0 2px 10px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -0.5px 0 rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.bottom-nav__glass::before {
    content: '';
    position: absolute;
    top: 0; left: 12px; right: 12px;
    height: 0.5px;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.9) 30%,
        rgba(255, 255, 255, 1) 50%,
        rgba(255, 255, 255, 0.9) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    pointer-events: none;
}

.bottom-nav__glass::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(165deg,
        rgba(255, 255, 255, 0.2) 0%,
        transparent 40%,
        transparent 60%,
        rgba(255, 255, 255, 0.1) 100%
    );
    pointer-events: none;
}

html.dark-mode .bottom-nav__glass {
  background: rgba(28, 28, 30, 0.65) !important;
  backdrop-filter: blur(40px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(40px) saturate(200%) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 
    0 6px 32px rgba(0, 0, 0, 0.40),
    0 2px 10px rgba(0, 0, 0, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -0.5px 0 rgba(0, 0, 0, 0.2) !important;
}
html.dark-mode .bottom-nav__glass::before {
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.10) 30%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.10) 70%,
    transparent 100%
  ) !important;
}
html.dark-mode .bottom-nav__glass::after {
  display: none !important;
}

.nav-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 22px;
    border: none;
    background: transparent;
    text-decoration: none;
    color: rgba(0, 0, 0, 0.32);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    -webkit-tap-highlight-color: transparent;
    min-width: 56px;
    position: relative;
    z-index: 1;
}

html.dark-mode .nav-tab { color: rgba(255, 255, 255, 0.35); }
.nav-tab:active { transform: scale(0.82); }
.ios-emoji--nav { font-size: 22px; line-height: 1; }
.nav-tab__label { font-size: 10px; font-weight: 600; letter-spacing: -0.01em; line-height: 1; }

.nav-tab--active { color: #000000 !important; background: transparent; }
html.dark-mode .nav-tab--active { color: #FFFFFF !important; background: transparent !important; box-shadow: none; }
.nav-tab--active .nav-tab__label { font-weight: 700; color: #000000; transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
html.dark-mode .nav-tab--active .nav-tab__label { 
  color: #FFFFFF !important; 
  font-weight: 800;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}
.nav-tab--active .ios-emoji--nav { 
  opacity: 1 !important; 
  background: transparent !important;
  transform: scale(1.35) translateY(-3px); 
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15));
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: none;
  border: none;
}
html.dark-mode .nav-tab--active .ios-emoji--nav {
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8)) drop-shadow(0 6px 10px rgba(0,0,0,0.6)) !important;
  box-shadow: none !important;
  border: none !important;
}