/* ============================================================
   BlenderBet Theme — main.css
   ============================================================ */

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #0d0f12;
    color: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* VARIABLES */
:root {
    --accent: #c6f135;
    --accent-dim: rgba(198, 241, 53, 0.12);
    --accent-border: rgba(198, 241, 53, 0.3);
    --bg-primary: #0d0f12;
    --bg-secondary: #13161c;
    --bg-tertiary: #0f1115;
    --border: rgba(255,255,255,0.06);
    --border-mid: rgba(255,255,255,0.10);
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --text-dim: #555555;
    --red: #ff8080;
    --red-dim: rgba(255, 77, 77, 0.10);
    --red-border: rgba(255, 77, 77, 0.25);
    --amber: #f59e0b;
    --amber-dim: rgba(245, 158, 11, 0.12);
    --amber-border: rgba(245, 158, 11, 0.28);
    --container: 1200px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* CONTAINER */
.bb-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
}

/* ============================================================
   TOPBAR LEGALE
   ============================================================ */
.bb-topbar-legal {
    background: #080a0c;
    border-bottom: 0.5px solid var(--border);
    padding: 6px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.bb-topbar-legal span {
    font-size: 10px;
    color: var(--text-dim);
}

.bb-badge-legal {
    font-size: 9px;
    color: #444;
    border: 0.5px solid #222;
    padding: 2px 7px;
    border-radius: 3px;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.bb-header {
    background: var(--bg-primary);
    border-bottom: 0.5px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.bb-header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.bb-logo {
    font-size: 20px;
    font-weight: 500;
    color: #fff;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.bb-logo span { color: var(--accent); }

.bb-nav {
    display: flex;
    gap: 28px;
    align-items: center;
}

.bb-nav a {
    font-size: 13px;
    color: var(--text-muted);
    transition: color 0.15s;
}

.bb-nav a:hover,
.bb-nav a.current-menu-item,
.bb-nav a[aria-current="page"] {
    color: var(--accent);
}

.bb-header-badges {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

/* MOBILE MENU TOGGLE */
.bb-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--text-muted);
    font-size: 22px;
}

/* ============================================================
   HERO
   ============================================================ */
.bb-hero {
    padding: 56px 32px 52px;
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: center;
    border-bottom: 0.5px solid var(--border);
}

.bb-hero-tag {
    display: inline-block;
    background: var(--accent-dim);
    color: var(--accent);
    font-size: 11px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.bb-hero h1 {
    font-size: 40px;
    font-weight: 500;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 14px;
}

.bb-hero h1 span { color: var(--accent); }

.bb-hero-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 28px;
    max-width: 440px;
}

.bb-hero-btns {
    display: flex;
    gap: 12px;
    align-items: center;
}

.bb-btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius-md);
    padding: 13px 28px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.15s;
    text-decoration: none;
    display: inline-block;
}

.bb-btn-primary:hover { opacity: 0.88; color: var(--bg-primary); }

.bb-btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 0.5px solid #2a2e3e;
    border-radius: var(--radius-md);
    padding: 13px 20px;
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
    text-decoration: none;
    display: inline-block;
}

.bb-btn-ghost:hover { border-color: #444; color: #888; }

/* HERO PREVIEW CARD */
.bb-hero-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 0.5px solid var(--border-mid);
    padding: 20px;
}

.bb-hero-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.bb-hero-card-head .title {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
}

.bb-badge-count {
    font-size: 10px;
    color: var(--accent);
    background: var(--accent-dim);
    border: 0.5px solid var(--accent-border);
    padding: 3px 10px;
    border-radius: 20px;
}

.bb-hero-match {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 0.5px solid var(--border);
}

.bb-hero-match:last-child { border-bottom: none; padding-bottom: 0; }

.bb-hero-match .comp {
    font-size: 9px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 3px;
}

.bb-hero-match .teams {
    font-size: 13px;
    color: #bbb;
    font-weight: 500;
}

