/* Bristol Poker League — modern black & yellow (Redtooth-inspired) */

:root {
    --bg: #0d0d0d;
    --bg-card: #161616;
    --bg-subtle: #1f1f1f;
    --text: #f0f0f0;
    --text-muted: #a0a0a0;
    --accent: #e6b800;
    --accent-hover: #ffcc00;
    --accent-glow: rgba(230, 184, 0, 0.35);
    --border: #2a2a2a;
    --divider: var(--accent);
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.5);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    line-height: 1.65;
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    color: var(--text);
}

/* Skip link — visible on focus for keyboard/screen reader users */
.skip-link {
    position: absolute;
    top: -4rem;
    left: 1rem;
    z-index: 1000;
    padding: 0.6rem 1rem;
    background: var(--accent);
    color: var(--bg);
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: top 0.2s;
}
.skip-link:focus {
    top: 1rem;
    outline: 2px solid var(--text);
    outline-offset: 2px;
}

/* Page wrapper */
.page-wrap {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

/* Site header — one row:  left nav  +  logo  +  right nav  (- - - + - - -) */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header-inner {
    position: relative;
    max-width: 72rem;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* Horizontal line under the row (runs behind the logo) */
.header-inner::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--accent);
    z-index: 0;
}

/* Nav overlay: on desktop its children sit in the flex row (display: contents); on mobile it's the dropdown panel */
.nav-overlay {
    display: contents;
}

/* Left block: links toward centre, evenly spaced */
.nav-left {
    order: 1;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    z-index: 1;
}

/* Centre: logo sits on top of the line (covers it) */
.site-logo {
    order: 2;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    z-index: 2;
    background: rgba(13, 13, 13, 0.95);
    padding: 0 0.5rem;
}

.site-logo-img {
    height: 6rem;
    width: auto;
    display: block;
    object-fit: contain;
}

.site-logo:hover .site-logo-img {
    opacity: 0.95;
}

/* Right block: links aligned right, evenly spaced */
.nav-right {
    order: 3;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    z-index: 1;
}

.nav-left a,
.nav-right a {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}

.nav-left a:hover,
.nav-right a:hover {
    color: var(--accent);
    background: var(--bg-subtle);
    text-decoration: none;
}

.nav-left a.current,
.nav-right a.current {
    color: var(--accent);
    background: var(--bg-subtle);
}

/* Hamburger — hidden on desktop, order 4 so it doesn't affect the row */
.nav-toggle {
    order: 4;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0.5rem;
    background: transparent;
    border: 2px solid var(--accent);
    border-radius: var(--radius-sm);
    color: var(--accent);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.nav-toggle:hover {
    background: var(--bg-subtle);
}

.nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.25s, opacity 0.25s;
}

.site-header.is-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.site-header.is-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}
.site-header.is-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Tablet / mobile: logo + hamburger in one row; nav in dropdown below */
@media (max-width: 900px) {
    .header-inner {
        padding: 0.75rem 1.25rem;
        gap: 1rem;
    }

    /* Overlay becomes the dropdown panel (no longer display: contents) */
    .nav-overlay {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(13, 13, 13, 0.98);
        backdrop-filter: blur(12px);
        border-bottom: 2px solid var(--accent);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
        max-height: calc(100vh - 4rem);
        overflow-y: auto;
    }

    .site-header.is-open .nav-overlay {
        display: flex;
    }

    .nav-left,
    .nav-right {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }

    .nav-left a,
    .nav-right a {
        padding: 0.85rem 1.25rem;
        border-radius: 0;
        border-bottom: 1px solid var(--border);
        white-space: normal;
    }
    .nav-overlay .nav-right a:last-child {
        border-bottom: none;
    }

    .site-logo {
        order: 1;
        flex: 0 0 auto;
        justify-content: flex-start;
    }

    .site-logo-img {
        height: 3.25rem;
    }

    .nav-toggle {
        order: 2;
        display: flex;
    }
}

@media (max-width: 480px) {
    .site-logo-img {
        height: 2.85rem;
    }
}

/* Hero — full-bleed gradient, big type */
.hero {
    margin: 0 -1.5rem 3rem;
    padding: 3.5rem 1.5rem 3rem;
    background: linear-gradient(165deg, var(--bg) 0%, var(--bg-card) 45%, var(--bg) 100%);
    border-bottom: 3px solid var(--accent);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.6;
}

.hero h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1.75rem;
    max-width: 36rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-actions .btn {
    text-decoration: none;
    display: inline-block;
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
    border-radius: var(--radius);
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero-actions .btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--accent-glow);
}

.hero-intro {
    font-size: 1.0625rem;
    color: var(--text-muted);
    margin: 0;
    max-width: 42rem;
    line-height: 1.7;
}

/* Home page — link cards to other sections */
.home-links {
    margin-top: 2rem;
}

.home-links h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
    color: var(--text);
}

.link-cards {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
}

