/*
Theme Name: Bingo Pro
Theme URI: https://example.com/bingo-pro
Author: Byron C. Clayton / Applied Concepts, Inc
Author URI: http://www.electronicbingo.com
Description: A professional bingo hall website theme. Features a two-column homepage with featured sessions, results sidebar, schedule page, and full contact page. Easily customizable via the CONFIG section in style.css and functions.php.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bingo-pro
Tags: bingo, entertainment, two-columns, right-sidebar, custom-menu, featured-images, post-thumbnails, threaded-comments, translation-ready

== CONFIG: Customize your bingo site here ==
Edit these CSS variables to change colors/fonts site-wide.
*/

/* ============================================================
   CONFIG — Change these to match your client's brand
   ============================================================ */
:root {
    --color-primary:     #1a1a1a;   /* Nav bar, section headers       */
    --color-accent:      #f5c518;   /* Buttons, highlights, links      */
    --color-accent-dark: #c9a000;   /* Hover state for accent          */
    --color-bg:          #ffffff;   /* Page background                 */
    --color-bg-light:    #f5f5f5;   /* Sidebar, alternating rows       */
    --color-text:        #222222;   /* Body text                       */
    --color-text-muted:  #666666;   /* Dates, meta info                */
    --color-border:      #dddddd;   /* Dividers, table borders         */
    --font-heading:      'Georgia', 'Times New Roman', serif;
    --font-body:         'Arial', 'Helvetica Neue', sans-serif;
    --site-max-width:    1200px;
    --nav-height:        52px;
}

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

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.25;
    color: var(--color-primary);
}

/* ============================================================
   LAYOUT WRAPPER
   ============================================================ */
.site-wrapper {
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   HEADER & TOP NAV
   ============================================================ */
#site-header {
    background: var(--color-primary);
    width: 100%;
}

#top-nav {
    background: var(--color-primary);
}

#top-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

#top-nav ul li a {
    display: block;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 14px 16px;
    text-decoration: none;
    transition: background 0.2s;
}

#top-nav ul li a:hover,
#top-nav ul li.current-menu-item a {
    background: var(--color-accent);
    color: var(--color-primary);
    text-decoration: none;
}

/* ============================================================
   SITE BRANDING (title area below top nav)
   ============================================================ */
#site-branding {
    padding: 30px 0 10px;
    border-bottom: 2px solid var(--color-border);
    margin-bottom: 0;
}

#site-branding .site-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--color-primary);
    margin-bottom: 4px;
}

#site-branding .site-title a {
    color: var(--color-primary);
    text-decoration: none;
}

#site-branding .site-description {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Second nav below branding */
#secondary-nav {
    border-bottom: 2px solid var(--color-border);
    margin-bottom: 30px;
}

#secondary-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding: 0;
    margin: 0;
}

#secondary-nav ul li a {
    display: block;
    font-size: 0.78rem;
    font-weight: bold;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--color-text);
    padding: 12px 16px 12px 0;
    text-decoration: none;
    transition: color 0.2s;
}

#secondary-nav ul li a:hover {
    color: var(--color-accent-dark);
    text-decoration: none;
}

/* ============================================================
   MAIN CONTENT AREA — Two Column Layout
   ============================================================ */
#content-area {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
    padding-bottom: 60px;
}

/* ============================================================
   SECTION HEADER LABEL (e.g. "PLAY VIRTUAL BINGO THIS WEEK!")
   ============================================================ */
.section-label {
    background: var(--color-primary);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 10px 14px;
    margin-bottom: 16px;
}

/* ============================================================
   FEATURED POST (left column main post)
   ============================================================ */
.featured-post .featured-image {
    width: 100%;
    margin-bottom: 16px;
    position: relative;
}

.featured-post .featured-image img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

.featured-post .post-date-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--color-accent);
    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 3px;
}

.featured-post .post-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
    line-height: 1.3;
}

.featured-post .post-title a {
    color: var(--color-primary);
    text-decoration: none;
}

.featured-post .post-title a:hover {
    color: var(--color-accent-dark);
}

.featured-post .post-excerpt {
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.featured-post .read-more {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-primary);
    font-weight: bold;
    font-size: 0.85rem;
    padding: 8px 20px;
    border-radius: 3px;
    text-decoration: none;
    transition: background 0.2s;
}

