/* ============================================
   KundliBanao - Sadhana Page Styles
   ============================================ */

.sadhana-main {
    min-height: 100vh;
    padding: 90px 20px 60px;
    background: radial-gradient(ellipse at top, rgba(139, 92, 246, 0.08), transparent 60%);
}

.sadhana-container {
    max-width: 900px;
    margin: 0 auto;
}

/* ------- Guest Prompt (login wall lite) ------- */
.sadhana-guest-prompt {
    min-height: 100vh;
    padding: 90px 20px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sgp-card {
    max-width: 560px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px 28px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.sgp-icon {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #f97316);
    color: #fff;
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.4);
}
.sgp-card h1 {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.3;
}
.sgp-card p {
    color: var(--text-dim);
    margin-bottom: 22px;
    line-height: 1.5;
}
.sgp-features {
    list-style: none;
    padding: 0;
    text-align: left;
    margin: 0 0 24px;
}
.sgp-features li {
    padding: 10px 14px;
    background: rgba(139, 92, 246, 0.06);
    border: 1px solid rgba(139, 92, 246, 0.18);
    border-radius: 10px;
    color: var(--text);
    margin-bottom: 8px;
    font-size: 0.92rem;
}
.sgp-features li i {
    color: var(--primary-light);
    margin-right: 8px;
    width: 18px;
}

/* ------- Streak Hero ------- */
.streak-hero {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.02));
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 20px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}
.streak-flame {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.streak-flame i {
    font-size: 5rem;
    background: linear-gradient(180deg, #fbbf24, #f97316, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 12px rgba(249, 115, 22, 0.5));
    animation: flameFlicker 2.5s ease-in-out infinite;
}
@keyframes flameFlicker {
    0%, 100% { transform: scale(1) rotate(-2deg); }
    50% { transform: scale(1.04) rotate(2deg); }
}
.flame-hot i {
    background: linear-gradient(180deg, #fde047, #f59e0b, #dc2626);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0 16px rgba(239, 68, 68, 0.6));
}
.flame-blazing i {
    background: linear-gradient(180deg, #fef08a, #f97316, #7f1d1d);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0 24px rgba(220, 38, 38, 0.7));
}
.streak-number {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-weight: 900;
    font-size: 1.4rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    z-index: 2;
}
.streak-meta { flex: 1; min-width: 0; }
.streak-label {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 8px;
}
.streak-label b { color: #f97316; }
.streak-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--text-dim);
    font-size: 0.88rem;
}
.streak-stats b { color: var(--text); }

/* ------- Done Block ------- */
.done-block {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0.02));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    padding: 36px 24px;
    text-align: center;
    margin-bottom: 24px;
}
.done-icon {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 14px;
    animation: doneBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes doneBounce {
    0% { transform: scale(0.3); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.done-block h2 {
    color: var(--text);
    margin-bottom: 8px;
}
.done-block p {
    color: var(--text-dim);
    margin-bottom: 14px;
}
.done-tomorrow {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 999px;
    color: var(--text);
    font-size: 0.86rem;
}

/* ------- Suggestion Block ------- */
.suggestion-block { margin-bottom: 28px; }
.sug-label {
    font-size: 0.82rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    font-weight: 600;
}
.sug-deity {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 16px;
}
.sug-deity-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    color: #fff;
    font-weight: 800;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sug-deity-info { flex: 1; min-width: 0; }
.sug-deity-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 4px;
}
.sug-deity-name .hindi {
    color: var(--text-dim);
    font-weight: 500;
    font-size: 0.92rem;
}
.sug-deity-reason {
    font-size: 0.84rem;
    color: var(--primary-light);
    margin-bottom: 2px;
}
.sug-deity-bene {
    font-size: 0.78rem;
    color: var(--text-dim);
}

/* ------- Deity Grid ------- */
.deity-section { margin-bottom: 28px; }
.deity-section h3 {
    color: var(--text);
    margin-bottom: 14px;
    font-size: 1.1rem;
}
.deity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}
.deity-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 14px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.deity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}
.deity-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    color: #fff;
    font-weight: 800;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}
.deity-name {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}
.deity-hindi {
    color: var(--text-dim);
    font-size: 0.86rem;
    margin-bottom: 8px;
}
.deity-benefit {
    color: var(--text-dim);
    font-size: 0.76rem;
    margin-bottom: 8px;
    line-height: 1.3;
}
.deity-meta {
    color: var(--text-dim);
    font-size: 0.72rem;
}

/* ------- Practice Screen ------- */
.practice-screen {
    background: linear-gradient(180deg, var(--bg-card), rgba(26, 26, 46, 0.5));
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 28px 24px 32px;
    text-align: center;
    margin-bottom: 24px;
}
.practice-back {
    position: absolute;
    background: none;
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.82rem;
    margin-bottom: 12px;
}
.practice-back:hover { color: var(--text); border-color: var(--primary); }
.practice-deity {
    margin: 8px auto 18px;
}
.pd-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    color: #fff;
    font-weight: 800;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}
