/* LifeVed Devotional — Premium Design Layer
   This adds the polish that takes design from 7.5 → 9.5/10
   Decorative patterns, depth, mobile-first micro-interactions */

/* === DECORATIVE BACKGROUND PATTERN (subtle Om/Mandala watermark) === */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(230,81,0,0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(198,153,62,0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Subtle top border accent line */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--temple-gold), var(--accent));
    z-index: 10000;
}

/* === PREMIUM CARD DESIGN === */
.card, .category-card, .content-item {
    border: 1px solid rgba(198,153,62,0.15);
    box-shadow: 
        0 1px 3px rgba(0,0,0,0.04),
        0 4px 12px rgba(0,0,0,0.03),
        inset 0 1px 0 rgba(255,255,255,0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover, .category-card:hover {
    box-shadow: 
        0 4px 12px rgba(0,0,0,0.06),
        0 12px 32px rgba(230,81,0,0.06),
        inset 0 1px 0 rgba(255,255,255,0.9);
    border-color: rgba(230,81,0,0.2);
}

/* Gradient border effect for featured cards */
.card-featured {
    position: relative;
    border: none;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
}
.card-featured::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: calc(var(--radius-lg) + 1px);
    background: linear-gradient(135deg, var(--accent), var(--temple-gold), var(--spiritual));
    z-index: -1;
    opacity: 0.4;
    transition: opacity 0.3s;
}
.card-featured:hover::before { opacity: 0.7; }

/* === PREMIUM TYPOGRAPHY === */
/* Hindi headings get more weight and warmth */
h1, h2, .hub-title, .content-view-title {
    letter-spacing: -0.02em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Sanskrit/verse text styling */
.verse-text, .content-view-body {
    font-size: 1.2rem;
    line-height: 2;
    letter-spacing: 0.01em;
    color: var(--text-hindi);
    padding: 20px 0;
}
.verse-text .verse-line {
    padding: 6px 0;
    border-bottom: 1px dotted rgba(198,153,62,0.15);
}
.verse-text .verse-line:last-child { border-bottom: none; }

/* Om decorative marker before sections */
.section-header h2::before {
    content: '॥';
    color: var(--accent);
    margin-right: 8px;
    font-weight: normal;
    opacity: 0.6;
}
.section-header h2::after {
    content: '॥';
    color: var(--accent);
    margin-left: 8px;
    font-weight: normal;
    opacity: 0.6;
}

/* === MOBILE-FIRST PREMIUM TOUCHES === */

/* Touch targets: minimum 48px for all interactive elements */
.nav-item, .chip, .btn, .content-item, .category-card {
    min-height: 48px;
}
.btn { min-height: 48px; padding: 14px 28px; }
.chip { min-height: 40px; padding: 10px 18px; }

/* Active press state (mobile tap feedback) */
.card:active, .category-card:active, .content-item:active, .btn:active {
    transform: scale(0.97);
    transition: transform 0.1s;
}
.nav-item:active { transform: scale(0.9); }

/* Smooth momentum scrolling */
.chips, .quick-tools, .content-list {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
}
.chip, .quick-tool { scroll-snap-align: start; }

/* Safe area padding for notch devices */
@supports (padding: env(safe-area-inset-top)) {
    body::after { top: env(safe-area-inset-top); }
    .tool-header { padding-top: calc(var(--space-md) + env(safe-area-inset-top)); }
}

/* === PREMIUM BOTTOM NAV === */
.bottom-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
    border-top: 1px solid rgba(198,153,62,0.1);
}
/* Active indicator dot */
.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}
.nav-item { position: relative; }

/* === PREMIUM SEARCH BAR === */
.search-bar input {
    background: var(--bg-card);
    border: 1.5px solid rgba(198,153,62,0.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03), inset 0 1px 2px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}
.search-bar input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(230,81,0,0.08), 0 4px 16px rgba(0,0,0,0.05);
    background: #ffffff;
}

/* === PREMIUM CATEGORY CARDS — moved to hub.css === */
/* (Keep category-card styles in hub.css only) */

