/* ============================================
   SkorBola Hybrid Modern Theme
   Based on Open Design "Bold" system
   ============================================ */

/* Design Tokens — Bold System + Sports Accent */
:root {
    /* Colors */
    --sb-surface: #0a0e1a;
    --sb-surface-raised: #111827;
    --sb-surface-card: #1a2235;
    --sb-border: #2a3548;
    --sb-text: #f1f5f9;
    --sb-text-muted: #94a3b8;
    --sb-text-dim: #64748b;
    --sb-accent: #00e676;
    --sb-accent-hover: #00c853;
    --sb-accent-glow: rgba(0, 230, 118, 0.15);
    --sb-live: #ef4444;
    --sb-hero-overlay: linear-gradient(180deg, rgba(10,14,26,0.3) 0%, rgba(10,14,26,0.85) 70%, rgba(10,14,26,0.98) 100%);
    
    /* Typography — Bold System */
    --sb-font-heading: 'Outfit', 'Archivo Black', sans-serif;
    --sb-font-body: 'Inter', system-ui, sans-serif;
    
    /* Spacing */
    --sb-space-xs: 4px;
    --sb-space-sm: 8px;
    --sb-space-md: 16px;
    --sb-space-lg: 24px;
    --sb-space-xl: 32px;
    --sb-space-2xl: 48px;
    --sb-space-3xl: 64px;
    
    /* Radius */
    --sb-radius-sm: 6px;
    --sb-radius-md: 10px;
    --sb-radius-lg: 16px;
    
    /* Transitions */
    --sb-transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Layout */
    --sb-max-width: 1280px;
    --sb-sidebar-width: 340px;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.sb-dark {
    background: var(--sb-surface);
    color: var(--sb-text);
    font-family: var(--sb-font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.sb-viewport {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ============================================
   Ticker Bar
   ============================================ */
.sb-ticker-bar {
    display: flex;
    align-items: center;
    background: var(--sb-surface-raised);
    border-bottom: 1px solid var(--sb-border);
    padding: 6px 0;
    overflow: hidden;
    font-size: 13px;
}

.sb-ticker-label {
    flex-shrink: 0;
    background: var(--sb-live);
    color: #fff;
    font-weight: 700;
    font-size: 11px;
    padding: 3px 10px;
    margin: 0 var(--sb-space-md);
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: sb-pulse 2s ease-in-out infinite;
}

@keyframes sb-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.sb-ticker-content {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
}

.sb-ticker-content span {
    display: inline-block;
    animation: sb-scroll 30s linear infinite;
    color: var(--sb-text-muted);
}

@keyframes sb-scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ============================================
   Navigation
   ============================================ */
.sb-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--sb-border);
}

.sb-nav-inner {
    max-width: var(--sb-max-width);
    margin: 0 auto;
    padding: 0 var(--sb-space-lg);
    display: flex;
    align-items: center;
    height: 56px;
    gap: var(--sb-space-xl);
}

.sb-nav-logo img {
    height: 32px;
    width: auto;
}

.sb-nav-logo-text {
    font-family: var(--sb-font-heading);
    font-weight: 800;
    font-size: 22px;
    color: var(--sb-accent);
    letter-spacing: -0.5px;
}

.sb-nav-menu ul,
.sb-nav-list {
    display: flex;
    gap: var(--sb-space-lg);
    list-style: none;
    padding: 0;
    margin: 0;
}

.sb-nav-menu li a,
.sb-nav-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--sb-text-muted);
    transition: color var(--sb-transition);
    position: relative;
    padding: 4px 0;
    display: block;
}

.sb-nav-menu li a:hover,
.sb-nav-link:hover,
.sb-nav-menu li.current a,
.sb-nav-link.is-active {
    color: var(--sb-text);
}

.sb-nav-menu li.current a::after,
.sb-nav-link.is-active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--sb-accent);
    border-radius: 1px;
}

.sb-nav-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: var(--sb-space-sm);
}

/* Ghost native search button */
.gh-search {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--sb-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}
.gh-search:hover {
    color: var(--sb-text);
    background: rgba(255,255,255,0.05);
}

.sb-nav-burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 4px;
}

.sb-nav-burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--sb-text);
    border-radius: 1px;
    transition: var(--sb-transition);
}

/* Mobile Menu */
.sb-mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--sb-surface);
    z-index: 99;
    padding: 80px var(--sb-space-lg) var(--sb-space-lg);
}

.sb-mobile-menu.open { display: block; }