.link-card {
    display: block;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.link-card:hover {
    border-color: var(--accent);
    box-shadow: 0 6px 24px var(--accent-glow);
    text-decoration: none;
    color: var(--text);
}

.link-card-title {
    display: block;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.35rem;
}

/* Cards for content sections (Redtooth-style blocks) */
.content-section {
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.content-section:hover {
    box-shadow: var(--shadow-hover);
    border-color: rgba(230, 184, 0, 0.2);
}

.content-section h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--accent);
    color: var(--text);
}

.content-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--accent);
    color: var(--text);
    letter-spacing: -0.02em;
}

.content-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.content-section p {
    margin-bottom: 1rem;
}

.content-section ul,
.content-section ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.content-section li {
    margin-bottom: 0.5rem;
}

/* How it works — numbered steps with punch */
.steps-list {
    list-style: none;
    padding-left: 0;
    counter-reset: step;
}

.steps-list li {
    position: relative;
    padding: 1.25rem 1.25rem 1.25rem 4rem;
    margin-bottom: 1rem;
    counter-increment: step;
    background: var(--bg-subtle);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--accent);
}

.steps-list li::before {
    content: counter(step);
    position: absolute;
    left: 1rem;
    top: 1.25rem;
    width: 2.25rem;
    height: 2.25rem;
    background: var(--accent);
    color: var(--bg);
    font-weight: 800;
    font-size: 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 2.25rem;
    text-align: center;
    box-shadow: 0 2px 12px var(--accent-glow);
}

.note {
    font-size: 0.9375rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 1.25rem;
}

.join-section .btn {
    text-decoration: none;
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    transition: transform 0.2s, box-shadow 0.2s;
}

.join-section .btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--accent-glow);
}

/* Links */
a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

hr {
    border: none;
    border-top: 2px solid var(--divider);
    margin: 1.5rem 0;
}

/* Buttons */
button,
.btn {
    background: var(--accent);
    color: var(--bg);
    border: none;
    padding: 0.65rem 1.35rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9375rem;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

button:hover,
.btn:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}

code {
    background: var(--bg-subtle);
    color: var(--accent);
    padding: 0.2em 0.5em;
    border-radius: 6px;
    border: 1px solid var(--border);
    font-size: 0.9em;
}

/* Site footer */
.site-footer {
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 2px solid var(--accent);
    background: var(--bg-card);
}

.footer-inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-disclaimer {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.footer-legal-links {
    margin-bottom: 0.5rem;
}

.footer-legal-links a {
    color: var(--accent);
    text-decoration: none;
}

.footer-legal-links a:hover {
    text-decoration: underline;
}

.footer-sep {
    margin: 0 0.35rem;
    color: var(--text-muted);
}

.footer-copy {
    margin-bottom: 0;
}

/* Cookie consent banner (GDPR / UK) */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--bg-card);
    border-top: 2px solid var(--accent);
    padding: 1rem 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-notice-inner {
    max-width: 72rem;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
}

.cookie-notice-text {
    flex: 1 1 20rem;
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--text);
}

.cookie-notice-text a {
    color: var(--accent);
    text-decoration: underline;
}

.cookie-notice-text a:hover {
    color: var(--accent-hover);
}

.cookie-notice-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.btn-cookie-accept {
    background: var(--accent);
    color: var(--bg);
}

.btn-cookie-reject {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.btn-cookie-reject:hover {
    background: var(--bg-subtle);
    color: var(--text);
    border-color: var(--text-muted);
}

/* Legal pages */
.legal-section {
    max-width: 52rem;
}

.legal-section h2 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal-section h2:first-of-type {
    margin-top: 1.5rem;
}

.legal-updated {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.legal-section ul {
    margin-bottom: 1rem;
}

.legal-section li {
    margin-bottom: 0.35rem;
}

/* News listing */
.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.news-list-item {
    border-bottom: 1px solid var(--border);
}
.news-list-link {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem 0;
    text-decoration: none;
    color: var(--text);
    align-items: flex-start;
}
.news-list-link:hover {
    color: var(--accent);
    text-decoration: none;
}
.news-list-thumb {
    flex-shrink: 0;
    width: 140px;
    height: 90px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-subtle);
}
.news-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-list-text {
    flex: 1;
    min-width: 0;
}
.news-list-text strong {
    display: block;
    margin-bottom: 0.25rem;
}
.news-list-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.35rem;
}
.news-list-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    display: block;
    line-height: 1.5;
}
.news-empty {
    color: var(--text-muted);
}

/* News single */
.news-single-header h1 {
    margin-bottom: 0.5rem;
}
.news-meta {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}
.news-featured {
    margin: 1.5rem 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-subtle);
}
.news-featured img {
    width: 100%;
    height: auto;
    display: block;
}
.news-body.content-body {
    margin-top: 1.5rem;
    line-height: 1.7;
}
.content-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}
.content-body p { margin-bottom: 1rem; }
.content-body ul, .content-body ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.content-body h2 { margin-top: 1.5rem; margin-bottom: 0.5rem; }
.content-body h3 { margin-top: 1.25rem; margin-bottom: 0.5rem; }
.content-body a { color: var(--accent); text-decoration: underline; }
.content-body a:hover { color: var(--accent-hover); }

/* Gallery shortcode */
.content-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}
.content-gallery-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-subtle);
}
.content-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
