/* Pierrefonds Soccer Association - Custom Styles */

/* Custom Font Faces */
@font-face {
    font-family: 'Franklin Gothic';
    src: local('Franklin Gothic Medium'), local('Franklin Gothic'), local('Arial');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Header Logo - Positioned to overlap navigation */
.logo-container {
    position: relative;
    z-index: 50;
}

.header-logo {
    display: block;
    transition: height 0.3s ease;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

/* Club Name Styling */
.club-name {
    font-size: 1.5rem; /* 24px */
    color: #001489;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1;
    margin-bottom: 0;
}

/* Club Tagline Styling */
.club-tagline {
    font-size: 0.875rem; /* 14px */
    color: #6B7280; /* Gray-500 */
    font-weight: 500;
    letter-spacing: 0.3px;
    margin-top: 0.125rem; /* 2px gap */
}

/* Desktop - Larger text */
@media (min-width: 1280px) {
    .club-name {
        font-size: 1.75rem; /* 28px */
    }
    
    .club-tagline {
        font-size: 1rem; /* 16px */
    }
}

/* Navigation adjustment to accommodate overlapping logo */
nav {
    position: relative;
    z-index: 40; /* Higher than logo (30) and hero section */
    margin-top: -30px; /* Pull nav up so logo overlaps */
}

.nav-menu-container {
    padding-left: 180px; /* Space for the logo + name */
}

/* Large desktop - more space for name */
@media (min-width: 1280px) {
    .nav-menu-container {
        padding-left: 220px;
    }
}

/* Tablet adjustments */
@media (max-width: 1023px) and (min-width: 768px) {
    nav {
        margin-top: -20px;
    }
    
    .nav-menu-container {
        padding-left: 160px; /* Just logo on tablet */
    }
}

/* Mobile adjustments - no overlap on mobile */
@media (max-width: 767px) {
    nav {
        margin-top: 0; /* No overlap on mobile */
    }
    
    .nav-menu-container {
        padding-left: 0 !important;
    }
    
    .header-logo {
        height: 3rem !important; /* Smaller logo on mobile */
    }
}

/* Hero Banner Section */
.hero-banner {
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/banner.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 2;
}

/* Ensure hero content is above background and overlay */
.hero-banner .container {
    position: relative;
    z-index: 10;
}

/* Dropdown menus need high z-index */
nav [x-show] {
    z-index: 50 !important;
}

/* Ensure dropdowns appear above everything */
nav .absolute {
    z-index: 50 !important;
}

/* Hero section should be below navigation */
.hero-banner {
    position: relative;
    z-index: 5;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Franklin Gothic', Arial, Helvetica, sans-serif;
    background-color: #F5F5F5;
    color: #000;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Swiper Gallery Customization */
.gallery-swiper {
    padding-bottom: 50px;
}

.gallery-swiper .swiper-pagination-bullet {
    background: #001489;
    opacity: 0.5;
}

.gallery-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: #41980A;
}

.gallery-swiper .swiper-button-next,
.gallery-swiper .swiper-button-prev {
    color: #001489;
}

.gallery-swiper .swiper-button-next:hover,
.gallery-swiper .swiper-button-prev:hover {
    color: #41980A;
}

/* Active Navigation Link */
nav a.active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #F5F5F5;
}

::-webkit-scrollbar-thumb {
    background: #001489;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #41980A;
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #41980A;
    outline-offset: 2px;
}

/* Skip to Main Content Link for Screen Readers */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: #001489;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-main:focus {
    top: 0;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Print Styles */
@media print {
    header, footer, nav, .no-print {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Custom Details/Summary Styling */
details summary::-webkit-details-marker {
    display: none;
}

details[open] summary {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Utility Classes */
.container {
    max-width: 1280px;
}

.text-balance {
    text-wrap: balance;
}

/* Custom form styles */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
select,
textarea {
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    border-color: #001489;
    box-shadow: 0 0 0 3px rgba(0, 20, 137, 0.1);
}

/* Prose content styling for content pages */
.prose {
    max-width: 65ch;
}

.prose h2 {
    margin-top: 2em;
    margin-bottom: 1em;
}

.prose p {
    margin-bottom: 1.25em;
}

.prose ul, .prose ol {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    padding-left: 1.625em;
}

.prose li {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}
