/*
Theme Name: Ham Radio
Author: Custom Build
Description: Custom lightweight theme for Ham Radio site with dynamic header, menu, and 4-column footer.
Version: 1.0
*/

/* Base Layout & Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.site-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* 1st Line: Header Graphic (1200px x 150px) */
.site-header {
    width: 100%;
    max-width: 1200px;
    height: auto;
    max-height: 150px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-header img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

/* 2nd Line: Centered Menu */
.main-navigation {
    background-color: #2c3e50;
    text-align: center;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 14px 20px;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.main-navigation a:hover {
    background-color: #34495e;
}

/* 3rd Line: Main Content Area */
.site-content {
    padding: 30px 20px;
    min-height: 400px;
}

/* 4th Line: 4-Column Footer */
.site-footer {
    background-color: #1a252f;
    color: #ffffff;
    padding: 40px 20px 20px 20px;
    border-top: 4px solid #34495e;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.footer-column h3, 
.footer-column h4 {
    color: #ecf0f1;
    margin-bottom: 15px;
    font-size: 1.1rem;
    border-bottom: 2px solid #34495e;
    padding-bottom: 5px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-column ul li a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #2c3e50;
    font-size: 0.85rem;
    color: #7f8c8d;
}

/* Footer Link Styling */
.footer-column ul li a,
.footer-column-widget ul li a,
.site-footer a {
    color: #ffffff !important; /* Forces link text to be bright white */
    text-decoration: none;
    transition: color 0.2s ease;
}

/* Footer Link Hover Effect */
.footer-column ul li a:hover,
.footer-column-widget ul li a:hover,
.site-footer a:hover {
    color: #00bc8c !important; /* Changes to a soft radio green on hover (change color if desired) */
    text-decoration: underline;
}

/* Mobile Responsive adjustment for Footer */
@media (max-width: 768px) {
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .footer-columns {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   G0WDA Mobile Responsiveness & Touch Optimization
   ========================================================================== */

/* Flexible Images and Media */
img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* Container & Layout Padding */
body {
    overflow-x: hidden;
}

.site-main, .container, .bbs-container, .qo-container, .build-container, .privacy-container {
    box-sizing: border-box;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Tablet & Mobile Breakpoint (768px and below) */
@media screen and (max-width: 768px) {

    /* Navigation Menu Stacking */
    .main-navigation ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    .main-navigation li {
        margin: 5px 0;
        width: 100%;
        text-align: center;
    }

    .main-navigation a {
        display: block;
        padding: 10px 15px;
    }

    /* Grids to Single Column */
    .bbs-grid, .qo-grid, .two-column-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    /* Table Responsiveness */
    .connection-table, .spec-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }

    .connection-table td, .spec-table td {
        padding: 8px 6px;
        font-size: 0.95rem;
    }

    /* Code Boxes & Terminal Displays */
    .code-box {
        display: inline-block;
        max-width: 100%;
        word-break: break-all;
        font-size: 0.85rem;
    }

    /* Card Padding Adjustments */
    .bbs-card, .qo-card, .build-card, .privacy-card {
        padding: 15px !important;
    }

    /* Hero Banners */
    .bbs-hero h1, .qo-hero h1 {
        font-size: 1.4rem !important;
    }

    .bbs-hero p, .qo-hero p {
        font-size: 0.95rem !important;
    }
}

/* Small Smartphone Breakpoint (480px and below) */
@media screen and (max-width: 480px) {
    .bbs-hero h1, .qo-hero h1 {
        font-size: 1.2rem !important;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.2rem; }
}