.featured-post .read-more:hover {
    background: var(--color-accent-dark);
    text-decoration: none;
}

/* ============================================================
   SIDEBAR (right column)
   ============================================================ */
#sidebar {
    background: var(--color-bg-light);
    padding: 0;
}

.sidebar-widget {
    margin-bottom: 30px;
}

/* Sidebar results list */
.results-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.results-list li {
    display: flex;
    gap: 14px;
    padding: 14px 14px;
    border-bottom: 1px solid var(--color-border);
    align-items: flex-start;
}

.results-list li:last-child {
    border-bottom: none;
}

.results-list .thumb {
    flex-shrink: 0;
    width: 90px;
    height: 70px;
    overflow: hidden;
    background: var(--color-border);
}

.results-list .thumb img {
    width: 90px;
    height: 70px;
    object-fit: cover;
}

.results-list .info .title {
    font-size: 0.9rem;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 4px;
    color: var(--color-primary);
}

.results-list .info .title a {
    color: var(--color-primary);
    text-decoration: none;
}

.results-list .info .title a:hover {
    color: var(--color-accent-dark);
}

.results-list .info .date {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ============================================================
   SCHEDULE PAGE
   ============================================================ */
.schedule-page h1 {
    font-size: 2rem;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--color-accent);
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
    font-size: 0.95rem;
}

.schedule-table thead th {
    background: var(--color-primary);
    color: #ffffff;
    padding: 12px 16px;
    text-align: left;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.schedule-table tbody tr:nth-child(even) {
    background: var(--color-bg-light);
}

.schedule-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}

.schedule-table .badge {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-primary);
    font-size: 0.72rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 2px;
    margin-left: 6px;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-page h1 {
    font-size: 2rem;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--color-accent);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.contact-info h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
    color: var(--color-text-muted);
}

.contact-info p {
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 1.6;
}

.contact-info a {
    color: var(--color-accent-dark);
}

.contact-form label {
    display: block;
    font-weight: bold;
    font-size: 0.85rem;
    margin-bottom: 4px;
    margin-top: 16px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: 3px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: #fff;
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-accent-dark);
}

.contact-form textarea { min-height: 140px; resize: vertical; }

.contact-form .submit-btn {
    display: inline-block;
    margin-top: 20px;
    background: var(--color-primary);
    color: #fff;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    padding: 12px 32px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s;
}

.contact-form .submit-btn:hover {
    background: var(--color-accent-dark);
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-post-content {
    max-width: 780px;
}

.single-post-content h1 {
    font-size: 1.9rem;
    margin-bottom: 10px;
}

.post-meta {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-bottom: 24px;
}

.single-post-content .featured-img {
    margin-bottom: 28px;
}

.single-post-content .featured-img img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.entry-content p {
    margin-bottom: 18px;
    line-height: 1.75;
}

.entry-content h2, .entry-content h3 {
    margin: 28px 0 12px;
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
    background: var(--color-primary);
    color: #cccccc;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-widget h4 {
    color: #ffffff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #444;
}

.footer-widget p,
.footer-widget ul {
    font-size: 0.88rem;
    line-height: 1.7;
    color: #aaaaaa;
}

.footer-widget ul { list-style: none; padding: 0; }
.footer-widget ul li { margin-bottom: 6px; }
.footer-widget ul li a { color: #aaaaaa; text-decoration: none; }
.footer-widget ul li a:hover { color: var(--color-accent); }

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: #777;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    gap: 8px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--color-border);
    font-size: 0.88rem;
    color: var(--color-text);
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.2s;
}

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

.pagination .current {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    #content-area {
        grid-template-columns: 1fr;
    }

    #sidebar {
        order: 2;
    }

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

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

@media (max-width: 600px) {
    #site-branding .site-title { font-size: 1.5rem; }

    #top-nav ul li a { padding: 10px 10px; font-size: 0.72rem; }

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

    .featured-post .post-title { font-size: 1.2rem; }

    .schedule-table { font-size: 0.85rem; }
    .schedule-table thead th,
    .schedule-table tbody td { padding: 8px 10px; }
}
