/*
Theme Name: BayFM Theme
Theme URI: https://bayfm.com
Author: Marty Z
Author URI: https://rt7.media
Description: A dark blue WordPress theme with light yellow highlights for BayFM
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bayfm-theme
*/

/* Color Scheme */
:root {
    --primary-dark-blue: #0a1929;
    --secondary-blue: #1e3a5f;
    --accent-blue: #2d4f7c;
    --light-yellow: #ffd966;
    --highlight-yellow: #ffeb99;
    --white: #ffffff;
    --text-light: #e8eaed;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--primary-dark-blue);
    color: var(--text-light);
    line-height: 1.6;
}

a {
    color: var(--light-yellow);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--highlight-yellow);
}

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

/* Header */
.site-header {
    background-color: var(--secondary-blue);
    padding: 20px 0;
    border-bottom: 3px solid var(--light-yellow);
}

.site-title {
    font-size: 2.5rem;
    color: var(--light-yellow);
    margin-bottom: 5px;
}

.site-description {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Navigation */
.main-navigation {
    background-color: var(--accent-blue);
    padding: 15px 0;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-navigation a {
    color: var(--text-light);
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 4px;
}

.main-navigation a:hover {
    background-color: var(--secondary-blue);
    color: var(--light-yellow);
}

/* Main Content */
.site-main {
    padding: 40px 0;
    min-height: 60vh;
}

article {
    background-color: var(--secondary-blue);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--light-yellow);
}

.entry-title {
    color: var(--light-yellow);
    font-size: 2rem;
    margin-bottom: 15px;
}

.entry-meta {
    color: var(--highlight-yellow);
    font-size: 0.9rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--accent-blue);
}

.entry-content {
    line-height: 1.8;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: var(--light-yellow);
    margin: 25px 0 15px;
}

.entry-content p {
    margin-bottom: 15px;
}

/* Footer */
.site-footer {
    background-color: var(--secondary-blue);
    border-top: 3px solid var(--light-yellow);
    padding: 30px 0;
    text-align: center;
    margin-top: 40px;
}

.site-footer p {
    color: var(--text-light);
}

/* Buttons */
.button,
button,
input[type="submit"] {
    background-color: var(--light-yellow);
    color: var(--primary-dark-blue);
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
    background-color: var(--highlight-yellow);
}

/* Sidebar */
.sidebar {
    background-color: var(--secondary-blue);
    padding: 20px;
    border-radius: 8px;
}

.widget {
    margin-bottom: 30px;
}

.widget-title {
    color: var(--light-yellow);
    font-size: 1.3rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-blue);
}

/* Responsive */
@media (max-width: 768px) {
    .site-title {
        font-size: 2rem;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 10px;
    }
    
    article {
        padding: 20px;
    }
}

/* ========================================
   WIGO DOMAIN COLOR OVERRIDES (wigo.rt7.media)
   Red and White Theme
   ======================================== */

/* WIGO Color Variables */
body.domain-wigo {
    --primary-dark-blue: #8B0000;      /* Dark Red (replaces dark blue) */
    --secondary-blue: #C41E3A;          /* Crimson Red (replaces secondary blue) */
    --accent-blue: #DC143C;             /* Crimson (replaces accent blue) */
    --light-yellow: #FFFFFF;            /* White (replaces light yellow) */
    --highlight-yellow: #F0F0F0;        /* Light Gray (replaces highlight yellow) */
    --white: #ffffff;
    --text-light: #ffffff;
}

/* WIGO Header */
body.domain-wigo .site-header {
    background-color: #C41E3A;          /* Crimson Red */
    border-bottom: 3px solid #FFFFFF;    /* White border */
}

body.domain-wigo .site-title {
    color: #FFFFFF;                      /* White title */
}

body.domain-wigo .site-title a {
    color: #FFFFFF;
}

body.domain-wigo .site-title a:hover {
    color: #F0F0F0;
}

body.domain-wigo .site-description {
    color: #FFFFFF;
}