.bb-hero-match .time {
    font-size: 10px;
    color: #2a2a2a;
    margin-top: 2px;
}

.bb-hero-match .pills {
    display: flex;
    gap: 6px;
}

/* BADGES / PILLS */
.bb-pill {
    font-size: 10px;
    font-weight: 500;
    padding: 3px 9px;
    border-radius: 5px;
}

.bb-pill-green {
    background: var(--accent-dim);
    color: var(--accent);
    border: 0.5px solid var(--accent-border);
}

.bb-pill-red {
    background: var(--red-dim);
    color: var(--red);
    border: 0.5px solid var(--red-border);
}

.bb-pill-amber {
    background: var(--amber-dim);
    color: var(--amber);
    border: 0.5px solid var(--amber-border);
}

.bb-pill-gray {
    background: rgba(255,255,255,0.04);
    color: var(--text-muted);
}

/* ============================================================
   SEO BLOCK 1 — 3 colonne sotto hero
   ============================================================ */
.bb-seo-intro {
    border-bottom: 0.5px solid var(--border);
}

.bb-seo-intro-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 36px 32px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.bb-seo-intro-item {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 0.5px solid var(--border-mid);
    padding: 20px;
}

.bb-seo-intro-item h2 {
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 10px;
}

.bb-seo-intro-item p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.75;
}

/* ============================================================
   STEPS
   ============================================================ */
.bb-steps {
    border-bottom: 0.5px solid var(--border);
}

.bb-steps-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.bb-step {
    padding: 28px 32px;
    border-right: 0.5px solid var(--border);
}

.bb-step:last-child { border-right: none; }

.bb-step-icon {
    width: 38px;
    height: 38px;
    background: var(--accent-dim);
    border: 0.5px solid var(--accent-border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 20px;
    color: var(--accent);
}

.bb-step-num {
    font-size: 32px;
    font-weight: 500;
    color: rgba(198, 241, 53, 0.12);
    margin-bottom: 10px;
    line-height: 1;
}

.bb-step-title {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 8px;
}

.bb-step-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ============================================================
   BLENDER SECTION
   ============================================================ */
.bb-blender-section {
    max-width: var(--container);
    margin: 0 auto;
    padding: 36px 32px 0;
}

.bb-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.bb-section-title {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bb-section-title .icon {
    color: var(--accent);
    font-size: 18px;
}

.bb-live-pill {
    font-size: 10px;
    color: var(--red);
    background: var(--red-dim);
    border: 0.5px solid var(--red-border);
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.bb-live-dot {
    width: 5px;
    height: 5px;
    background: #ff6b6b;
    border-radius: 50%;
}

.bb-section-meta {
    font-size: 11px;
    color: var(--text-dim);
}

/* BLENDER TABLE WRAPPER — shortcode goes here */
.bb-blender-wrap {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 0.5px solid var(--border-mid);
    overflow: hidden;
    margin-bottom: 0;
}

/* Override stili tabella FileBlender */
.bb-blender-wrap table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

.bb-blender-wrap table thead tr {
    background: var(--bg-tertiary);
    border-bottom: 0.5px solid var(--border);
}

.bb-blender-wrap table thead th {
    font-size: 10px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 16px;
    font-weight: 500;
    text-align: left;
}

.bb-blender-wrap table tbody tr {
    border-bottom: 0.5px solid rgba(255,255,255,0.03);
    transition: background 0.1s;
}

.bb-blender-wrap table tbody tr:last-child { border-bottom: none; }
.bb-blender-wrap table tbody tr:hover { background: rgba(255,255,255,0.02); }

.bb-blender-wrap table tbody td {
    padding: 11px 16px;
    font-size: 12px;
    color: var(--text-secondary);
    vertical-align: middle;
}

/* Checkbox override */
.bb-blender-wrap input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: var(--accent);
    cursor: pointer;
}

/* Blender controls bar */
.bb-blender-controls {
    background: var(--bg-primary);
    border-top: 0.5px solid var(--border);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.bb-blender-controls .label {
    font-size: 11px;
    color: var(--text-dim);
    white-space: nowrap;
}

.bb-num-btns {
    display: flex;
    gap: 5px;
}

.bb-num-btn {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.04);
    border-radius: var(--radius-sm);
    border: 0.5px solid #252836;
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.bb-num-btn:hover,
.bb-num-btn.active {
    background: var(--accent-dim);
    border-color: var(--accent-border);
    color: var(--accent);
}

.bb-blend-btn {
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius-md);
    padding: 9px 24px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    margin-left: auto;
    transition: opacity 0.15s;
}

.bb-blend-btn:hover { opacity: 0.88; }

/* ============================================================
   SEO BLOCK 2 — sotto tabella Blender
   ============================================================ */
.bb-seo-method {
    border-top: 0.5px solid var(--border);
    border-bottom: 0.5px solid var(--border);
    margin-top: 36px;
}

.bb-seo-method-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 32px 32px;
}

.bb-seo-method h2 {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 14px;
}

.bb-seo-method p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 12px;
    max-width: 860px;
}

