/* Custom CSS for Ashperton and Norbury Fishing Lake */

/* Global Styles */
body {
    background: linear-gradient(135deg, #dbeafe 0%, #dcfce7 100%);
    min-height: 100vh;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #2563eb 0%, #16a34a 100%);
    padding: 6rem 0;
    position: relative;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

/* Feature Cards */
.feature-card {
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    height: 100%;
}

.feature-card .card-body > * {
    width: 100%;
}

.feature-card .card-body > *:first-child {
    margin-bottom: 1.5rem;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card .card-body h5 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    min-height: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card .card-body p {
    margin-bottom: 0;
    line-height: 1.6;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

/* Fish logo specific styling */
.fish-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
}

.fish-logo svg {
    width: 64px;
    height: 64px;
}

/* Icon container for consistent sizing */
.icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    width: 100%;
}

.icon-container .bi {
    font-size: 4rem;
    line-height: 1;
}

/* Lake Cards */
.lake-card {
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.lake-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #2563eb 0%, #16a34a 100%);
}

.lake-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.lake-card .card-body {
    position: relative;
    z-index: 1;
}

/* Booking Form Styles */
.booking-type-option {
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.booking-type-option:hover {
    border-color: #2563eb;
    background-color: rgba(37, 99, 235, 0.05);
}

.booking-type-option.selected {
    border-color: #2563eb;
    background-color: rgba(37, 99, 235, 0.1);
}

.lake-selection-option {
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
}

.lake-selection-option:hover {
    border-color: #16a34a;
    background-color: rgba(22, 163, 74, 0.05);
}

.lake-selection-option.selected {
    border-color: #16a34a;
    background-color: rgba(22, 163, 74, 0.1);
}

/* Admin Pricing Styles */
.pricing-calculator {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 0.5rem;
    padding: 1rem;
}

.pricing-analysis {
    font-size: 0.875rem;
}

.pricing-analysis .text-success {
    font-weight: 600;
}

.pricing-analysis .text-danger {
    font-weight: 600;
}

/* Form validation styles */
.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-valid {
    border-color: #198754;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

/* Pricing card enhancements */
.card .card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid #cbd5e1;
}

.card .card-header h6 {
    color: #475569;
    font-weight: 600;
}

/* Special pricing options styling */
.special-pricing-option {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
    transition: all 0.3s ease;
}

.special-pricing-option:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

/* Page Navigation */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Form Styles */
.form-control, .form-select {
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
}

.form-control:focus, .form-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: white;
    color: #2563eb;
}

/* Badge Styles */
.badge {
    border-radius: 0.375rem;
    font-weight: 500;
}

.badge.bg-success {
    background-color: #dcfce7 !important;
    color: #166534 !important;
}

/* Table Styles */
.table {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
}

.table th {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
    color: #374151;
}

.table td {
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

/* Navigation Tabs */
.nav-tabs .nav-link {
    border: none;
    color: #6b7280;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.05);
}

.nav-tabs .nav-link.active {
    color: #2563eb;
    background: white;
    border-bottom: 2px solid #2563eb;
}

/* Toast Styles */
.toast {
    background: white;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
}

.toast-header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
}

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

/* Alert Styles */
.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #1e40af;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #92400e;
}

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

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

/* Icon Styles */
.bi {
    line-height: 1;
}

/* Footer Styles */
footer {
    background: #1f2937 !important;
}

footer a:hover {
    color: white !important;
}

/* Admin Dashboard Specific Styles */
.admin-stats-card {
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Booking Form Specific Styles */
.availability-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 0.5rem;
    padding: 1rem;
}

/* Blog Card Styles */
.blog-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Testimonial Styles */
.testimonial-card {
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Utility Classes */
.text-primary {
    color: #2563eb !important;
}

.bg-primary {
    background-color: #2563eb !important;
}

.border-primary {
    border-color: #2563eb !important;
}

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

/* Focus Styles for Accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus,
.nav-link:focus,
.navbar-toggler:focus {
    outline: 3px solid #2563eb;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

/* High contrast focus for better visibility */
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.nav-link:focus-visible {
    outline: 3px solid #000;
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #2563eb;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1001;
}

.skip-link:focus {
    top: 6px;
}

/* Improved color contrast */
.text-muted {
    color: #6c757d !important;
}

/* Better form validation styling */
.form-control:invalid {
    border-color: #dc3545;
}

.form-control:invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Improved button contrast */
.btn-primary {
    color: white !important;
}

.btn-outline-light {
    color: white !important;
    border-color: white !important;
}

/* Better link contrast */
a {
    color: #2563eb;
}

a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Improved table accessibility */
.table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #374151;
}

/* Better alert styling */
.alert {
    border-left: 4px solid;
}

.alert-info {
    border-left-color: #2563eb;
}

.alert-warning {
    border-left-color: #f59e0b;
}

.alert-success {
    border-left-color: #10b981;
}

.alert-danger {
    border-left-color: #ef4444;
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .btn,
    .nav-tabs {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}