/* WIGO Navigation */
body.domain-wigo .main-navigation {
    background-color: #8B0000;           /* Dark Red */
}

body.domain-wigo .main-navigation a {
    color: #FFFFFF;
}

body.domain-wigo .main-navigation a:hover {
    background-color: #C41E3A;           /* Crimson Red */
    color: #FFFFFF;
}

/* WIGO Main Content */
body.domain-wigo {
    background-color: #8B0000;           /* Dark Red background */
}

body.domain-wigo a {
    color: #FFFFFF;                      /* White links */
}

body.domain-wigo a:hover {
    color: #F0F0F0;                      /* Light gray on hover */
}

body.domain-wigo article {
    background-color: #C41E3A;           /* Crimson Red */
    border-left: 4px solid #FFFFFF;      /* White border */
}

body.domain-wigo .entry-title {
    color: #FFFFFF;
}

body.domain-wigo .entry-title a {
    color: #FFFFFF;
}

body.domain-wigo .entry-title a:hover {
    color: #F0F0F0;
}

body.domain-wigo .entry-meta {
    color: #FFFFFF;
    border-bottom: 1px solid #DC143C;    /* Crimson border */
}

body.domain-wigo .entry-content h2,
body.domain-wigo .entry-content h3,
body.domain-wigo .entry-content h4 {
    color: #FFFFFF;
}

/* WIGO Footer */
body.domain-wigo .site-footer {
    background-color: #C41E3A;           /* Crimson Red */
    border-top: 3px solid #FFFFFF;       /* White border */
}

body.domain-wigo .site-footer p {
    color: #FFFFFF;
}

body.domain-wigo .site-footer a {
    color: #FFFFFF;
    text-decoration: underline;
}

body.domain-wigo .site-footer a:hover {
    color: #F0F0F0;
}

/* WIGO Buttons */
body.domain-wigo .button,
body.domain-wigo button,
body.domain-wigo input[type="submit"] {
    background-color: #FFFFFF;           /* White buttons */
    color: #8B0000;                      /* Dark red text */
}

body.domain-wigo .button:hover,
body.domain-wigo button:hover,
body.domain-wigo input[type="submit"]:hover {
    background-color: #F0F0F0;           /* Light gray on hover */
    color: #8B0000;
}

/* WIGO Sidebar & Widgets */
body.domain-wigo .sidebar {
    background-color: #C41E3A;           /* Crimson Red */
}

body.domain-wigo .widget-title {
    color: #FFFFFF;
    border-bottom: 2px solid #DC143C;    /* Crimson border */
}

body.domain-wigo .widget a {
    color: #FFFFFF;
}

body.domain-wigo .widget a:hover {
    color: #F0F0F0;
}

/* WIGO Logo Styling */
body.domain-wigo .custom-logo img {
    max-width: 400px;
    height: auto;
}

/* WIGO Additional Element Overrides */
body.domain-wigo .no-results {
    background-color: #C41E3A;
    border-left: 4px solid #FFFFFF;
}

/* WIGO Pagination */
body.domain-wigo .posts-navigation a,
body.domain-wigo .post-navigation a {
    color: #FFFFFF;
}

body.domain-wigo .posts-navigation a:hover,
body.domain-wigo .post-navigation a:hover {
    color: #F0F0F0;
}

/* END WIGO DOMAIN OVERRIDES */

/*
WIGO Color Scheme Reference:
- Dark Red (Primary): #8B0000
- Crimson Red (Secondary): #C41E3A
- Crimson (Accent): #DC143C
- White (Highlights): #FFFFFF
- Light Gray (Hover): #F0F0F0
*/


/* ========================================
   HOMEPAGE LAYOUT STYLES
   ======================================== */

.site-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.site-main {
    flex: 1;
    min-width: 0;
}

.sidebar {
    flex: 0 0 350px;
    width: 350px;
}

/* Announcements Section */
.announcements-section {
    background-color: var(--secondary-blue);
    padding: 35px;
    margin-bottom: 40px;
    border-radius: 8px;
    border-left: 5px solid var(--light-yellow);
    line-height: 1.8;
}