.bb-seo-method p:last-child { margin-bottom: 0; }
.bb-seo-method strong { color: #888; font-weight: 500; }

/* ============================================================
   ARTICLES
   ============================================================ */
.bb-articles {
    max-width: var(--container);
    margin: 0 auto;
    padding: 36px 32px;
}

.bb-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.bb-post-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 0.5px solid var(--border-mid);
    overflow: hidden;
    transition: border-color 0.15s;
}

.bb-post-card:hover { border-color: rgba(255,255,255,0.15); }

.bb-post-thumb {
    height: 160px;
    overflow: hidden;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bb-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bb-post-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #222;
    font-size: 32px;
}

.bb-post-body { padding: 16px; }

.bb-post-tag {
    font-size: 10px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.bb-post-title {
    font-size: 14px;
    color: #bbb;
    line-height: 1.5;
    margin-bottom: 8px;
    font-weight: 500;
}

.bb-post-title a { color: inherit; transition: color 0.15s; }
.bb-post-title a:hover { color: #fff; }

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

/* ============================================================
   SEO BLOCK 3 — sopra footer
   ============================================================ */
.bb-seo-about {
    border-top: 0.5px solid var(--border);
    border-bottom: 0.5px solid var(--border);
}

.bb-seo-about-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 36px 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.bb-seo-about h2 {
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 12px;
}

.bb-seo-about p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.85;
}

.bb-seo-about strong { color: #888; font-weight: 500; }

/* ============================================================
   FOOTER
   ============================================================ */
.bb-footer {
    background: #080a0c;
    border-top: 0.5px solid var(--border);
    padding: 48px 32px 24px;
}

.bb-footer-inner {
    max-width: var(--container);
    margin: 0 auto;
}

.bb-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 36px;
}

.bb-footer-logo {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 10px;
}

.bb-footer-logo span { color: var(--accent); }

.bb-footer-desc {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.75;
    margin-bottom: 16px;
}

.bb-footer-col-title {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 14px;
}

.bb-footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bb-footer-links a {
    font-size: 12px;
    color: var(--text-dim);
    transition: color 0.15s;
}

.bb-footer-links a:hover { color: #888; }

.bb-footer-bottom {
    border-top: 0.5px solid var(--border);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.bb-footer-legal {
    font-size: 10px;
    color: var(--text-dim);
    line-height: 1.7;
}

.bb-footer-badges {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.bb-footer-badge {
    font-size: 9px;
    color: #333;
    border: 0.5px solid #1a1d24;
    padding: 3px 8px;
    border-radius: 3px;
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.bb-single {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 32px 64px;
}

.bb-single-header { margin-bottom: 32px; }

.bb-single-tag {
    font-size: 11px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.bb-single h1 {
    font-size: 32px;
    font-weight: 500;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 12px;
}

.bb-single-meta {
    font-size: 12px;
    color: var(--text-dim);
    display: flex;
    gap: 16px;
    align-items: center;
}

.bb-single-thumb {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 36px;
}

.bb-single-content {
    font-size: 15px;
    color: #aaa;
    line-height: 1.85;
}

.bb-single-content h2 {
    font-size: 22px;
    font-weight: 500;
    color: #fff;
    margin: 36px 0 14px;
}

.bb-single-content h3 {
    font-size: 18px;
    font-weight: 500;
    color: #ddd;
    margin: 28px 0 12px;
}

.bb-single-content p { margin-bottom: 18px; }

.bb-single-content strong { color: #ccc; font-weight: 500; }

.bb-single-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bb-single-content ul,
.bb-single-content ol {
    margin: 0 0 18px 24px;
}

.bb-single-content li { margin-bottom: 6px; }

.bb-single-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    font-size: 13px;
}

.bb-single-content table th,
.bb-single-content table td {
    padding: 10px 14px;
    border: 0.5px solid var(--border);
    text-align: left;
}

.bb-single-content table th {
    background: var(--bg-secondary);
    color: #fff;
    font-weight: 500;
}

/* DISCLAIMER */
.bb-disclaimer {
    background: var(--bg-secondary);
    border: 0.5px solid var(--border-mid);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-top: 40px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.7;
}

.bb-disclaimer a { color: var(--accent); }

/* ============================================================
   ARCHIVE / BLOG PAGE
   ============================================================ */
.bb-archive {
    max-width: var(--container);
    margin: 0 auto;
    padding: 48px 32px 64px;
}

.bb-archive-header { margin-bottom: 32px; }

.bb-archive-header h1 {
    font-size: 28px;
    font-weight: 500;
    color: #fff;
}

.bb-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* PAGINATION */
.bb-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.bb-pagination a,
.bb-pagination span {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 13px;
    border: 0.5px solid var(--border);
    color: var(--text-muted);
    transition: all 0.15s;
}

.bb-pagination a:hover { border-color: var(--accent-border); color: var(--accent); }
.bb-pagination .current { background: var(--accent-dim); border-color: var(--accent-border); color: var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .bb-hero { grid-template-columns: 1fr; }
    .bb-hero-card { display: none; }
    .bb-posts-grid,
    .bb-archive-grid { grid-template-columns: repeat(2, 1fr); }
    .bb-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .bb-seo-about-inner { grid-template-columns: 1fr; }
    .bb-seo-intro-inner { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 768px) {
    .bb-container,
    .bb-hero,
    .bb-blender-section,
    .bb-articles,
    .bb-archive,
    .bb-single,
    .bb-seo-intro-inner,
    .bb-seo-method-inner,
    .bb-seo-about-inner,
    .bb-footer { padding-left: 20px; padding-right: 20px; }

    .bb-nav { display: none; }
    .bb-nav.open { display: flex; flex-direction: column; position: absolute; top: 56px; left: 0; right: 0; background: var(--bg-primary); border-bottom: 0.5px solid var(--border); padding: 16px 20px; gap: 16px; z-index: 99; }
    .bb-menu-toggle { display: block; }

    .bb-hero h1 { font-size: 28px; }
    .bb-steps-inner { grid-template-columns: 1fr; }
    .bb-step { border-right: none; border-bottom: 0.5px solid var(--border); }
    .bb-step:last-child { border-bottom: none; }
    .bb-posts-grid,
    .bb-archive-grid { grid-template-columns: 1fr; }
    .bb-footer-grid { grid-template-columns: 1fr; }
    .bb-footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
    .bb-blender-controls { flex-wrap: wrap; }
    .bb-blend-btn { margin-left: 0; width: 100%; text-align: center; }
}
