/* PoolVids.com - Pool Table Green Theme */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Color Palette - Pool Table Inspired */
:root {
    --felt-green: #1B5E20;
    --felt-green-light: #2E7D32;
    --felt-green-dark: #0D3B12;
    --rail-brown: #5D4037;
    --rail-brown-light: #795548;
    --chalk-blue: #1565C0;
    --chalk-blue-light: #1976D2;
    --ball-gold: #FFB300;
    --ball-gold-light: #FFC107;
    --cue-cream: #FFF8E7;
    --slate-dark: #263238;
    --text-light: #FAFAFA;
    --text-dark: #212121;
}

body {
    font-family: 'Open Sans', 'Segoe UI', sans-serif;
    font-size: 17px;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    background: linear-gradient(180deg, var(--slate-dark) 0%, #1a2328 100%);
    color: var(--text-dark);
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Improved focus states */
a:focus, button:focus, input:focus {
    outline: 2px solid var(--ball-gold);
    outline-offset: 2px;
}

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--cue-cream);
    border-radius: 0;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

@media (min-width: 1040px) {
    .container {
        margin: 20px auto;
        border-radius: 12px;
    }
}

/* Header */
header {
    background-color: var(--felt-green-dark);
    position: relative;
}

.header-top {
    position: relative;
    display: block;
}

.logo-link {
    display: block;
    text-decoration: none;
    touch-action: pan-y;
}

.header-img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0.7);
    transition: filter 0.3s ease;
}

.logo-link:hover .header-img {
    filter: brightness(0.8);
}

.header-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    text-align: center;
}

.logo-text {
    font-family: 'Oswald', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    letter-spacing: 3px;
}

.tagline {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    color: var(--ball-gold);
    margin: 5px 0 0;
    font-style: italic;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

/* Navigation */
nav {
    background-color: var(--felt-green);
    padding: 0;
    border-top: 3px solid var(--rail-brown);
    border-bottom: 3px solid var(--rail-brown);
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    text-decoration: none;
    padding: 14px 24px;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav ul li a:hover, nav ul li a:focus {
    background-color: var(--felt-green-light);
    border-bottom-color: var(--ball-gold);
}

nav ul li a i {
    font-size: 16px;
}

/* Main Content */
main {
    padding: 30px 40px 40px;
}

/* CTA Banner */
.cta-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--felt-green) 0%, var(--felt-green-dark) 100%);
    color: #fff;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    border: 2px solid var(--rail-brown);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, var(--felt-green-light) 0%, var(--felt-green) 100%);
}

.cta-button i {
    color: var(--ball-gold);
}

.season-badge {
    background: var(--ball-gold);
    color: var(--slate-dark);
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
}

/* Section Styling */
#home h2 {
    font-size: 32px;
    color: var(--felt-green-dark);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--felt-green);
    display: inline-block;
}

.social-follow {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
}

.social-follow a {
    color: var(--chalk-blue);
    font-weight: 600;
}

/* Resource Grid */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.resource-card {
    display: block;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    border-left: 4px solid var(--felt-green);
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    border-left-color: var(--ball-gold);
}

.resource-card strong {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    color: var(--felt-green-dark);
    margin-bottom: 5px;
    text-transform: uppercase;
}

.resource-card span {
    font-size: 15px;
    color: #666;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, var(--chalk-blue) 0%, var(--chalk-blue-light) 100%);
    color: #fff;
    padding: 20px 25px;
    border-radius: 8px;
    margin: 30px 0;
}

.info-box p {
    margin: 0;
}

.info-box a {
    color: var(--ball-gold-light);
    text-decoration: underline;
}

.info-box a:hover {
    color: #fff;
}

/* Contact Box */
.contact-box {
    text-align: center;
    padding: 25px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-top: 30px;
}

.contact-box p {
    margin: 5px 0;
}

.contact-box a {
    color: var(--chalk-blue);
    font-weight: 500;
}

.contact-box i {
    color: var(--felt-green);
    margin-right: 5px;
}

/* External Links */
.external-link {
    color: var(--chalk-blue);
    text-decoration: none;
    transition: color 0.3s;
}

.external-link:hover {
    color: var(--felt-green);
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--slate-dark);
    color: #aaa;
    text-align: center;
    padding: 20px;
    font-size: 15px;
}

footer a {
    color: var(--ball-gold);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
    color: var(--ball-gold-light);
}

/* ===================== */
/* POOL NIGHT RULES PAGE */
/* ===================== */

