/* ============================================================
   SB NEWS - PREMIUM STYLING WITH GRADIENT LINES & WHITE HEADERS
   Version: 1.0
   - Beautiful gradient separator lines
   - White section headers with styling
   - Premium visual hierarchy
   ============================================================ */

/* ============================================================
   1. GRADIENT SEPARATOR LINES
   ============================================================ */

/* Section divider - gradient line - DISABLED to prevent glitches */
/*
.sb-section::before,
.sb-news-section::before,
.sb-featured-section::before,
.sb-market-section::before,
.sb-coins-section::before,
.sb-hero + .sb-section::before {
    content: '' !important;
    display: block !important;
    width: 100% !important;
    height: 1px !important;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(79, 70, 229, 0.4) 20%,
        rgba(124, 58, 237, 0.6) 50%,
        rgba(79, 70, 229, 0.4) 80%,
        transparent 100%
    ) !important;
    margin-bottom: 40px !important;
}
*/

/* Gradient line under section titles */
.sb-section-title::after,
.sb-section-header h2::after,
h2.sb-section-title::after {
    content: '' !important;
    display: block !important;
    width: 80px !important;
    height: 3px !important;
    background: linear-gradient(90deg, #4F46E5, #7C3AED, #9333EA) !important;
    margin-top: 12px !important;
    border-radius: 2px !important;
}

/* Centered gradient line variant */
.sb-section-title.centered::after,
.sb-section-header.centered h2::after {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Animated gradient line */
.sb-gradient-line {
    height: 2px !important;
    background: linear-gradient(90deg,
        #4F46E5 0%,
        #7C3AED 25%,
        #9333EA 50%,
        #7C3AED 75%,
        #4F46E5 100%
    ) !important;
    background-size: 200% 100% !important;
    animation: gradientShift 3s ease infinite !important;
    margin: 40px 0 !important;
    border-radius: 1px !important;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Divider between major sections */
.sb-divider,
.sb-section-divider {
    position: relative !important;
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 20px 0 !important;
}

.sb-divider::before,
.sb-section-divider::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    height: 1px !important;
    background: linear-gradient(90deg,
        transparent,
        rgba(124, 58, 237, 0.5) 30%,
        rgba(124, 58, 237, 0.5) 70%,
        transparent
    ) !important;
}

/* ============================================================
   2. WHITE SECTION HEADERS (TUSSENKOPJES)
   ============================================================ */

/* Main section titles - white with accent */
.sb-section-title,
.sb-section-header h2,
.sb-news-title,
h2.section-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: clamp(24px, 4vw, 32px) !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 8px !important;
    position: relative !important;
}

/* Subtitle styling */
.sb-section-subtitle,
.sb-section-header p {
    font-family: 'Inter', sans-serif !important;
    font-size: 16px !important;
    color: #A1A1AA !important;
    margin-bottom: 32px !important;
    max-width: 600px !important;
}

/* Section header container */
.sb-section-header {
    display: flex !important;
    flex-direction: column !important;
    margin-bottom: 32px !important;
    padding-top: 20px !important;
}

/* With link on the right */
.sb-section-header.with-link {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.sb-section-link {
    color: #8B5CF6 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.sb-section-link:hover {
    color: #A78BFA !important;
    text-decoration: underline !important;
}

/* ============================================================
   3. ARTICLE CARDS WITH WHITE TITLES
   ============================================================ */

.sb-article-title,
.sb-news-card h3,
.sb-post-title {
    font-family: 'Inter', sans-serif !important;
    font-size: clamp(16px, 2.5vw, 20px) !important;
    font-weight: 600 !important;
    color: #FFFFFF !important;
    line-height: 1.4 !important;
    margin-bottom: 8px !important;
    transition: color 0.3s ease !important;
}

.sb-article:hover .sb-article-title,
.sb-news-card:hover h3 {
    color: #A78BFA !important;
}

/* ============================================================
   4. HERO SECTION GRADIENT ACCENTS - DISABLED
   ============================================================ */

/* Disabled to prevent multiple gradient lines
.sb-hero::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 2px !important;
    background: linear-gradient(90deg,
        transparent,
        #4F46E5 20%,
        #7C3AED 50%,
        #4F46E5 80%,
        transparent
    ) !important;
}
*/

/* ============================================================
   5. SIDEBAR GRADIENT ACCENTS
   ============================================================ */

.sb-sidebar {
    border-left: 2px solid transparent !important;
    border-image: linear-gradient(180deg, #4F46E5, #7C3AED, transparent) 1 !important;
}

.sb-sidebar-item {
    position: relative !important;
    padding-left: 16px !important;
}

.sb-sidebar-item::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 4px !important;
    height: 4px !important;
    background: #7C3AED !important;
    border-radius: 50% !important;
}

/* ============================================================
   6. TICKER GRADIENT ENHANCEMENT
   ============================================================ */

.sb-ticker::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 1px !important;
    background: linear-gradient(90deg,
        transparent,
        rgba(124, 58, 237, 0.4),
        transparent
    ) !important;
}

/* ============================================================
   7. FOOTER GRADIENT TOP BORDER - SINGLE LINE ONLY
   ============================================================ */

.sb-premium-footer,
.sb-footer {
    position: relative !important;
}

/* Only apply to homepage/pages, not single posts */
body:not(.single-post) .sb-premium-footer::before,
body:not(.single-post) .sb-footer::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 10% !important;
    right: 10% !important;
    height: 2px !important;
    background: linear-gradient(90deg,
        transparent 0%,
        #4F46E5 20%,
        #7C3AED 50%,
        #4F46E5 80%,
        transparent 100%
    ) !important;
}

/* ============================================================
   8. CARD HOVER GRADIENT EFFECTS
   ============================================================ */

.sb-article,
.sb-news-card,
.sb-coin-card {
    position: relative !important;
    overflow: hidden !important;
}

.sb-article::before,
.sb-news-card::before,
.sb-coin-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background: linear-gradient(90deg, #4F46E5, #7C3AED, #9333EA) !important;
    transform: scaleX(0) !important;
    transform-origin: left !important;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.sb-article:hover::before,
.sb-news-card:hover::before,
.sb-coin-card:hover::before {
    transform: scaleX(1) !important;
}

/* ============================================================
   9. CATEGORY BADGES WITH GRADIENT
   ============================================================ */

.sb-article-cat,
.sb-category-badge,
.sb-hero-badge {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(124, 58, 237, 0.2)) !important;
    border: 1px solid rgba(124, 58, 237, 0.3) !important;
    color: #A78BFA !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 4px 12px !important;
    border-radius: 6px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* ============================================================
   10. RESPONSIVE ADJUSTMENTS
   ============================================================ */

@media (max-width: 768px) {
    .sb-section::before {
        margin-bottom: 24px !important;
    }

    .sb-section-title::after {
        width: 60px !important;
        margin-top: 8px !important;
    }

    .sb-gradient-line {
        margin: 24px 0 !important;
    }

    .sb-divider {
        height: 40px !important;
    }
}