.sb-mobile-link {
    display: block;
    font-family: var(--sb-font-heading);
    font-size: 28px;
    font-weight: 700;
    padding: var(--sb-space-md) 0;
    border-bottom: 1px solid var(--sb-border);
    color: var(--sb-text);
}

/* ============================================
   Hero Slideshow
   ============================================ */
.sb-hero-slideshow {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
    border-bottom: 1px solid var(--sb-border);
}

.sb-hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.sb-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 600ms ease;
    pointer-events: none;
}

.sb-hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.sb-hero-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.sb-hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--sb-hero-overlay);
}

.sb-hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--sb-max-width);
    margin: 0 auto;
    padding: 0 var(--sb-space-lg);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: var(--sb-space-3xl);
}

.sb-hero-link {
    display: block;
}

.sb-hero-meta {
    display: flex;
    align-items: center;
    gap: var(--sb-space-sm);
    margin-bottom: var(--sb-space-md);
}

.sb-tag {
    display: inline-block;
    background: var(--sb-accent);
    color: var(--sb-surface);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sb-date {
    font-size: 13px;
    color: var(--sb-text-muted);
}

.sb-hero-title {
    font-family: var(--sb-font-heading);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin-bottom: var(--sb-space-md);
    max-width: 720px;
    letter-spacing: -0.5px;
}

.sb-hero-excerpt {
    font-size: 16px;
    color: var(--sb-text-muted);
    max-width: 600px;
    line-height: 1.5;
}

/* Hero Controls */
.sb-hero-controls {
    position: absolute;
    bottom: var(--sb-space-lg);
    right: var(--sb-space-lg);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: var(--sb-space-sm);
}

.sb-hero-prev,
.sb-hero-next {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.4);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--sb-transition);
}

.sb-hero-prev:hover,
.sb-hero-next:hover {
    background: var(--sb-accent);
    color: var(--sb-surface);
    border-color: var(--sb-accent);
}

.sb-hero-dots {
    display: flex;
    gap: 6px;
}

.sb-hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: var(--sb-transition);
    padding: 0;
}

.sb-hero-dot.active {
    background: var(--sb-accent);
    width: 24px;
    border-radius: 4px;
}

/* ============================================
   Main Content Grid
   ============================================ */
.sb-main-grid {
    max-width: var(--sb-max-width);
    margin: 0 auto;
    padding: var(--sb-space-xl) var(--sb-space-lg);
    display: grid;
    grid-template-columns: 1fr var(--sb-sidebar-width);
    gap: var(--sb-space-xl);
    flex: 1;
}

/* ============================================
   Post Feed
   ============================================ */
.sb-feed-header {
    margin-bottom: var(--sb-space-lg);
    padding-bottom: var(--sb-space-md);
    border-bottom: 2px solid var(--sb-accent);
}

.sb-feed-title {
    font-family: var(--sb-font-heading);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.sb-post-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sb-space-lg);
}

/* Post Card */
.sb-card {
    background: var(--sb-surface-card);
    border-radius: var(--sb-radius-md);
    overflow: hidden;
    border: 1px solid var(--sb-border);
    transition: var(--sb-transition);
}

.sb-card:hover {
    border-color: var(--sb-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3), 0 0 0 1px var(--sb-accent-glow);
}

.sb-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sb-card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--sb-surface-raised);
    position: relative;
}

.sb-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms ease;
}

.sb-card:hover .sb-card-image img {
    transform: scale(1.05);
}

.sb-card-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
}

.sb-card-placeholder {
    font-size: 48px;
    opacity: 0.15;
}

.sb-card-content {
    padding: var(--sb-space-md);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sb-card-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--sb-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--sb-space-xs);
}

.sb-card-title {
    font-family: var(--sb-font-heading);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--sb-space-sm);
    color: var(--sb-text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sb-card-excerpt {
    font-size: 14px;
    color: var(--sb-text-muted);
    line-height: 1.5;
    margin-bottom: var(--sb-space-md);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.sb-card-meta {
    display: flex;
    gap: var(--sb-space-md);
    font-size: 12px;
    color: var(--sb-text-dim);
}

/* ============================================
   Sidebar
   ============================================ */
.sb-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--sb-space-lg);
}

.sb-widget {
    background: var(--sb-surface-card);
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius-md);
    padding: var(--sb-space-lg);
}

.sb-widget-title {
    font-family: var(--sb-font-heading);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: var(--sb-space-xs);
}

.sb-widget-subtitle {
    font-size: 13px;
    color: var(--sb-text-muted);
    margin-bottom: var(--sb-space-md);
}