.content {
    padding: 0;
}

.content h1 {
    font-size: 42px;
    color: var(--felt-green-dark);
    text-align: center;
    margin-bottom: 30px;
}

.content h2 {
    font-size: 28px;
    color: var(--felt-green-dark);
    margin-top: 40px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--felt-green);
}

.content h3 {
    font-size: 22px;
    color: var(--rail-brown);
    margin-top: 30px;
}

/* Rules Navigation */
.content > nav {
    background: var(--cue-cream);
    border: 2px solid var(--felt-green);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    position: sticky;
    top: 10px;
    z-index: 100;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.content > nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
}

.content > nav ul li {
    margin: 0;
}

.content > nav ul li a {
    display: inline-block;
    padding: 8px 14px;
    background: var(--felt-green);
    color: #fff;
    border-radius: 5px;
    font-size: 13px;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
}

.content > nav ul li a:hover {
    background: var(--felt-green-light);
    transform: translateY(-1px);
}

/* Rules Sections */
.content section {
    background: #fff;
    border-radius: 8px;
    padding: 25px 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.content section:target {
    animation: highlight 1s ease;
}

@keyframes highlight {
    0% { box-shadow: 0 0 0 4px var(--ball-gold); }
    100% { box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
}

.content section ul, .content section ol {
    padding-left: 25px;
}

.content section li {
    margin-bottom: 12px;
}

/* Back to Top Button */
.back-to-top {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 16px;
    background: var(--rail-brown);
    color: #fff;
    border-radius: 5px;
    font-size: 13px;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    text-decoration: none;
    float: right;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: var(--rail-brown-light);
    transform: translateY(-2px);
}

/* Narrow mobile — prevent header image from collapsing too short */
@media only screen and (max-width: 400px) {
    .header-img {
        min-height: 130px;
        object-fit: cover;
    }
}

/* Responsive */
@media only screen and (max-width: 768px) {
    main {
        padding: 20px;
    }

    .logo-text {
        font-size: 32px;
    }

    .tagline {
        font-size: 14px;
    }

    nav ul li a {
        padding: 12px 16px;
        font-size: 14px;
    }

    .cta-button {
        padding: 12px 24px;
        font-size: 18px;
    }

    #home h2 {
        font-size: 26px;
    }

    .resource-grid {
        grid-template-columns: 1fr;
    }

    .content > nav {
        position: static;
        max-height: none;
    }

    .content section {
        padding: 20px;
    }

    .content h1 {
        font-size: 32px;
    }

    .content h2 {
        font-size: 24px;
    }
}

/* =============================== */
/* HOMEPAGE: TWO-COLUMN POOLIE NEWS */
/* =============================== */

.season-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 28px;
    background: linear-gradient(135deg, var(--felt-green-dark) 0%, var(--felt-green) 100%);
    color: #fff;
    border-radius: 10px;
    border: 2px solid var(--rail-brown);
    box-shadow: 0 4px 15px rgba(0,0,0,0.18);
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.season-banner .banner-text {
    flex: 1 1 auto;
}

.season-banner h2 {
    font-size: 26px;
    margin: 0 0 6px;
    color: var(--ball-gold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.season-banner p {
    margin: 0;
    font-size: 16px;
    color: #f5f5f5;
    text-transform: none;
    letter-spacing: 0;
    font-family: 'Open Sans', sans-serif;
}

.season-banner .banner-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: var(--ball-gold);
    color: var(--slate-dark);
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.season-banner .banner-cta:hover {
    background: var(--ball-gold-light);
    transform: translateY(-2px);
}

.home-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.home-main h2,
.home-sidebar h2 {
    font-size: 22px;
    color: var(--felt-green-dark);
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--felt-green);
    display: block;
}

.news-card {
    display: block;
    padding: 16px 18px;
    margin-bottom: 14px;
    background: #fff;
    border-radius: 6px;
    border-left: 4px solid var(--felt-green);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    border-left-color: var(--ball-gold);
}

.news-card .news-title {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--felt-green-dark);
    margin-bottom: 6px;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.3;
}

.news-card .news-meta {
    display: block;
    font-size: 13px;
    color: #888;
    margin-bottom: 6px;
}

.news-card .news-blurb {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

.home-sidebar {
    background: #eef3fb;
    padding: 18px 18px 8px;
    border-radius: 10px;
    border: 1px solid #d4e1f2;
}

.home-sidebar h2 {
    color: var(--chalk-blue);
    border-bottom-color: var(--chalk-blue);
}

.home-sidebar .news-card {
    padding: 12px 14px;
    border-left-width: 3px;
    background: #fff;
    border-left-color: var(--chalk-blue);
}

.home-sidebar .news-card:hover {
    border-left-color: var(--ball-gold);
}

.home-sidebar .news-card .news-title {
    font-size: 15px;
    color: var(--chalk-blue);
}

.home-sidebar .news-card .news-blurb {
    font-size: 13px;
}

.contact-line {
    margin-top: 30px;
    padding: 18px;
    background: #f5f5f5;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    color: #555;
}

.contact-line a {
    color: var(--chalk-blue);
    font-weight: 500;
}

.contact-line i {
    color: var(--felt-green);
    margin-right: 4px;
}

@media only screen and (max-width: 768px) {
    .home-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .season-banner {
        padding: 16px 18px;
        gap: 12px;
    }

    .season-banner h2 {
        font-size: 20px;
    }
}

/* ====================== */
/* EVENT PAGE / HEADLINES */
/* ====================== */

.event-hero {
    background: linear-gradient(135deg, var(--felt-green-dark) 0%, var(--slate-dark) 100%);
    color: #fff;
    padding: 28px 32px;
    border-radius: 10px;
    margin-bottom: 28px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.event-hero h1 {
    color: var(--ball-gold);
    margin: 0 0 6px;
    font-size: 32px;
}

.event-hero .event-date {
    margin: 0;
    font-size: 15px;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Oswald', sans-serif;
}

.event-hero .event-sub {
    margin: 10px 0 0;
    font-size: 16px;
    color: #eee;
    font-family: 'Open Sans', sans-serif;
    text-transform: none;
    letter-spacing: 0;
}

.headlines {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin: 20px 0 30px;
}

.headline-card {
    background: #fff;
    padding: 18px 20px;
    border-radius: 8px;
    border-top: 4px solid var(--ball-gold);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.headline-card h3 {
    font-size: 16px;
    margin: 0 0 8px;
    color: var(--felt-green-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.headline-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #444;
}

.headline-card.feature {
    border-top-color: var(--rail-brown);
    background: linear-gradient(180deg, #fffbea 0%, #fff 100%);
}

.chalkboard-figure {
    margin: 30px 0;
    text-align: center;
}

.chalkboard-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 4px solid var(--rail-brown);
}

.chalkboard-figure figcaption {
    margin-top: 10px;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

.game-log-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.game-log-table th {
    background: var(--felt-green);
    color: #fff;
    padding: 10px 8px;
    text-align: left;
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-log-table td {
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.game-log-table tr:nth-child(even) td {
    background: #fafafa;
}

.game-log-table td.g-num {
    width: 50px;
    color: #888;
    text-align: center;
}

.game-log-table td.winner {
    font-weight: 600;
    color: var(--felt-green-dark);
}

.game-log-table td.loser {
    color: #777;
}

.game-log-table td.tag {
    font-size: 12px;
    color: var(--rail-brown);
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.recent-events {
    margin-top: 30px;
}

.recent-events ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-events li {
    padding: 10px 14px;
    background: #fff;
    margin-bottom: 8px;
    border-radius: 6px;
    border-left: 3px solid var(--felt-green);
}

.recent-events a {
    color: var(--felt-green-dark);
    text-decoration: none;
    font-weight: 600;
}

.recent-events a:hover {
    text-decoration: underline;
}

.recent-events .ev-meta {
    display: inline-block;
    margin-left: 10px;
    font-size: 13px;
    color: #888;
    font-weight: 400;
}

/* ================= */
/* PAGE ANCHOR NAV   */
/* ================= */

.page-nav,
.wof-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 30px;
    padding: 12px 15px;
    background: var(--cue-cream);
    border: 2px solid var(--felt-green);
    border-radius: 8px;
}

.page-nav .nav-label,
.wof-nav .nav-label {
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--felt-green-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 4px;
}

.page-nav a,
.wof-nav a {
    display: inline-block;
    padding: 7px 12px;
    background: var(--felt-green);
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.page-nav a:hover,
.wof-nav a:hover {
    background: var(--felt-green-light);
    transform: translateY(-1px);
}

/* Print Styles */
@media print {
    header, nav, .cta-banner, footer, .back-to-top, .wof-nav, .page-nav {
        display: none;
    }

    .container {
        box-shadow: none;
        max-width: 100%;
    }

    .content section {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
