/*
Theme Name: BTFC Minimal
Description: A minimalistic theme for BTFC Stats with custom header and footer code options
Version: 1.0.0
Author: BTFC Stats Plugin
Text Domain: btfc-stats
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Container - Set reasonable max width that works with templates */
.container {
    max-width: 1200px; /* Match template system width */
    margin: 0 auto;
    padding: 0;
}

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d398c;
    text-decoration: none;
}

.site-title:hover {
    color: #1e2a5a;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation a:hover,
.main-navigation a:focus {
    color: #2d398c;
}

/* Mobile Navigation */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #2d398c;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-navigation ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid #e5e5e5;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .main-navigation ul.active {
        display: flex;
    }
    
    .main-navigation ul li {
        margin: 0.5rem 0;
    }
}

/* Main Content */
.site-main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

.content-area {
    /* Work with container width system */
    margin: 0 auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    color: #2d398c;
}

h2 {
    font-size: 2rem;
    color: #374151;
}

h3 {
    font-size: 1.5rem;
    color: #374151;
}

p {
    margin-bottom: 1rem;
    color: #666;
}

/* Links */
a {
    color: #2d398c;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1e2a5a;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #2d398c;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background: #1e2a5a;
    color: #fff;
}

.btn-secondary {
    background: #6b7280;
}

.btn-secondary:hover {
    background: #4b5563;
}

/* Footer */
.site-footer {
    background: #263141;
    border-top: 1px solid #e5e5e5;
    padding: 3rem 0 1rem 0;
    margin-top: 4rem;
    color: #ffffff;
}

.site-footer .container {
    color: #ffffff;
}

/* Footer Content - 3 Column Layout */
.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column {
    text-align: left;
}

.footer-column h3 {
    color: #FFC10C;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #FFC10C;
}

/* Footer Menu Styling */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 0.5rem;
}

.footer-menu a {
    display: block;
    padding: 0.25rem 0;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-menu a:hover {
    color: #FFC10C;
    padding-left: 0.5rem;
}

/* Footer Social Links */
.footer-social {
    margin-top: 1rem;
}

.footer-social .social-link {
    display: inline-block;
    margin-right: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.footer-social .social-link:hover {
    background: rgba(255, 193, 12, 0.2);
    color: #FFC10C;
    transform: translateY(-2px);
}

/* Sponsor Links */
.sponsor-links {
    margin-top: 1rem;
}

.sponsor-link {
    display: block;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

.sponsor-link:hover {
    background: rgba(255, 193, 12, 0.15);
    border-color: rgba(255, 193, 12, 0.3);
    color: #FFC10C;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 12, 0.2);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

/* Custom Footer Code Styling */
.custom-footer-code {
    background: #263141;
    color: #ffffff;
    padding: 2rem 0;
    margin-top: 4rem;
}

.custom-footer-code * {
    color: #ffffff;
}

.custom-footer-code a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.custom-footer-code a:hover {
    color: #FFC10C;
}

.footer-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.footer-menu a {
    color: #666;
    text-decoration: none;
}

.footer-menu a:hover {
    color: #2d398c;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Footer Responsive */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-social .social-link {
        margin: 0.25rem;
    }
}

/* Custom Code Areas */
.custom-header-code,
.custom-footer-code {
    margin: 1rem 0;
}

/* Full Width Banner for BTFC Header */
.btfc-full-width-banner {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    position: relative;
    z-index: 1000;
}

.btfc-full-width-banner .btfc-independent-menu {
    width: 100% !important;
    max-width: none !important;
}

.btfc-full-width-banner .btfc-menu-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
}

/* WordPress Specific */
.wp-block-group {
    margin-bottom: 2rem;
}

.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Accessibility */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Focus styles */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #2d398c;
    outline-offset: 2px;
}

/* Elementor widget styling is now handled by the plugin's widget options */