/**
 * BTFC Header Template Styles
 * 
 * Styles for the header template that displays the independent menu system
 * at the top of every page. Includes responsive design and optional sticky behavior.
 * 
 * RESPONSIVE BREAKPOINTS: Uses standardized values from breakpoints.css
 * - Mobile and smaller: max-width: 768px
 * - Small mobile only: max-width: 480px
 * 
 * @package BTFC_Stats
 * @since 1.0.0
 */

/* ============================================================================
   SECTION 1: BASE CONTAINER & LAYOUT
   ============================================================================
   Description: Main header container and layout settings
   ============================================================================ */

/* Header Template Container */
.btfc-header-template {
    width: 100%;
    position: relative;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Header Container */
.btfc-header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    transition: all 0.3s ease;
}

/* Sticky Header Behavior */
.btfc-header-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .btfc-header-container {
        padding: 0 15px;
    }
    
    .btfc-header-sticky {
        padding: 0;
    }
}

@media (max-width: 480px) {
    .btfc-header-container {
        padding: 0 10px;
    }
}

/* Header Template Variations */
.btfc-header-template.compact {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btfc-header-template.compact .btfc-header-container {
    padding: 10px 20px;
}

.btfc-header-template.full-width .btfc-header-container {
    max-width: none;
    padding: 0;
}

/* Dark Theme Support */
.btfc-header-template.dark-theme {
    background: #1a1a1a;
    color: #ffffff;
}

.btfc-header-template.dark-theme.btfc-header-sticky {
    background: rgba(26, 26, 26, 0.95);
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btfc-header-template {
        border-bottom: 2px solid #000000;
    }
    
    .btfc-header-sticky {
        border-bottom: 3px solid #000000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .btfc-header-container {
        transition: none;
    }
    
    .btfc-header-sticky {
        animation: none;
    }
    
    @keyframes slideDown {
        from, to {
            transform: none;
            opacity: 1;
        }
    }
}

/* Print Styles */
@media print {
    .btfc-header-template {
        position: static;
        box-shadow: none;
        background: transparent;
    }
    
    .btfc-header-sticky {
        position: static;
        background: transparent;
        backdrop-filter: none;
        box-shadow: none;
    }
}

/* Focus Management for Accessibility */
.btfc-header-template:focus-within {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Integration with Independent Menu */
.btfc-header-template .btfc-independent-menu {
    margin: 0;
    border: none;
    box-shadow: none;
}

/* Custom Class Support */
.btfc-header-template.custom-header {
    /* Allow for custom styling via additional classes */
}

.btfc-header-template.custom-header .btfc-header-container {
    /* Custom container styling */
}
