/*
Theme Name: W8BAP SVARC Custom
Description: A custom, high-contrast theme for the Scioto Valley Amateur Radio Club
Author: William
Version: 1.0
Text Domain: w8bap
*/

/* --- Global Variables --- */
:root {
    /* Color Palette */
    --bg-main: #f4f4f5;         /* Soft off-white to prevent eye strain */
    --bg-structure: #27272a;    /* Deep charcoal for headers/footers */
    --text-main: #18181b;       /* Off-black for highly readable paragraphs */
    --text-light: #f8fafc;      /* White text for dark backgrounds */
    --svarc-red: #dc2626;       /* Vibrant red for calls-to-action */
    --border-color: #e4e4e7;    /* Light gray for tables and gallery borders */

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

/* --- Base Reset & Typography --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--bg-structure);
    margin-bottom: 1rem;
}

a {
    color: var(--svarc-red);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: #991b1b; /* Slightly darker red on hover */
}

/* Base button styling */
.btn-primary {
    background-color: var(--svarc-red);
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 4px;
    display: inline-block;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #b91c1c;
    color: var(--text-light);
}/* --- Global Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    background-color: var(--bg-structure);
    /* You can add a background image here later: background-image: url('images/hero-bg.jpg'); */
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    padding: 100px 0;
    text-align: center;
    border-bottom: 5px solid var(--svarc-red);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(39, 39, 42, 0.85); /* Dark charcoal overlay for text readability */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.hero-callsign {
    font-size: 2.5rem;
    color: var(--svarc-red);
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    color: #d4d4d8; /* Light gray for subtitle */
}

/* --- Hero Buttons --- */
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-weight: 500;
}

.btn-secondary:hover {
    background-color: var(--border-color);
    color: var(--bg-structure);
}

.donate-btn {
    background-color: #b91c1c; /* Slightly deeper red to stand out */
    border: 2px solid #b91c1c;
}

/* --- Quick Info Bar --- */
.quick-info-bar {
    background-color: var(--bg-structure);
    color: var(--text-light);
    padding: 15px 0;
    font-size: 1.1rem;
}

.quick-info-bar .container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
}

/* --- Latest News Section --- */
.latest-news {
    padding: 60px 20px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--bg-structure);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: #ffffff; /* White card against the off-white main background */
    padding: 25px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); /* Soft drop shadow */
}

.news-title a {
    color: var(--bg-structure);
    font-size: 1.3rem;
}

.news-title a:hover {
    color: var(--svarc-red);
}

.news-meta {
    font-size: 0.9rem;
    color: #71717a; /* Medium gray */
    margin-bottom: 15px;
}/* --- Header Styles --- */
.site-header {
    background-color: var(--bg-structure); /* Deep charcoal */
    padding: 15px 0;
    border-bottom: 4px solid var(--svarc-red); /* Red accent line */
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header-logo {
    max-height: 60px;
    width: auto;
    display: block;
    /* This next line turns the black parts of your image white! */
    filter: invert(1) brightness(2); 
}

/* --- Navigation Menu Styles --- */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 1.1rem;
    padding: 5px 10px;
}

.main-navigation a:hover {
    color: var(--svarc-red);
}

