/**
 * SNPC - Saturday Night Poker Club
 * Complete Stylesheet - Replaces Halcyonic + skel.js
 * Modern CSS Grid/Flexbox layout, no JavaScript dependencies
 */

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

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

body {
    font-family: 'Source Sans Pro', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 300;
    line-height: 1.6;
    color: #4c4c4c;
    background: #f5f5f5;
}

a {
    color: #4c72A0;
    text-decoration: none;
}
a:hover {
    color: #2c5280;
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* =========================================================================
   Layout Container
   ========================================================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

/* Column system */
.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-6  { flex: 0 0 calc(50% - 15px); max-width: calc(50% - 15px); }
.col-4  { flex: 0 0 calc(33.333% - 20px); max-width: calc(33.333% - 20px); }

/* =========================================================================
   Typography
   ========================================================================= */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    color: #333;
    line-height: 1.3;
}

h1 { font-size: 1.6rem; margin-bottom: 0.5em; }
h2 { font-size: 1.35rem; margin-bottom: 0.5em; }
h3 { font-size: 1.15rem; margin-bottom: 0.5em; }

p {
    margin-bottom: 1em;
}

/* =========================================================================
   Header
   ========================================================================= */
#header-wrapper {
    background: #2a2a2a;
    color: #fff;
}

#header {
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

#logo {
    font-family: 'Limelight', 'Georgia', serif;
    font-size: 2rem;
    font-weight: 400;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
}
#logo:hover {
    color: #ddd;
    text-decoration: none;
}

/* =========================================================================
   Navigation
   ========================================================================= */
#cssmenu {
    display: flex;
}

#cssmenu ul.nav {
    list-style: none;
    display: flex;
    gap: 0;
    background: #333;
    border-radius: 4px;
    overflow: visible;
}

#cssmenu ul.nav > li {
    position: relative;
}

#cssmenu ul.nav > li > a {
    display: block;
    padding: 10px 20px;
    color: #ccc;
    font-size: 0.9rem;
    font-weight: 400;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

#cssmenu ul.nav > li > a:hover,
#cssmenu ul.nav > li.active > a {
    background: #4c72A0;
    color: #fff;
}

#cssmenu ul.nav > li > a i {
    margin-right: 4px;
}

/* Dropdown indicator */
#cssmenu ul.nav > li.has-sub > a::after {
    content: ' ▾';
    font-size: 0.7em;
}

/* Dropdown menus */
#cssmenu ul.nav > li > ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    background: #444;
    min-width: 200px;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
    padding: 0;
    margin: 0;
}

#cssmenu ul.nav > li:hover > ul {
    display: block;
}

#cssmenu ul.nav > li > ul > li > a {
    display: block;
    padding: 8px 20px;
    color: #ccc;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.2s;
}

#cssmenu ul.nav > li > ul > li > a:hover {
    background: #4c72A0;
    color: #fff;
}

/* Mobile hamburger (hidden by default) */
.mobile-toggle {
    display: none;
    background: #4c72A0;
    color: #fff;
    border: none;
    padding: 10px 15px;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 4px;
}

/* =========================================================================
   Banner (Hero)
   ========================================================================= */
#banner {
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
    color: #bbb;
    padding: 40px 0;
    border-top: 1px solid #444;
}

#banner .row {
    align-items: center;
}

#banner h1 {
    color: #ccc;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
}

#banner h2 {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 400;
}

#banner p {
    color: #ddd;
    font-size: 1.1rem;
}

#banner a {
    color: #8cb8e6;
}
#banner a:hover {
    color: #b0d4f1;
}

#banner hr {
    border: none;
    border-top: 1px solid #555;
    margin: 15px 0;
}

#banner .text-align-center {
    text-align: center;
}

/* Button */
.button-big {
    display: inline-block;
    padding: 12px 30px;
    background: #4c72A0;
    color: #fff;
    font-size: 1rem;
    font-weight: 400;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s;
}
.button-big:hover {
    background: #3a5f8a;
    color: #fff;
    text-decoration: none;
}

/* =========================================================================
   Features Section
   ========================================================================= */
#features-wrapper {
    background: #e8e8e8;
    padding: 40px 0;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

#features section {
    text-align: center;
    margin-bottom: 20px;
}

#features h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555;
    margin-bottom: 5px;
}

#features h3.Limelight {
    font-family: 'Limelight', 'Georgia', serif;
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 15px;
}

#features p {
    color: #666;
    font-size: 0.95rem;
}

.text-align-center {
    text-align: center;
}

