/* ==========================================================================
   OMAAA ASTROLOGY — Stories Strip, Day Special, Rashi Explorer & Status Studio
   ========================================================================== */

/* --- 1. STORIES STRIP (दैनिक दर्शन) --- */
.stories-section {
    padding-block: 20px 10px;
    background: transparent;
}
.stories-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.stories-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.stories-studio-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    background: #fff3e5;
    transition: all 0.2s ease;
}
.stories-studio-link:hover {
    background: #ffe6cc;
    color: var(--brand-dark);
}
.stories-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 12px;
    padding-inline: 4px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.stories-scroll::-webkit-scrollbar {
    display: none;
}
.story-ring-btn {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-align: center;
    scroll-snap-align: start;
    width: 82px;
    font-family: inherit;
}
.story-ring-outer {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #d88716, #b44b16, #e11d48, #f59e0b);
    box-shadow: 0 4px 12px rgba(180, 75, 22, 0.2);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.story-ring-btn:hover .story-ring-outer {
    transform: scale(1.06);
}
.story-ring-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
    overflow: hidden;
}
.story-ring-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.story-ring-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.2;
    max-width: 82px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.story-ring-studio-btn .story-ring-outer {
    background: linear-gradient(135deg, #10b981, #059669, #047857);
}

/* --- 2. MODAL STORY VIEWER --- */
.story-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.story-modal.active {
    display: flex;
}
.story-modal-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    height: 90vh;
    max-height: 780px;
    border-radius: 24px;
    background: linear-gradient(180deg, #401017 0%, #541d24 50%, #2b080d 100%);
    border: 1px solid #c97c1a;
    color: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.story-bars {
    display: flex;
    gap: 4px;
    padding: 14px 16px 8px;
    z-index: 10;
}
.story-bar {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
}
.story-bar-fill {
    height: 100%;
    width: 0%;
    background: #f59e0b;
    border-radius: 3px;
    transition: width 0.1s linear;
}
.story-modal-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    z-index: 10;
}
.story-author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.story-author-icon {
    font-size: 1.5rem;
}
.story-author-meta h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
}
.story-author-badge {
    font-size: 0.72rem;
    padding: 2px 8px;
    background: rgba(245, 158, 11, 0.25);
    color: #fde68a;
    border-radius: 10px;
    border: 1px solid rgba(245, 158, 11, 0.4);
}
.story-close-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.story-content-body {
    flex: 1;
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 5;
}
.story-hero-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.3));
}
.story-headline {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fef08a;
    margin-bottom: 16px;
    line-height: 1.35;
}
.story-quote {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffedd5;
    background: rgba(255, 255, 255, 0.08);
    padding: 12px 18px;
    border-radius: 14px;
    border-left: 3px solid #f59e0b;
    margin-bottom: 16px;
    line-height: 1.5;
    font-style: italic;
}
.story-text {
    font-size: 0.95rem;
    color: #e2e8f0;
    line-height: 1.6;
    margin-bottom: 24px;
}
.story-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #d88716, #b44b16);
    color: #fff;
    padding: 10px 22px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(216, 135, 22, 0.4);
}
.story-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(4px);
    transition: background 0.2s;
}
.story-nav-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}
.story-prev { left: 8px; }
.story-next { right: 8px; }