/* --- Footer Styles --- */
.site-footer {
    background-color: var(--bg-structure);
    color: var(--text-light);
    padding-top: 40px;
    margin-top: 60px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-info h4 {
    color: var(--text-light);
    margin-bottom: 5px;
}

.footer-info p {
    color: var(--svarc-red);
    font-weight: bold;
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

.footer-links a {
    color: #d4d4d8;
}

.footer-links a:hover {
    color: var(--svarc-red);
}

.footer-bottom {
    background-color: #18181b; /* Slightly darker than the main footer bg */
    text-align: center;
    padding: 15px 0;
    font-size: 0.9rem;
    color: #a1a1aa;
}

.footer-logo {
    max-height: 50px;
    margin-bottom: 15px;
    display: block;
    filter: invert(1) brightness(2);
}
/* --- Page Header (Reusable for other pages) --- */
.page-header {
    background-color: var(--bg-structure);
    color: var(--text-light);
    padding: 60px 0;
    text-align: center;
    border-bottom: 4px solid var(--svarc-red);
    margin-bottom: 40px;
}

.page-title {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.page-subtitle {
    color: #d4d4d8;
    font-size: 1.1rem;
}

/* --- Content & WP Editor Area --- */
.about-content {
    margin-bottom: 60px;
}

.content-wrapper {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Styles to make WP Image Galleries look cohesive */
.content-wrapper .wp-block-gallery {
    margin-top: 30px;
    margin-bottom: 30px;
}

.content-wrapper img {
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

/* --- Club Officers Grid --- */
.club-officers {
    padding: 60px 0;
}

.officer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.officer-card {
    background-color: var(--bg-structure);
    color: var(--text-light);
    padding: 25px;
    border-radius: 6px;
    text-align: center;
    border-bottom: 4px solid var(--svarc-red);
}

.officer-role {
    color: var(--svarc-red);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.officer-name {
    font-size: 1.1rem;
    font-weight: 500;
}

/* --- Support / Donations Section --- */
.support-club {
    background-color: #e4e4e7; /* Slightly darker gray to contrast with main background */
    padding: 60px 0;
    border-top: 1px solid #d4d4d8;
    border-bottom: 1px solid #d4d4d8;
    margin-bottom: 60px;
}

.support-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.support-text {
    flex: 1;
    min-width: 300px;
}

.support-text h2 {
    margin-bottom: 15px;
}

.donate-btn-large {
    font-size: 1.2rem;
    padding: 15px 30px;
    box-shadow: 0 4px 6px rgba(220, 38, 38, 0.3); /* Subtle red glow shadow */
}
/* --- Silent Keys Archive (Roster) --- */
.silent-keys-roster {
    margin-bottom: 60px;
}

.sk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.sk-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

/* Make profile pictures circular and uniform */
.sk-photo, .sk-photo-placeholder {
    margin-bottom: 15px;
    align-self: center;
}

.sk-photo img {
    border-radius: 50%;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 3px solid var(--bg-structure);
}

.sk-photo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.sk-name {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.sk-name a {
    color: var(--bg-structure);
}

.sk-name a:hover {
    color: var(--svarc-red);
}

.sk-excerpt {
    color: #52525b;
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes the button to the bottom of the card */
}

/* --- Updated Silent Key Button --- */
.sk-btn {
    align-self: center;
    font-size: 0.95rem;
    padding: 10px 20px;
    background-color: var(--svarc-red);
	color: var(--text-light) !important;
    border: none;
    border-radius: 4px;
    font-weight: 600; /* Made slightly bolder to read easier against red */
    transition: all 0.2s ease-in-out;
}

.sk-btn:hover {
    background-color: #b91c1c; /* Darker red on hover */
    color: var(--text-light) !important; /* Switches to white text on hover for a nice effect */
}

/* --- Single Silent Key (Individual Memorial) --- */
.sk-single-content {
    margin-bottom: 60px;
    max-width: 800px; /* Kept narrower for easier reading */
    margin-left: auto;
    margin-right: auto;
}

.sk-tribute-box {
    text-align: left;
}

.sk-featured-image {
    text-align: center;
    margin-bottom: 30px;
}

.sk-featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.sk-bio {
    font-size: 1.1rem;
}

.sk-back-link {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}
/* --- Data Tables (Repeaters & NCS) --- */
.table-responsive {
    overflow-x: auto; /* Ensures tables don't break on mobile screens */
    margin-bottom: 60px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.data-table thead {
    background-color: var(--bg-structure);
    color: var(--text-light);
}

.data-table th, 
.data-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

/* Alternating row colors for easy reading */
.data-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.data-table tbody tr:hover {
    background-color: #f1f5f9; /* Slight highlight when hovering over a row */
}

/* Status Indicator Pill */
.status-online {
    background-color: #16a34a; /* Green */
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* --- Net Schedule Grid --- */
.net-schedule {
    margin-bottom: 60px;
}

.net-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.net-card {
    background-color: #ffffff;
    border-left: 5px solid var(--svarc-red); /* Red accent bar on the left */
    padding: 25px;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.net-time {
    color: var(--svarc-red);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.net-name {
    font-size: 1.4rem;
    color: var(--bg-structure);
    margin-bottom: 5px;
}

.net-freq {
    font-weight: 500;
    color: #52525b;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.net-desc {
    font-size: 1rem;
    line-height: 1.5;
}

/* --- NCS Section Adjustments --- */
.ncs-wrapper {
    margin-bottom: 60px;
}

.ncs-intro {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* --- Special Interests Grid --- */
.special-interests {
    margin-bottom: 60px;
}

.interest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.interest-card {
    background-color: #ffffff;
    border-top: 4px solid var(--bg-structure);
    padding: 30px;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.2s ease;
}

.interest-card:hover {
    transform: translateY(-5px);
    border-top-color: var(--svarc-red);
}

.interest-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.interest-title {
    color: var(--bg-structure);
    margin-bottom: 15px;
}

/* --- Annual Events Section --- */
.annual-events {
    background-color: #e4e4e7;
    padding: 60px 0;
    margin-bottom: 60px;
    border-top: 1px solid #d4d4d8;
    border-bottom: 1px solid #d4d4d8;
}

.event-list {
    max-width: 800px;
    margin: 0 auto;
}

.event-item {
    display: flex;
    background-color: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.event-date {
    background-color: var(--svarc-red);
    color: var(--text-light);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    text-align: center;
}

.event-details {
    padding: 20px 25px;
}

.event-details h3 {
    margin-bottom: 5px;
    color: var(--bg-structure);
}

.event-details p {
    margin: 0;
    color: #52525b;
}

/* Make event list stack nicely on mobile screens */
@media (max-width: 600px) {
    .event-item {
        flex-direction: column;
    }
    .event-date {
        min-width: 100%;
        padding: 15px;
    }
}
/* --- Dynamic Projects Grid --- */
.projects-feed {
    margin-bottom: 80px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.project-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid var(--svarc-red);
    display: block;
}

.project-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.project-title a {
    color: var(--bg-structure);
}

.project-title a:hover {
    color: var(--svarc-red);
}

.project-excerpt {
    color: #52525b;
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes the button to the bottom */
}

.read-more-btn {
    align-self: flex-start;
    font-size: 0.9rem;
    padding: 8px 16px;
}
/* --- Contact Page Layout --- */
.contact-section {
    margin-bottom: 80px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Makes the form column twice as wide as the info column */
    gap: 40px;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr; /* Stacks everything neatly on mobile */
    }
}

.contact-info h2, .contact-form-area h2 {
    color: var(--bg-structure);
    margin-bottom: 20px;
    border-bottom: 3px solid var(--svarc-red);
    display: inline-block;
    padding-bottom: 5px;
}

.contact-info p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.social-links h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--bg-structure);
}

.social-links a {
    display: inline-block;
    margin-bottom: 10px;
}

/* --- Global Form Styling (Forces WP Plugins to match theme) --- */
.wp-form-container input[type="text"],
.wp-form-container input[type="email"],
.wp-form-container textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: #f8fafc;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-main);
}

.wp-form-container input[type="text"]:focus,
.wp-form-container input[type="email"]:focus,
.wp-form-container textarea:focus {
    outline: none;
    border-color: var(--svarc-red);
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}

.wp-form-container textarea {
    min-height: 150px;
    resize: vertical;
}

/* Styles the submit button to match your primary buttons */
.wp-form-container input[type="submit"],
.wp-form-container button[type="submit"] {
    background-color: var(--svarc-red);
    color: var(--text-light);
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.wp-form-container input[type="submit"]:hover,
.wp-form-container button[type="submit"]:hover {
    background-color: #b91c1c;
}

/* --- Mobile Menu Toggle Button (Hidden on Desktop) --- */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 2rem;
    cursor: pointer;
    padding: 5px 10px;
}

/* --- Mobile Responsiveness (Applies only to screens smaller than 768px) --- */
@media (max-width: 768px) {
    
    /* 1. Shrink giant text and paddings */
    .hero-title { font-size: 2rem; }
    .hero-callsign { font-size: 2rem; }
    .hero-section { padding: 60px 0; }
    .page-header { padding: 40px 0; margin-bottom: 30px; }
    .page-title { font-size: 2rem; }
    
    .quick-info-bar .container { flex-direction: column; text-align: center; }
    .hero-actions { flex-direction: column; }
    .btn-secondary, .btn-primary { width: 100%; text-align: center; }

    /* 2. Activate the Mobile Navigation */
    .mobile-menu-toggle {
        display: block; /* Show the hamburger icon */
    }

    .main-navigation {
        display: none; /* Hide the standard menu */
        width: 100%;
        background-color: #18181b; /* Slightly darker than header for contrast */
        margin-top: 15px;
        border-radius: 4px;
    }

    /* This class is added by Javascript when the button is clicked */
    .main-navigation.is-active {
        display: block; 
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }

    .main-navigation a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid #27272a;
        text-align: center;
    }

    /* 3. Adjust Footer */
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links ul {
        justify-content: center;
        flex-wrap: wrap;
    }
}