/* ==========================================================================
   OnlyMantra Collections Discovery Hub Styles (/collections/ & /collections/{slug}/)
   Apple Native Frosted Glass + Ramabhadra Classical Hierarchy
   ========================================================================== */

:root {
    --om-coll-bg: #f8fafc;
    --om-coll-surface: rgba(255, 255, 255, 0.85);
    --om-coll-border: rgba(255, 255, 255, 0.95);
    --om-coll-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
    --om-coll-shadow-hover: 0 16px 32px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
}

.om-coll-hub-page {
    background-color: #f8fafc;
    min-height: 100vh;
    padding-bottom: 90px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', system-ui, sans-serif;
    color: #1e293b;
}

/* ==========================================================================
   Hero Section (Frosted Glass Cosmic Sanctuary)
   ========================================================================== */
.om-coll-search-wrap {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
    border-radius: 12px;
    padding: 8px 16px;
    margin-top: 20px;
    max-width: 600px;
    transition: all 0.25s ease;
}

.om-coll-search-wrap:focus-within {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(254, 215, 170, 0.6);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3), 0 12px 32px rgba(0, 0, 0, 0.45);
}

.om-coll-search-icon {
    font-size: 16px;
    margin-right: 10px;
    color: #fed7aa;
}

.om-coll-search-input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif !important;
    font-size: 14.5px !important;
    color: #ffffff !important;
    font-weight: 500 !important;
}

.om-coll-search-input::placeholder {
    color: #cbd5e1 !important;
}

/* ==========================================================================
   Master Collections Grid (/collections/)
   ========================================================================== */
.om-coll-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.om-coll-card {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--om-coll-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none !important;
    color: inherit !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-sizing: border-box;
}

.om-coll-card:hover {
    background: #ffffff;
    border-color: #fed7aa;
    transform: translateY(-3px);
    box-shadow: var(--om-coll-shadow-hover);
}

.om-chant-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

.om-chant-card-icon {
    font-size: 32px;
    line-height: 1;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    padding: 10px;
    border-radius: 12px;
}

.om-coll-card-title {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px;
    letter-spacing: -0.02em;
}

.om-coll-card-sub {
    font-family: 'Ramabhadra', 'Mandali', 'Suranna', 'Noto Serif Telugu', sans-serif !important;
    font-size: 13.5px !important;
    color: #92400e !important;
    font-weight: 400 !important;
    margin-bottom: 6px !important;
    letter-spacing: 0.2px !important;
    line-height: 1.5 !important;
}

.om-scr-title-subtitle {
    font-family: 'Ramabhadra', 'Mandali', 'Suranna', 'Noto Serif Telugu', sans-serif !important;
    font-size: 18.5px !important;
    color: #fef08a !important;
    margin: 0 0 18px !important;
    font-weight: 400 !important;
    letter-spacing: 0.3px !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

.om-coll-card-desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 18px;
}

.om-coll-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.om-coll-badge {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.om-coll-cta {
    font-size: 12.5px;
    font-weight: 700;
    color: #ea580c;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: transform 0.15s ease;
}

.om-coll-card:hover .om-coll-cta {
    transform: translateX(3px);
}

/* ==========================================================================
   Inside Specific Collection Cards & Layout
   ========================================================================== */
.om-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.om-stotra-card {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: var(--om-coll-shadow);
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    text-decoration: none !important;
}

.om-stotra-card:hover {
    background: #ffffff;
    border-color: #fed7aa;
    transform: translateY(-2px);
    box-shadow: var(--om-coll-shadow-hover);
}

.om-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.om-card-type-badge {
    font-size: 10px;
    font-weight: 800;
    color: #9a3412;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.4px;
}

.om-card-title {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif;
    font-size: 16.5px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.om-card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 10px 0 14px;
    font-size: 12px;
    color: #64748b;
}

.om-card-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.om-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    margin-top: 10px;
    font-size: 12.5px;
    font-weight: 700;
    color: #ea580c;
    text-decoration: none !important;
    transition: color 0.15s ease;
}

.om-card-btn:hover {
    color: #c2410c;
    text-decoration: underline !important;
}

/* Sidebar Widgets */
.om-cat-sidebar-box {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    padding: 18px;
    box-shadow: var(--om-coll-shadow);
}

.om-cat-sidebar-title {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
    letter-spacing: -0.02em;
}

.om-cat-quick-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.om-cat-quick-nav li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    border-radius: 8px;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.om-cat-quick-nav li a:hover {
    background: #fff7ed;
    color: #ea580c;
}