/* --- 3. DAY-SPECIAL BANNER (वार विशेष) --- */
.day-special-card {
    background: linear-gradient(135deg, #fff9f0 0%, #fff2e0 100%);
    border: 1px solid #fed7aa;
    border-radius: var(--radius);
    padding: 24px 28px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}
.day-special-badge-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.day-badge-primary {
    background: linear-gradient(135deg, #b44b16, #da6d35);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.day-badge-meta {
    background: #fff;
    color: var(--ink-soft);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #fed7aa;
}
.day-special-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.day-special-mantra-box {
    background: #fff;
    border-left: 4px solid #b44b16;
    padding: 12px 18px;
    border-radius: 0 10px 10px 0;
    margin-block: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.day-special-mantra-box strong {
    display: block;
    font-size: 0.82rem;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.day-special-mantra-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: #92370d;
}
.day-special-desc {
    font-size: 0.95rem;
    color: var(--ink-soft);
    line-height: 1.6;
    margin-bottom: 14px;
}
.day-special-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* --- 4. 12-RASHI SADHANA & GUIDANCE EXPLORER --- */
.rashi-explorer-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}
.rashi-tab-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
    margin-bottom: 20px;
    scrollbar-width: thin;
}
.rashi-tab-btn {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}
.rashi-tab-btn:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}
.rashi-tab-btn.active {
    background: linear-gradient(135deg, #b44b16, #d88716);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 3px 8px rgba(180, 75, 22, 0.25);
}
.rashi-tab-glyph {
    font-size: 1.15rem;
}
.rashi-pane {
    display: none;
}
.rashi-pane.active {
    display: block;
}
.rashi-profile-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
    background: #fbfbfd;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #eef2f6;
}
.rashi-meta-item {
    font-size: 0.88rem;
    color: var(--ink-soft);
}
.rashi-meta-item strong {
    color: var(--ink);
    display: block;
    font-size: 0.95rem;
    margin-top: 2px;
}
.gemstone-safety-alert {
    background: #fff8e6;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 0.85rem;
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.guidance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.guidance-card {
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.guidance-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
}
.guidance-card p {
    font-size: 0.88rem;
    color: var(--ink-soft);
    line-height: 1.55;
    margin: 0;
}
.remedy-card-free {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.remedy-card-free-icon {
    font-size: 1.8rem;
}
.remedy-card-free-content h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #065f46;
    margin: 0 0 4px;
}
.remedy-card-free-content p {
    font-size: 0.88rem;
    color: #047857;
    margin: 0;
    line-height: 1.5;
}

/* --- 5. UPCOMING FESTIVAL COUNTDOWN CARDS --- */
.festival-countdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.countdown-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.countdown-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.countdown-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.days-left-badge {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}
.days-left-badge.today {
    background: #10b981;
}
.countdown-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 6px;
}
.countdown-date {
    font-size: 0.88rem;
    color: var(--brand);
    font-weight: 600;
    margin-bottom: 10px;
}
.countdown-rule {
    font-size: 0.84rem;
    color: var(--ink-soft);
    margin-bottom: 16px;
    line-height: 1.45;
}
.countdown-foot {
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.countdown-explainer-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--brand);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* --- 6. DAILY PUJA SCHEDULE TIMELINE --- */
.puja-timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}
.puja-step-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 16px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}
.puja-step-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.puja-step-icon {
    font-size: 1.6rem;
}
.puja-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fed7aa;
    color: #92370d;
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.puja-step-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 4px;
}
.puja-step-time {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--brand);
    margin-bottom: 8px;
}
.puja-step-desc {
    font-size: 0.82rem;
    color: var(--ink-soft);
    line-height: 1.45;
    margin: 0;
}

/* --- 7. TRUTHFUL TRUST BADGES --- */
.trust-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
.trust-badge-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    box-shadow: var(--shadow);
}
.trust-badge-icon {
    font-size: 2rem;
    flex-shrink: 0;
}
.trust-badge-info h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 6px;
}
.trust-badge-info p {
    font-size: 0.84rem;
    color: var(--ink-soft);
    line-height: 1.5;
    margin: 0;
}

/* --- 8. STATUS STUDIO STYLES --- */
.status-studio-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
    margin-top: 24px;
}
@media (max-width: 900px) {
    .status-studio-layout {
        grid-template-columns: 1fr;
    }
}
.canvas-preview-container {
    background: #1e293b;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.3);
}
#statusCanvas {
    max-width: 100%;
    width: 320px;
    height: auto;
    aspect-ratio: 9 / 16;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    background: #fff;
}
.canvas-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    width: 100%;
    max-width: 320px;
}
.studio-controls {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}
.control-group {
    margin-bottom: 18px;
}
.control-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
}
.control-input, .control-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.92rem;
    color: var(--ink);
    font-family: inherit;
    box-sizing: border-box;
}
.control-textarea {
    resize: vertical;
    min-height: 90px;
}
.color-picker-chips {
    display: flex;
    gap: 10px;
}
.theme-chip {
    padding: 8px 14px;
    border-radius: 8px;
    border: 2px solid transparent;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    background: #f1f5f9;
}
.theme-chip.active {
    border-color: var(--brand);
    background: #fed7aa;
    color: #92370d;
}