/* Live Score Widget */
.sb-live-score-widget {
    border-color: var(--sb-accent);
    background: linear-gradient(135deg, var(--sb-surface-card) 0%, rgba(0,230,118,0.05) 100%);
}

.sb-live-score-info {
    display: flex;
    flex-direction: column;
    gap: var(--sb-space-sm);
}

.sb-info-row {
    font-size: 13px;
    color: var(--sb-text-muted);
    display: flex;
    align-items: center;
    gap: var(--sb-space-xs);
}

.sb-auto-refresh {
    margin-top: var(--sb-space-md);
    padding-top: var(--sb-space-md);
    border-top: 1px solid var(--sb-border);
    color: var(--sb-text-dim);
}

.sb-auto-refresh small {
    display: flex;
    align-items: center;
    gap: var(--sb-space-xs);
}

.sb-auto-refresh small::before {
    content: '🔄';
    font-size: 12px;
}

/* Popular Posts Widget */
.sb-popular-list {
    display: flex;
    flex-direction: column;
    gap: var(--sb-space-md);
    margin-top: var(--sb-space-md);
}

.sb-popular-link {
    display: flex;
    gap: var(--sb-space-md);
    padding-bottom: var(--sb-space-md);
    border-bottom: 1px solid var(--sb-border);
}

.sb-popular-link:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sb-popular-thumb {
    flex-shrink: 0;
    width: 64px;
    height: 48px;
    border-radius: var(--sb-radius-sm);
    overflow: hidden;
    background: var(--sb-surface-raised);
}

.sb-popular-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sb-popular-content {
    flex: 1;
    min-width: 0;
}

.sb-popular-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 2px;
}

.sb-popular-date {
    font-size: 11px;
    color: var(--sb-text-dim);
}

/* About Widget */
.sb-about-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--sb-radius-sm);
    margin-bottom: var(--sb-space-sm);
}

.sb-about-title {
    font-family: var(--sb-font-heading);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: var(--sb-space-xs);
}

.sb-about-description {
    font-size: 14px;
    color: var(--sb-text-muted);
    line-height: 1.5;
}

/* ============================================
   Footer
   ============================================ */
.sb-footer {
    background: var(--sb-surface-raised);
    border-top: 1px solid var(--sb-border);
    margin-top: auto;
}

.sb-footer-inner {
    max-width: var(--sb-max-width);
    margin: 0 auto;
    padding: var(--sb-space-2xl) var(--sb-space-lg);
}

.sb-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--sb-space-xl);
    margin-bottom: var(--sb-space-xl);
}

.sb-footer-logo {
    font-family: var(--sb-font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--sb-accent);
    display: block;
    margin-bottom: var(--sb-space-sm);
}

.sb-footer-desc {
    font-size: 14px;
    color: var(--sb-text-muted);
    line-height: 1.5;
}

.sb-footer-links h4 {
    font-family: var(--sb-font-heading);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: var(--sb-space-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sb-footer-links li {
    margin-bottom: var(--sb-space-sm);
}

.sb-footer-links a {
    font-size: 14px;
    color: var(--sb-text-muted);
    transition: color var(--sb-transition);
}

.sb-footer-links a:hover {
    color: var(--sb-accent);
}

.sb-footer-bottom {
    padding-top: var(--sb-space-lg);
    border-top: 1px solid var(--sb-border);
    font-size: 13px;
    color: var(--sb-text-dim);
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--sb-space-sm);
    margin-top: var(--sb-space-xl);
    padding-top: var(--sb-space-xl);
}

.pagination a,
.pagination span {
    padding: 8px 16px;
    border-radius: var(--sb-radius-sm);
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--sb-border);
    color: var(--sb-text-muted);
    transition: var(--sb-transition);
}

.pagination a:hover {
    border-color: var(--sb-accent);
    color: var(--sb-accent);
}

.pagination .page-number.current,
.pagination span.current {
    background: var(--sb-accent);
    color: var(--sb-surface);
    border-color: var(--sb-accent);
}

/* ============================================
   Ghost Content Styles
   ============================================ */
.gh-content {
    max-width: 720px;
    margin: 0 auto;
    padding: var(--sb-space-xl) 0;
}

.gh-content h1, .gh-content h2, .gh-content h3 {
    font-family: var(--sb-font-heading);
    font-weight: 700;
    margin: var(--sb-space-xl) 0 var(--sb-space-md);
}

