/* Standardized Header Styling for All Pages */

/* Base header styles */
.header {
    background: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px; /* Fixed height for consistency */
    min-height: 80px; /* Ensure minimum height */
    box-sizing: border-box;
}

/* Standardized header for all pages */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 77, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    height: 80px !important;
    min-height: 80px !important;
    box-sizing: border-box;
    padding-left: 0 !important;
    margin-left: 0 !important;
    padding-top: 1rem;
}

.header-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.coach-joel-brand {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.8rem;
    color: #004d00;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #004d00 0%, #006600 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    text-decoration: none;
    cursor: pointer;
    padding-left: 0;
}

.coach-joel-brand:hover {
    transform: scale(1.05);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, #006600 0%, #28a745 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Standardized main content margin for all pages */
.main-content {
    margin-top: 100px; /* Consistent margin for all pages */
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

/* Ensure consistent header styling across all pages */
header {
    height: 80px !important;
    min-height: 80px !important;
}

.header-content {
    height: 100% !important;
}

/* Override any conflicting margin-top values */
.main-content,
.hero,
.container {
    margin-top: 100px !important;
}

/* Header content sections */
.header-left {
    flex: 1;
}

.header-center {
    flex: 2;
    display: flex;
    justify-content: center;
}

.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.logo {
    display: flex;
    align-items: center;
    color: #004d00;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo i {
    margin-right: 10px;
    font-size: 1.8rem;
}

.main-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.main-nav a {
    color: #004d00;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.main-nav a:hover {
    background-color: #004d00;
    color: white;
}

.main-nav i {
    font-size: 1.1rem;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-menu a {
    color: #004d00;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 100px;
}

.user-menu a:hover {
    background-color: #004d00;
    color: white;
}

.user-menu i {
    margin-left: 5px;
    order: 2;
}

.user-menu span {
    order: 1;
}

/* Mobile Navigation Styles */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #004d00;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.mobile-nav-toggle:hover {
    background-color: rgba(0, 77, 0, 0.1);
}

.mobile-nav-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 77, 0, 0.3);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 77, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.mobile-nav.active {
    transform: translateY(0);
}

.mobile-nav-content {
    padding: 1rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav a {
    color: #004d00;
    text-decoration: none;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    border: 1px solid transparent;
}

.mobile-nav a:hover {
    background-color: rgba(0, 77, 0, 0.1);
    border-color: rgba(0, 77, 0, 0.2);
}

.mobile-nav a i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

/* Responsive design */
@media (max-width: 1200px) {
    .main-nav {
        gap: 1rem;
    }
    
    .main-nav a {
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 992px) {
    .header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-left,
    .header-center,
    .header-right {
        width: 100%;
        justify-content: center;
    }
    
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .user-menu {
        justify-content: center;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    header {
        height: 70px !important;
        min-height: 70px !important;
    }
    
    .header-content {
        padding: 0.75rem 1rem;
    }
    
    .coach-joel-brand {
        font-size: 1.4rem;
        letter-spacing: 0.5px;
    }
    
    .main-content {
        margin-top: 90px !important;
    }
    
    /* Show mobile nav toggle */
    .mobile-nav-toggle {
        display: block;
    }
    
    /* Hide desktop nav */
    .nav-buttons {
        display: none !important;
    }
    
    /* Show mobile nav when active */
    .mobile-nav {
        display: block;
    }
    
    .mobile-nav.active {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    header {
        height: 60px !important;
        min-height: 60px !important;
    }
    
    .header-content {
        padding: 0.5rem 0.5rem;
    }
    
    .coach-joel-brand {
        font-size: 1.2rem;
        letter-spacing: 0.3px;
    }
    
    .main-content {
        margin-top: 80px !important;
    }
    
    .mobile-nav-content {
        padding: 1rem 1rem;
    }
    
    .mobile-nav a {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 360px) {
    .coach-joel-brand {
        font-size: 1.1rem;
        letter-spacing: 0.2px;
    }
    
    .mobile-nav-toggle {
        font-size: 1.3rem;
        padding: 0.4rem;
    }
    
    .mobile-nav-content {
        padding: 0.75rem 0.75rem;
    }
    
    .mobile-nav a {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
}

.content-aligned {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
    box-sizing: border-box;
}

.container {
    width: 100%;
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .mobile-nav a:hover {
        background-color: transparent;
        border-color: transparent;
    }
    
    .mobile-nav a:active {
        background-color: rgba(0, 77, 0, 0.1);
        border-color: rgba(0, 77, 0, 0.2);
    }
    
    .mobile-nav-toggle:hover {
        background-color: transparent;
    }
    
    .mobile-nav-toggle:active {
        background-color: rgba(0, 77, 0, 0.1);
    }
} 