/* === PREMIUM QUICK TOOLS === */
.quick-tool {
    background: linear-gradient(135deg, #ffffff, #fefaf4);
    border: 1.5px solid rgba(198,153,62,0.15);
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    font-weight: 600;
}
.quick-tool:hover {
    background: linear-gradient(135deg, #fff5e6, #fff0db);
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(230,81,0,0.08);
}

/* === PREMIUM PANCHANG BAR === */
.panchang-bar {
    background: linear-gradient(135deg, #ffffff, #fefcf8);
    border: 1.5px solid rgba(198,153,62,0.15);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    font-weight: 500;
}

/* === MANTRA OF THE DAY CARD === */
.motd-card {
    background: linear-gradient(160deg, #fffaf2, #fef3e2, #fff8f0);
    border: 1.5px solid rgba(198,153,62,0.2);
    box-shadow: 0 4px 16px rgba(230,81,0,0.04);
    position: relative;
    overflow: hidden;
}
.motd-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(230,81,0,0.04), transparent 70%);
    border-radius: 50%;
}

/* === CONTENT LIST ITEMS (Premium) === */
.content-item {
    background: linear-gradient(135deg, #ffffff, #fefcf9);
    border-radius: var(--radius);
    padding: 16px;
    min-height: 72px;
}
.content-item:hover {
    background: linear-gradient(135deg, #fff8f0, #fff4e6);
}
.content-item-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(230,81,0,0.08), rgba(198,153,62,0.08));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

/* === PREMIUM BADGES === */
.badge-accent {
    background: linear-gradient(135deg, rgba(230,81,0,0.08), rgba(255,143,0,0.08));
    color: var(--accent);
    border: 1px solid rgba(230,81,0,0.15);
    font-weight: 600;
}

/* === LOADING/SPLASH SCREEN === */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    transition: opacity 0.4s, visibility 0.4s;
}
.page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.page-loader .loader-icon {
    font-size: 3rem;
    animation: pulse 1.5s ease infinite;
    margin-bottom: 16px;
}
.page-loader .loader-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* === VIEW PAGE PREMIUM === */
/* Verse container with decorative borders */
.verse-container {
    position: relative;
    padding: 24px 20px;
    margin: 20px 0;
    background: linear-gradient(160deg, #fffcf6, #fef8ee);
    border: 1px solid rgba(198,153,62,0.15);
    border-radius: var(--radius-lg);
}
.verse-container::before, .verse-container::after {
    content: '॥';
    position: absolute;
    font-size: 1.5rem;
    color: var(--temple-gold);
    opacity: 0.4;
}
.verse-container::before { top: 8px; left: 12px; }
.verse-container::after { bottom: 8px; right: 12px; }

/* === MOBILE SWIPE HINT === */
.swipe-hint {
    display: none;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 8px;
    opacity: 0;
    animation: fadeIn 1s ease 2s forwards;
}
@media (max-width: 640px) {
    .swipe-hint { display: block; }
}

/* === PULL-TO-REFRESH INDICATOR === */
.ptr-indicator {
    position: fixed;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: top 0.2s;
    z-index: 999;
}

/* === MOBILE SPECIFIC PREMIUM === */
@media (max-width: 640px) {
    /* Larger touch-friendly text */
    .content-item-title { font-size: 1rem; }
    .category-card { min-height: 120px; padding: 20px 12px; }
    .category-title { font-size: 0.85rem; }
    
    /* Full-width cards on small screens */
    .hub-categories { gap: 10px; }
    
    /* Thumb-zone optimization: important actions at bottom */
    .share-bar { position: sticky; bottom: calc(var(--nav-height) + 12px); z-index: 50; background: var(--bg-primary); padding: 12px 0; }
    
    /* Swipe-back gesture area */
    body { overscroll-behavior-x: auto; }
    
    /* Better readability for Hindi on mobile */
    .verse-text, .content-view-body {
        font-size: 1.15rem;
        line-height: 2.1;
        word-spacing: 2px;
    }
    
    /* Bottom sheet style for modals on mobile */
    .modal-content {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-width: 100%;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        max-height: 85vh;
        animation: slideUp 0.3s ease;
    }
}

/* Tablet */
@media (min-width: 641px) and (max-width: 1023px) {
    .hub-categories { grid-template-columns: repeat(3, 1fr); gap: 14px; }
    .category-card { min-height: 140px; }
}

/* === ANIMATIONS POLISH === */
/* Smooth page enter with staggered reveal */
.page-enter .hub-hero { animation: fadeInDown 0.5s ease; }
.page-enter .hub-categories { animation: fadeInUp 0.6s ease 0.2s both; }
.page-enter .quick-tools { animation: fadeIn 0.5s ease 0.3s both; }

/* Button hover glow */
.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(230,81,0,0.2), 0 8px 24px rgba(230,81,0,0.1);
}

/* Save button animation */
.save-btn.saved svg {
    animation: bounce 0.4s ease;
    fill: var(--accent);
    color: var(--accent);
}

/* Toast premium */
.toast {
    background: linear-gradient(135deg, #2d1b0e, #3e2723);
    color: #ffffff;
    border: 1px solid rgba(198,153,62,0.3);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

/* === DARK MODE (optional toggle in future) === */
@media (prefers-color-scheme: dark) {
    /* User can override with toggle — not auto-switching */
    /* Keeping light by default for devotional warmth */
}

/* === PRINT POLISH === */
@media print {
    body::before, body::after { display: none; }
    .card, .category-card { box-shadow: none; border: 1px solid #ddd; }
    .verse-container { border: 1px solid #ccc; background: #fff; }
}


/* === HUB CATEGORY CORNER BADGES — moved to hub.css === */