.gh-content h2 { font-size: 28px; }
.gh-content h3 { font-size: 22px; }

.gh-content p {
    margin-bottom: var(--sb-space-md);
    line-height: 1.7;
}

.gh-content a {
    color: var(--sb-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.gh-content img {
    border-radius: var(--sb-radius-md);
    margin: var(--sb-space-lg) 0;
}

.gh-content blockquote {
    border-left: 3px solid var(--sb-accent);
    padding-left: var(--sb-space-lg);
    margin: var(--sb-space-lg) 0;
    color: var(--sb-text-muted);
    font-style: italic;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .sb-main-grid {
        grid-template-columns: 1fr;
    }
    
    .sb-sidebar {
        order: -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--sb-space-md);
    }
    
    .sb-post-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .sb-hero-slideshow {
        height: 360px;
    }
    
    .sb-hero-title {
        font-size: 24px;
    }
    
    .sb-hero-controls {
        bottom: var(--sb-space-md);
        right: var(--sb-space-md);
    }
    
    .sb-nav-list {
        display: none;
    }
    
    .sb-nav-burger {
        display: flex;
    }
    
    .sb-post-grid {
        grid-template-columns: 1fr;
    }
    
    .sb-sidebar {
        grid-template-columns: 1fr;
    }
    
    .sb-footer-grid {
        grid-template-columns: 1fr;
        gap: var(--sb-space-lg);
    }
    
    .sb-main-grid {
        padding: var(--sb-space-md);
    }
}

@media (max-width: 480px) {
    .sb-hero-slideshow {
        height: 300px;
    }
    
    .sb-hero-content {
        padding-bottom: var(--sb-space-xl);
    }
    
    .sb-hero-excerpt {
        display: none;
    }
}
/* SkorBola Custom Live Score Widget — Dark Theme */
.skorbola-livescore-custom {
    max-width: 800px;
    margin: 32px auto;
    padding: 24px 20px;
    font-family: 'Inter', system-ui, sans-serif;
}

.skorbola-livescore-custom h2 {
    text-align: center;
    color: #E8ECF4;
    font-family: 'Outfit', 'Archivo Black', sans-serif;
    font-size: 1.5em;
    margin: 0 0 4px;
}

.wc-subtitle {
    text-align: center;
    color: #5A6478;
    font-size: 0.82em;
    margin: 0 0 24px;
}

.wc-matches-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.wc-match {
    background: #1A2236;
    border: 1px solid #2A3450;
    border-radius: 12px;
    padding: 14px 16px;
    transition: border-color 0.3s;
}

.wc-match.wc-live {
    border-color: #00D26A;
    box-shadow: 0 0 12px rgba(0, 210, 106, 0.12);
    animation: wc-pulse 2s infinite;
}

@keyframes wc-pulse {
    0%, 100% { box-shadow: 0 0 8px rgba(0, 210, 106, 0.1); }
    50% { box-shadow: 0 0 18px rgba(0, 210, 106, 0.2); }
}

.wc-match-group {
    font-size: 0.72em;
    color: #5A6478;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.wc-match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.wc-team {
    color: #E8ECF4;
    font-size: 0.9em;
    font-weight: 600;
    flex: 1;
}

.wc-team.wc-home { text-align: right; }
.wc-team.wc-away { text-align: left; }

.wc-score {
    color: #00D26A;
    font-family: 'Outfit', 'Archivo Black', sans-serif;
    font-size: 1.3em;
    font-weight: 900;
    min-width: 48px;
    text-align: center;
    background: rgba(0, 210, 106, 0.08);
    border-radius: 6px;
    padding: 2px 10px;
}

.wc-match-meta {
    text-align: center;
    margin-top: 8px;
}

.wc-status {
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 10px;
    border-radius: 4px;
}

.wc-finished .wc-status {
    color: #5A6478;
    background: rgba(90, 100, 120, 0.15);
}

.wc-live .wc-status {
    color: #00D26A;
    background: rgba(0, 210, 106, 0.15);
    animation: wc-blink 1s infinite;
}

@keyframes wc-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.wc-upcoming .wc-status {
    color: #8892A8;
    background: rgba(136, 146, 168, 0.1);
}

.wc-refresh {
    text-align: center;
    color: #5A6478;
    font-size: 0.72em;
    margin-top: 20px;
}

/* Mobile */
@media (max-width: 600px) {
    .wc-matches-grid {
        grid-template-columns: 1fr;
    }
    .skorbola-livescore-custom {
        padding: 16px 12px;
    }
}
