/* ============================================
   KundliBanao - Content pages (Mantras + Gita)
   ============================================ */

.content-main {
    min-height: 100vh;
    padding: 90px 20px 60px;
    max-width: 1100px;
    margin: 0 auto;
    background: radial-gradient(ellipse at top, rgba(139, 92, 246, 0.06), transparent 60%);
}

.content-header {
    text-align: center;
    padding: 20px 16px 28px;
}
.content-header h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 10px;
}
.content-header h1 i {
    color: #f59e0b;
    margin-right: 10px;
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}
.content-header p {
    color: var(--text-dim);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.5;
}
.gita-header h1 i { color: #22d3ee; text-shadow: 0 0 20px rgba(34, 211, 238, 0.5); }

/* Daily shloka */
.daily-shloka {
    margin-bottom: 30px;
}
.daily-label {
    font-size: 0.78rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    font-weight: 700;
    text-align: center;
}
.daily-label i { color: #fbbf24; margin-right: 6px; }
.daily-card {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(251, 191, 36, 0.04));
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 18px;
    padding: 24px 22px;
    text-align: center;
}
.daily-meta {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.daily-chapter {
    color: #22d3ee;
    font-weight: 700;
    font-size: 0.84rem;
}
.daily-theme {
    color: var(--text-dim);
    font-size: 0.82rem;
}
.daily-sanskrit {
    font-family: 'Noto Sans Devanagari', serif;
    font-size: 1.3rem;
    color: var(--text);
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 12px;
}
.daily-translit {
    color: #c4b5fd;
    font-style: italic;
    font-size: 0.94rem;
    margin-bottom: 12px;
    line-height: 1.5;
}
.daily-meaning {
    color: var(--text);
    font-size: 0.94rem;
    margin-bottom: 16px;
    font-style: italic;
}

/* Category pills */
.category-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    justify-content: center;
}
.cat-pill {
    padding: 8px 16px;
    background: rgba(139, 92, 246, 0.06);
    border: 1px solid var(--border);
    color: var(--text-dim);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.84rem;
    cursor: pointer;
    transition: all 0.18s;
}
.cat-pill:hover { color: var(--text); border-color: var(--primary); }
.cat-pill.active {
    background: var(--cat-color, var(--primary));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Mantra & shloka grid */
.mantra-list, .shloka-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

/* Card */
.mantra-card, .shloka-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 18px 16px;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    position: relative;
}
.mantra-card { border-top: 3px solid var(--mc-color, #8b5cf6); }
.shloka-card { border-top: 3px solid #22d3ee; }
.mantra-card:hover, .shloka-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
    border-color: var(--mc-color, #22d3ee);
}
.mc-head, .sc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.mc-cat, .sc-loc {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    border: 1px solid;
}
.sc-loc {
    background: rgba(34, 211, 238, 0.15);
    color: #22d3ee;
    border-color: rgba(34, 211, 238, 0.3);
}
.mc-deity, .sc-theme {
    color: var(--text-dim);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.mc-name {
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 8px;
    font-weight: 700;
}
.mc-sanskrit, .sc-sanskrit {
    font-family: 'Noto Sans Devanagari', serif;
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 6px;
    font-weight: 600;
}
.mc-more, .sc-more {
    color: var(--text-dim);
    font-weight: 500;
}
.mc-translit, .sc-translit {
    color: #c4b5fd;
    font-style: italic;
    font-size: 0.84rem;
    margin-bottom: 8px;
}
.mc-foot {
    display: flex;
    gap: 12px;
    color: var(--text-dim);
    font-size: 0.76rem;
}
.sc-meaning-snip {
    color: var(--text-dim);
    font-size: 0.82rem;
    line-height: 1.45;
}

/* ====== Content Modal ====== */
.content-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.content-modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    max-width: 680px;
    width: 100%;
    max-height: 92vh;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.content-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    line-height: 1;
    z-index: 2;
}
.content-modal-body {
    padding: 24px 24px 28px;
    overflow-y: auto;
}

/* Modal sections */
.cm-head {
    margin: -24px -24px 16px;
    padding: 22px 24px 16px;
    border-bottom: 1px solid var(--border);
}
.cm-cat-line {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.cm-cat {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
}
.cm-deity {
    color: var(--text-dim);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.cm-head h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: var(--text);
    margin: 0;
}
.cm-section {
    margin-bottom: 16px;
}
.cm-label {
    font-size: 0.72rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    margin-bottom: 6px;
}
.cm-sanskrit {
    font-family: 'Noto Sans Devanagari', serif;
    font-size: 1.3rem;
    color: #fde68a;
    font-weight: 700;
    line-height: 1.7;
    padding: 12px 14px;
    background: rgba(245, 158, 11, 0.06);
    border-left: 3px solid #f59e0b;
    border-radius: 6px;
}
.cm-translit {
    color: #c4b5fd;
    font-style: italic;
    font-size: 0.94rem;
    line-height: 1.6;
    padding: 8px 0;
}
.cm-meaning {
    color: var(--text);
    font-size: 0.94rem;
    line-height: 1.6;
}
.cm-benefit {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.5;
    padding: 10px 14px;
    background: rgba(139, 92, 246, 0.05);
    border-left: 3px solid var(--primary);
    border-radius: 6px;
}

/* Chant tracker */
.cm-chant-tracker {
    margin-top: 22px;
    padding: 18px;
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 14px;
}
.cm-chant-progress {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
}
.cm-chant-count {
    font-size: 2.4rem;
    font-weight: 900;
    color: #fbbf24;
    font-variant-numeric: tabular-nums;
}
.cm-chant-target {
    color: var(--text-dim);
    font-size: 1rem;
}
.cm-chant-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 14px;
}
.cm-chant-bar-fill {
    height: 100%;
    transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cm-chant-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.cm-action-btn {
    padding: 10px 18px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--text);
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, background 0.2s;
    font-size: 0.86rem;
}
.cm-action-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    transform: translateY(-1px);
}
.cm-action-btn:active { transform: scale(0.95); }
.cm-chant-hint {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.8rem;
}
.cm-chant-hint b { color: var(--text); }

/* Chant complete celebration */
.chant-celebrate {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.cc-card {
    background: var(--bg-card);
    border: 2px solid #fbbf24;
    border-radius: 24px;
    padding: 36px 28px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 0 80px rgba(251, 191, 36, 0.4);
    animation: ccPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes ccPop {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.cc-om {
    font-family: 'Noto Sans Devanagari', serif;
    font-size: 5rem;
    color: #fbbf24;
    text-shadow: 0 0 30px rgba(251, 191, 36, 0.6);
    line-height: 1;
    margin-bottom: 16px;
    animation: omSpin 8s linear infinite;
}
@keyframes omSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.cc-card h2 { color: var(--text); margin-bottom: 8px; }
.cc-card p { color: var(--text-dim); margin-bottom: 22px; }

/* Mobile */
@media (max-width: 640px) {
    .content-main { padding: 80px 14px 40px; }
    .content-header h1 { font-size: 1.7rem; }
    .mantra-list, .shloka-list { grid-template-columns: 1fr; }
    .cm-sanskrit { font-size: 1.1rem; }
    .cm-chant-count { font-size: 2rem; }
    .daily-sanskrit { font-size: 1.1rem; }
}