.pd-name {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text);
}
.pd-hindi {
    color: var(--text-dim);
    font-weight: 500;
}
.pd-benefit {
    color: var(--text-dim);
    font-size: 0.84rem;
    margin-top: 4px;
}
.practice-mantra {
    margin: 22px auto 8px;
    padding: 18px 20px;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 14px;
    max-width: 480px;
}
.pm-sanskrit {
    font-family: 'Noto Sans Devanagari', serif;
    font-size: 1.5rem;
    color: var(--text);
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 6px;
}
.pm-translit {
    color: var(--primary-light);
    font-size: 0.92rem;
    font-style: italic;
}
.practice-meaning {
    color: var(--text-dim);
    font-size: 0.86rem;
    margin-bottom: 22px;
}

/* Timer ring */
.timer-ring {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 12px auto 22px;
}
.timer-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.timer-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 8;
}
.timer-progress {
    fill: none;
    stroke: #8b5cf6;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear, stroke 0.3s;
}
.timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

/* Chant counter */
.chant-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 18px;
    color: var(--text-dim);
    font-size: 0.92rem;
}
.chant-counter span { color: #f59e0b; font-weight: 700; }
.chant-btn {
    padding: 10px 18px;
    background: linear-gradient(135deg, #8b5cf6, #f97316);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s;
}
.chant-btn:active { transform: scale(0.95); }
.practice-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.practice-hint {
    color: var(--text-dim);
    font-size: 0.78rem;
}

/* ------- History Calendar ------- */
.history-section { margin-bottom: 28px; }
.history-section h3 {
    color: var(--text);
    margin-bottom: 12px;
    font-size: 1rem;
}
.history-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 6px;
    margin-bottom: 8px;
}
.hist-cell {
    aspect-ratio: 1;
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    color: var(--text-dim);
    position: relative;
}
.hist-cell.hist-done {
    color: var(--text);
    font-weight: 600;
}
.hist-cell.hist-done i {
    position: absolute;
    bottom: 3px;
    right: 3px;
    font-size: 0.6rem;
}
.hist-cell.hist-today {
    box-shadow: 0 0 0 2px var(--primary);
}
.history-stats {
    color: var(--text-dim);
    font-size: 0.84rem;
}
.history-stats b { color: var(--text); }

/* ------- Leaderboard ------- */
.leaderboard-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
}
.leaderboard-section h3 {
    color: var(--text);
    margin-bottom: 12px;
    font-size: 1rem;
}
.leaderboard-section h3 i { color: #fbbf24; margin-right: 6px; }
.sl-row {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.88rem;
}
.sl-row:nth-child(odd) { background: rgba(255, 255, 255, 0.02); }
.sl-rank { font-weight: 700; text-align: center; }
.sl-name { color: var(--text); font-weight: 600; }
.sl-streak {
    color: #f97316;
    font-weight: 700;
    font-size: 0.84rem;
}
.sl-streak i { margin-right: 3px; }

/* ------- Celebration overlay ------- */
.sadhana-celebrate {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: scFade 0.3s ease;
}
@keyframes scFade { from { opacity: 0; } to { opacity: 1; } }
.sc-card {
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: 24px;
    padding: 36px 28px;
    text-align: center;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 30px 80px rgba(139, 92, 246, 0.4);
    animation: scPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}
@keyframes scPop {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.sc-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    color: #fff;
    font-size: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.sc-card h2 {
    color: var(--text);
    margin-bottom: 6px;
}
.sc-card > p {
    color: var(--text-dim);
    margin-bottom: 16px;
}
.sc-streak {
    font-size: 1.2rem;
    font-weight: 800;
    color: #f97316;
    margin-bottom: 16px;
}
.sc-streak i { color: #f59e0b; margin-right: 6px; }
.sc-rewards {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}
.sc-reward {
    padding: 10px 14px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 10px;
    color: #f59e0b;
    font-weight: 700;
}
.sc-bonus {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(245, 158, 11, 0.15));
    border-color: rgba(139, 92, 246, 0.4);
    color: var(--text);
}
.sc-milestone {
    padding: 8px;
    color: #fbbf24;
    font-weight: 700;
    letter-spacing: 0.03em;
}
.sc-spark {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    top: -10px;
    animation: scSparkFall 1.6s ease-out forwards;
    pointer-events: none;
}
@keyframes scSparkFall {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(600px) scale(0); opacity: 0; }
}

/* Mobile */
@media (max-width: 640px) {
    .sadhana-main { padding: 80px 14px 40px; }
    .streak-hero {
        flex-direction: column;
        text-align: center;
        padding: 18px;
        gap: 14px;
    }
    .streak-meta { text-align: center; }
    .streak-stats { justify-content: center; }
    .sug-deity { flex-direction: column; text-align: center; }
    .deity-grid { grid-template-columns: repeat(2, 1fr); }
    .history-grid { grid-template-columns: repeat(7, 1fr); }
    .timer-ring { width: 180px; height: 180px; }
    .timer-text { font-size: 2rem; }
    .pm-sanskrit { font-size: 1.2rem; }
}