.announcements-widget-area .announcement-widget {
    margin-bottom: 20px;
}

.announcements-widget-area .announcement-title {
    color: var(--light-yellow);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.announcements-placeholder {
    text-align: center;
    padding: 40px 20px;
}

.announcements-placeholder h2 {
    color: var(--light-yellow);
    margin-bottom: 10px;
}

/* News Section */
.news-section {
    margin-bottom: 40px;
}

.section-title {
    color: var(--light-yellow);
    font-size: 2rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent-blue);
}

.news-item {
    background-color: var(--secondary-blue);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--light-yellow);
}

.news-thumbnail {
    flex-shrink: 0;
    width: 200px;
}

.news-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.news-content {
    flex: 1;
}

.news-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-title a {
    color: var(--light-yellow);
    text-decoration: none;
}

.news-title a:hover {
    color: var(--highlight-yellow);
}

.news-meta {
    color: var(--highlight-yellow);
    font-size: 0.9rem;
    margin-bottom: 18px;
}

.news-excerpt {
    line-height: 1.8;
    margin-bottom: 18px;
}

.news-excerpt p {
    margin-bottom: 12px;
}

.read-more {
    display: inline-block;
    color: var(--light-yellow);
    font-weight: 600;
    text-decoration: none;
}

.read-more:hover {
    color: var(--highlight-yellow);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    padding: 8px 15px;
    background-color: var(--secondary-blue);
    color: var(--light-yellow);
    border-radius: 4px;
    text-decoration: none;
}

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

.pagination .current {
    background-color: var(--accent-blue);
    font-weight: bold;
}

/* Sidebar Styles */
.sidebar {
    position: sticky;
    top: 20px;
    align-self: flex-start;
}

.sidebar-section {
    background-color: var(--secondary-blue);
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 8px;
    border-left: 3px solid var(--light-yellow);
    line-height: 1.7;
}

.sidebar .widget-title {
    color: var(--light-yellow);
    font-size: 1.3rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-blue);
}

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

.sidebar li {
    padding: 8px 0;
    border-bottom: 1px solid var(--accent-blue);
}

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

.sidebar a {
    color: var(--text-light);
}

.sidebar a:hover {
    color: var(--light-yellow);
}

/* Ad Widget Styles */
.ad-widget {
    margin-bottom: 20px;
    text-align: center;
}

.ad-widget img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.ad-title {
    color: var(--light-yellow);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* Responsive Layout */
@media (max-width: 1100px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        position: static;
        width: 100%;
        flex: 1;
    }
}

@media (max-width: 768px) {
    .site-container {
        padding: 10px;
    }
    
    .announcements-section {
        padding: 20px;
    }
    
    .news-item {
        padding: 15px;
    }
}

/* WIGO Domain - Announcement Section Overrides */
body.domain-wigo .announcements-section {
    background-color: #C41E3A;           /* Crimson Red */
    border-left: 5px solid #FFFFFF;      /* White border */
}

body.domain-wigo .announcements-widget-area .announcement-title {
    color: #FFFFFF;
}

body.domain-wigo .announcements-placeholder h2 {
    color: #FFFFFF;
}

/* END HOMEPAGE LAYOUT STYLES */


/* Demo-specific styles */
.announcement-item {
    background-color: rgba(255,255,255,0.05);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 6px;
    border-left: 3px solid var(--light-yellow);
}

.announcement-item h3 {
    color: var(--light-yellow);
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.announcement-item p {
    line-height: 1.8;
    margin-bottom: 0;
}

body.domain-wigo .announcement-item {
    border-left: 3px solid #FFFFFF;
}

body.domain-wigo .announcement-item h3 {
    color: #FFFFFF;
}

.calendar-widget p,
.athlete-widget p,
.pet-widget p,
.weather-widget p {
    margin-bottom: 12px;
    line-height: 1.7;
}

.sidebar h3 {
    margin-bottom: 12px;
    line-height: 1.4;
}

.sidebar p strong {
    display: inline-block;
    margin-right: 5px;
}