.nav-count {
    font-size: 11px;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 6px;
}

.om-cat-description {
    font-size: 15.5px;
    line-height: 1.65;
    color: #e2e8f0;
    max-width: 780px;
    margin: 0 0 20px;
}

/* ==========================================================================
   Hero Search & Filter Bar
   ========================================================================== */
.om-coll-search-wrap {
    margin-top: 24px;
    max-width: 640px;
    position: relative;
}

.om-coll-search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 14px 20px 14px 46px;
    font-size: 15px;
    color: #0f172a;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    outline: none;
    transition: all 0.2s ease;
}

.om-coll-search-input:focus {
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.35), 0 8px 28px rgba(0, 0, 0, 0.3);
}

.om-coll-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #94a3b8;
    pointer-events: none;
}

/* ==========================================================================
   Main Layout
   ========================================================================== */
.om-cat-main-layout {
    max-width: 1280px;
    margin: 40px auto 0;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 36px;
    align-items: start;
}

@media (max-width: 1024px) {
    .om-cat-main-layout {
        grid-template-columns: 1fr;
    }
}

.om-section-title-wrap {
    margin-bottom: 24px;
}

.om-section-badge {
    font-size: 12px;
    font-weight: 700;
    color: #c2410c;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: block;
    margin-bottom: 4px;
}

.om-section-title-wrap h2 {
    font-family: 'Philosopher', 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

/* ==========================================================================
   Curated Chants Grid in Specific Collection
   ========================================================================== */
.om-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 22px;
}

.om-stotra-card {
    background: #ffffff;
    border: 1.5px solid #f1e5d1;
    border-radius: 16px;
    padding: 22px 20px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.om-stotra-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #ea580c);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.om-stotra-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(234, 88, 12, 0.12);
    border-color: #fcd34d;
}

.om-stotra-card:hover::before {
    opacity: 1;
}

.om-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.om-card-type-badge {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 12px;
}

.om-card-title {
    font-family: 'Philosopher', 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    margin: 0 0 10px;
}

.om-card-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 18px;
    font-size: 12px;
    color: #64748b;
    border-top: 1px dashed #f1e5d1;
    padding-top: 10px;
}

.om-card-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.om-card-meta-tag {
    color: #92400e;
    font-weight: 600;
}

.om-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.2);
    transition: all 0.2s ease;
}

.om-card-btn:hover {
    background: linear-gradient(135deg, #c2410c 0%, #9a3412 100%);
    box-shadow: 0 6px 16px rgba(234, 88, 12, 0.35);
    transform: translateY(-1px);
}

/* ==========================================================================
   Master Collections Grid (/collections/)
   ========================================================================== */
.om-coll-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.om-coll-card {
    background: #ffffff;
    border: 1.5px solid #f1e5d1;
    border-radius: 18px;
    padding: 26px 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none !important;
    color: inherit !important;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.om-coll-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(217, 119, 6, 0.16);
    border-color: #f59e0b;
}

.om-coll-card-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.om-coll-card-title {
    font-family: 'Philosopher', 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px;
}

.om-coll-card-sub {
    font-family: 'Noto Serif Telugu', serif;
    font-size: 14.5px;
    color: #92400e;
    font-weight: 600;
    margin-bottom: 10px;
}

.om-coll-card-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 18px;
}

.om-coll-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #f1e5d1;
}

.om-coll-badge {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
    font-size: 11.5px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.om-coll-cta {
    font-size: 13.5px;
    font-weight: 700;
    color: #ea580c;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   Sidebar Widgets
   ========================================================================== */
.om-cat-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.om-cat-sidebar-box {
    background: #ffffff;
    border: 1.5px solid #f1e5d1;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.om-cat-sidebar-title {
    font-family: 'Philosopher', 'Cormorant Garamond', Georgia, serif;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #fef3c7;
}

.om-cat-quick-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.om-cat-quick-nav li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: 8px;
    color: #334155;
    text-decoration: none !important;
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.om-cat-quick-nav li a:hover {
    background: #fff7ed;
    color: #ea580c;
}

.om-cat-quick-nav .nav-count {
    font-size: 11.5px;
    font-weight: 700;
    color: #ea580c;
    background: #ffedd5;
    padding: 2px 8px;
    border-radius: 10px;
}

.om-cat-ad-slot {
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.om-ad-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #64748b;
    margin-bottom: 4px;
}

.om-ad-hint {
    font-size: 12px;
}