/* DivTable layout for news items */
.divTable     { display: table; margin: 0 auto; }
.divTableBody { display: table-row-group; }
.divTableRow  { display: table-row; }
.divTableCell {
    display: table-cell;
    padding: 3px 8px;
    font-size: 0.95rem;
    color: #555;
}

/* =========================================================================
   Content Section
   ========================================================================= */
#content-wrapper {
    padding: 40px 0;
    background: #fff;
}

#content section {
    margin-bottom: 30px;
}

#content header {
    text-align: center;
    margin-bottom: 20px;
}

#content header h2 {
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #333;
}

#content header h3 {
    font-size: 1rem;
    color: #888;
    font-weight: 300;
}

/* =========================================================================
   Season Selector
   ========================================================================= */
.season-selector {
    text-align: center;
    padding: 15px 0 25px;
}
.season-selector label {
    font-weight: 600;
    margin-right: 8px;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: .1em;
    color: #555;
}
.season-selector select {
    padding: 8px 16px;
    font-size: 14px;
    border: 2px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    background: #fff;
    color: #333;
    transition: border-color 0.2s;
}
.season-selector select:focus {
    outline: none;
    border-color: #4c72A0;
}

/* =========================================================================
   Stats Tables
   ========================================================================= */
table.stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    background: #fff;
    margin-bottom: 10px;
}

table.stats-table thead th {
    background: #4c4c4c;
    color: #fff;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 8px;
    text-align: center;
    white-space: nowrap;
}

table.stats-table tbody td {
    padding: 8px;
    text-align: center;
    border-bottom: 1px solid #e8e8e8;
    color: #555;
}

table.stats-table tbody tr:hover {
    background: #f0f4f8;
}

table.stats-table tbody tr:nth-child(even) {
    background: #fafafa;
}
table.stats-table tbody tr:nth-child(even):hover {
    background: #f0f4f8;
}

/* =========================================================================
   Money / Value Colors
   ========================================================================= */
