/**
 * Custom Styles for yourpickleball.ie
 */

:root {
    /* Algarve-inspired color palette */
    --primary-color: #0080A3; /* Deep ocean blue */
    --secondary-color: #FF6B35; /* Warm orange */
    --accent-color: #FFD23F; /* Sunny yellow */
    --sand-color: #F4E4BC; /* Sandy beige */
    --ocean-dark: #006994; /* Deep blue */
    --success-color: #198754;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    padding-top: 0; /* No padding for full-screen hero */
    color: #333;
}

body:not(.home-page) {
    padding-top: 76px; /* Account for fixed navbar on other pages */
}

/* Ensure navbar is visible over hero */
.navbar {
    z-index: 1030;
}

/* Navbar adjustments */
.navbar {
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.1);
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
    color: var(--dark-color) !important;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

/* Hero Section - Full Screen Banner */
.hero-section {
    background-image: url('/assets/images/algarve01.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 128, 163, 0.75) 0%, rgba(0, 105, 148, 0.8) 50%, rgba(255, 107, 53, 0.7) 100%);
    z-index: 1;
}



.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(244, 228, 188, 0.3));
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-section .hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-section h1 {
    color: white;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 0, 0, 0.3);
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-section .hero-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.75rem;
    font-weight: 300;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.35rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    margin-bottom: 2.5rem;
}

.hero-section .btn-hero {
    background: rgba(255, 255, 255, 0.95);
    color: var(--ocean-dark);
    border: none;
    padding: 1rem 3rem;
    font-size: 1.25rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.hero-section .btn-hero:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    color: var(--ocean-dark);
}

/* Hero Logo */
.hero-logo {
    animation: fadeInDown 1s ease-out;
}

.hero-logo-img {
    max-width: 300px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-image-placeholder,
.feature-image-placeholder {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.card .bi {
    color: var(--primary-color);
}

.section-bg-algarve {
    background: linear-gradient(to bottom, var(--sand-color), #ffffff);
}

/* Map Container */
.map-container {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2) !important;
}

.map-container iframe {
    display: block;
    width: 100%;
    border: none;
}

#location {
    scroll-margin-top: 76px;
}

/* Form Styles */
#contact {
    scroll-margin-top: 76px; /* Account for fixed navbar */
}

/* Success Message Styles */
#success-message {
    padding: 2rem 0;
    animation: fadeIn 0.5s ease-in;
}

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

#success-message h3 {
    font-weight: 700;
}

#success-message .lead {
    color: var(--dark-color);
    font-size: 1.1rem;
}

#make-another-submission {
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
}

#contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

#contact-form .form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

#contact-form .invalid-feedback {
    display: block;
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--ocean-dark);
    border-color: var(--ocean-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 105, 148, 0.4);
}

.btn-secondary-custom {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-secondary-custom:hover {
    background-color: #e55a2b;
    border-color: #e55a2b;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

/* Form Messages */
#form-messages {
    margin-bottom: 1.5rem;
}

#form-messages.alert-success {
    background-color: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
}

#form-messages.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c2c7;
    color: #842029;
}

/* Footer */
footer {
    margin-top: auto;
}

footer a:hover {
    color: var(--primary-color) !important;
    text-decoration: underline !important;
}

/* Section Spacing */
section {
    scroll-margin-top: 76px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        padding: 2rem 0;
        background-attachment: scroll; /* Disable fixed attachment on mobile for better performance */
    }
    
    .hero-logo-img {
        max-width: 200px;
    }
    
    .hero-section h1 {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
    
    .hero-section .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .hero-section .btn-hero {
        padding: 0.875rem 2rem;
        font-size: 1.1rem;
    }
    
    .navbar-logo {
        height: 40px;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .display-6 {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    .hero-logo-img {
        max-width: 150px;
    }
    
    .hero-section h1 {
        font-size: 2.25rem;
    }
    
    .hero-section .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .navbar-logo {
        height: 35px;
    }
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Smooth transitions */
* {
    transition: color 0.2s ease, background-color 0.2s ease;
}

/* Accessibility */
:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Cookie Notice Modal */
.cookie-modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.cookie-modal-content .modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--ocean-dark));
    color: white;
    border-radius: 20px 20px 0 0;
    padding: 1.5rem;
}

.cookie-modal-content .modal-title {
    color: white;
    font-weight: 600;
    font-size: 1.5rem;
}

.cookie-modal-content .modal-body {
    padding: 1.5rem;
    color: var(--dark-color);
}

.cookie-modal-content .modal-footer {
    padding: 1rem 1.5rem 1.5rem;
}

.cookie-summary {
    background: var(--light-color);
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.cookie-summary ul li {
    font-size: 0.9rem;
    line-height: 1.6;
}

#cookieModal .btn {
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
}

#cookieModal .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

#cookieModal .btn-primary:hover {
    background-color: var(--ocean-dark);
    border-color: var(--ocean-dark);
}

#cookieModal .btn-outline-secondary {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

#cookieModal .btn-outline-secondary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

/* Privacy Policy Modal */
.privacy-policy-modal {
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.privacy-policy-modal .modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--ocean-dark));
    color: white;
    border-radius: 20px 20px 0 0;
    padding: 1.5rem;
}

.privacy-policy-modal .modal-title {
    color: white;
    font-weight: 600;
    font-size: 1.5rem;
}

.privacy-policy-modal .btn-close {
    filter: invert(1);
    opacity: 0.9;
}

.privacy-policy-modal .btn-close:hover {
    opacity: 1;
}

.privacy-policy-modal .modal-body {
    padding: 2rem;
    color: var(--dark-color);
    max-height: 70vh;
}

.privacy-policy-modal .modal-body h6 {
    margin-top: 1.5rem;
}

.privacy-policy-modal .modal-body h6:first-of-type {
    margin-top: 0;
}

.privacy-policy-modal .modal-body ul {
    padding-left: 1.5rem;
}

.privacy-policy-modal .modal-body ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.privacy-policy-modal .modal-footer {
    padding: 1rem 2rem 1.5rem;
}

.privacy-policy-modal .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
}

.privacy-policy-modal .btn-primary:hover {
    background-color: var(--ocean-dark);
    border-color: var(--ocean-dark);
}

footer a:hover {
    color: var(--accent-color) !important;
    text-decoration: underline !important;
}

/* Print styles */
@media print {
    .navbar,
    footer,
    #contact,
    #cookieModal {
        display: none;
    }
    
    body {
        padding-top: 0;
    }
}