.money-positive { color: #2e8b57; font-weight: 600; }
.money-negative { color: #cc0000; font-weight: 600; }
.money-zero     { color: #888; }
.negative       { color: #cc0000; }

/* Legacy class compatibility */
.green-style { color: #2e8b57; font-weight: 600; }
.red-style   { color: #cc0000; font-weight: 600; }

/* =========================================================================
   Round Sections
   ========================================================================= */
.round-section {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 2px solid #e0e0e0;
}

.round-section header h3 {
    text-align: center;
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 8px;
}

.round-meta {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 18px;
}
.round-meta span {
    margin: 0 12px;
}

/* =========================================================================
   Round Jump Navigation
   ========================================================================= */
.round-nav {
    text-align: center;
    padding: 20px 0;
}
.round-nav strong {
    margin-right: 8px;
    color: #666;
    font-size: 0.85rem;
}
.round-nav a {
    display: inline-block;
    padding: 5px 14px;
    margin: 3px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #555;
    text-decoration: none;
    transition: all 0.2s ease;
}
.round-nav a:hover {
    background: #4c72A0;
    color: #fff;
    border-color: #4c72A0;
    text-decoration: none;
}

/* =========================================================================
   Rules Page
   ========================================================================= */

/* Rule lists */
.rule-list {
    list-style: none;
    padding: 0;
}
.rule-list li {
    padding: 8px 0 8px 20px;
    position: relative;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
}
.rule-list li::before {
    content: '♠';
    position: absolute;
    left: 0;
    color: #4c72A0;
    font-size: 0.8rem;
}
.rule-list li:last-child {
    border-bottom: none;
}

/* Penalties */
.penalty {
    color: #cc0000;
    text-decoration: underline;
    font-weight: 600;
}
.penalty-severe {
    color: #cc0000;
    text-decoration: underline;
    font-weight: 700;
    text-transform: uppercase;
}

/* Chip colors */
.chip-red    { color: #cc0000; font-weight: 600; }
.chip-green  { color: #228B22; font-weight: 600; }
.chip-black  { color: #111; font-weight: 600; }
.chip-purple { color: #7B2D8B; font-weight: 600; }

/* Break rows in blind structure */
.break-row td {
    background: #e8e8e8;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #666;
    text-align: center !important;
}

/* Content article spacing */
#content article h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333;
    margin: 20px 0 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid #4c72A0;
}
#content article h3:first-child {
    margin-top: 0;
}

#content hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 25px 0;
}

/* =========================================================================
   Registration Page
   ========================================================================= */

/* Game info bar */
.game-info-bar {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    background: #f0f0f0;
    padding: 15px 20px;
    border-radius: 4px;
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 30px;
}

/* Form section */
.reg-form-section h3,
.whos-coming-section h3 {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #4c72A0;
}

.reg-form .form-group {
    margin-bottom: 18px;
}

.reg-form label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #555;
    margin-bottom: 6px;
}

.reg-form label .optional {
    font-weight: 300;
    text-transform: none;
    color: #999;
    font-size: 0.8rem;
}

.reg-form input[type="text"],
.reg-form textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.95rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    color: #333;
    transition: border-color 0.2s;
}

.reg-form input[type="text"]:focus,
.reg-form textarea:focus {
    outline: none;
    border-color: #4c72A0;
}

/* Play status radio buttons */
.play-options {
    display: flex;
    gap: 10px;
}

.play-option {
    cursor: pointer;
}

.play-option input[type="radio"] {
    display: none;
}

.play-badge {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    border: 2px solid #ddd;
    color: #666;
    background: #f8f8f8;
    transition: all 0.2s;
}

.play-option input[type="radio"]:checked + .play-yes {
    background: #2e8b57;
    color: #fff;
    border-color: #2e8b57;
}

.play-option input[type="radio"]:checked + .play-no {
    background: #cc0000;
    color: #fff;
    border-color: #cc0000;
}

.play-option input[type="radio"]:checked + .play-maybe {
    background: #d4a017;
    color: #fff;
    border-color: #d4a017;
}

.play-badge:hover {
    border-color: #999;
}

/* Submit button */
.btn-register {
    display: inline-block;
    padding: 12px 40px;
    background: #4c72A0;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-register:hover {
    background: #3a5f8a;
}

/* Form messages */
.form-message {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.form-message.error {
    background: #fbe9e7;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* RSVP summary badges */
.rsvp-summary {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.rsvp-count {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

.rsvp-yes   { background: #2e8b57; }
.rsvp-maybe { background: #d4a017; }
.rsvp-no    { background: #cc0000; }

/* Status badges in table */
.status-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
}

.status-yes   { background: #2e8b57; }
.status-no    { background: #cc0000; }
.status-maybe { background: #d4a017; }

/* Registration table tweaks */
.reg-table {
    font-size: 0.9rem;
}

.no-registrations {
    text-align: center;
    color: #999;
    padding: 30px;
    font-style: italic;
}

/* =========================================================================
   No Data Message
   ========================================================================= */
.no-data {
    text-align: center;
    padding: 50px 20px;
    color: #999;
}

/* =========================================================================
   Copyright / Footer
   ========================================================================= */
#copyright {
    background: #2a2a2a;
    color: #888;
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
}

/* Banner row stays side-by-side until mobile */
#banner .row {
    flex-wrap: nowrap;
}

/* =========================================================================
   Responsive: Tablet
   ========================================================================= */
@media screen and (max-width: 960px) {
    .container {
        padding: 0 20px;
    }
    .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    #banner .row {
        flex-wrap: nowrap;
    }
    #banner .col-6 {
        flex: 0 0 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
    /* Keep registration form side by side on tablet */
    .reg-form-section,
    .whos-coming-section {
        /* parent col-6 handled below */
    }
    .col-4 {
        flex: 0 0 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
    #header {
        flex-direction: column;
        text-align: center;
    }
}

/* =========================================================================
   Responsive: Mobile
   ========================================================================= */
@media screen and (max-width: 737px) {
    .col-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Mobile nav */
    .mobile-toggle {
        display: block;
    }

    /* Banner stacks on mobile */
    #banner .row {
        flex-wrap: wrap;
    }
    #banner .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    #cssmenu ul.nav {
        display: none;
        flex-direction: column;
        width: 100%;
        border-radius: 0;
    }
    #cssmenu ul.nav.open {
        display: flex;
    }
    #cssmenu ul.nav > li > ul {
        position: static;
        box-shadow: none;
        background: #3a3a3a;
    }
    #cssmenu ul.nav > li:hover > ul {
        display: block;
    }

    /* Responsive tables */
    table.stats-table {
        border: 0;
    }
    table.stats-table thead {
        border: none;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }
    table.stats-table tr {
        display: block;
        margin-bottom: 12px;
        border: 1px solid #ddd;
        border-radius: 4px;
        overflow: hidden;
    }
    table.stats-table td {
        display: block;
        font-size: 0.85rem;
        text-align: right;
        padding: 8px 12px;
        border-bottom: 1px solid #eee;
    }
    table.stats-table td::before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 0.75rem;
        color: #888;
    }
    table.stats-table td:last-child {
        border-bottom: 0;
    }
    table.stats-table tbody tr:nth-child(2n+1) {
        background-color: #f8f8f8;
    }

    /* Stack round meta */
    .round-meta span {
        display: block;
        margin: 3px 0;
    }

    #banner {
        padding: 25px 0;
    }
}