/* ========== CSS Variables ========== */
:root {
    --primary: #1a5f7a;
    --secondary: #57cc99;
    --accent: #ff9e00;
    --light: #f8f9fa;
    --dark: #343a40;
    --white: #ffffff;
    --error: #dc3545;
    --success: #28a745;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* ========== Reset & Base Styles ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f8ff;
    color: var(--dark);
    line-height: 1.6;
    max-width: 100%;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* ========== Typography ========== */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    color: #ffcc00;
    margin: 1.5rem 0 1rem;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 0.5rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

h3 {
    font-size: 1.5rem;
    color: var(--primary);
}

p {
    margin-bottom: 1rem;
}

.tagline {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

/* ========== Header ========== */
header {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/shopwall.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 2rem 0;
    text-align: center;
    position: relative;
    border-radius: 10px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.logo {
    height: 60px;
    width: auto;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-link {
    display: inline-block;
}

.header-text {
    flex: 1;
    text-align: center;
    min-width: 300px;
}

/* ========== Buttons ========== */
.btn {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-size: 1rem;
}

.btn:hover {
    background-color: #e08e00;
    transform: translateY(-2px);
}

.btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background-color: var(--primary);
}

.btn-secondary:hover {
    background-color: #155270;
}

.btn-icon {
    background: transparent;
    color: var(--dark);
    font-size: 1.5rem;
    padding: 0.5rem;
}

/* ========== Sections ========== */
section {
    padding: 3rem 0;
}

.intro {
    background: linear-gradient(135deg, #1e5799 0%, #207cca 100%);
    color: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path fill="rgba(255,255,255,0.05)" d="M0 0h100v100H0z"/><path fill="rgba(255,255,255,0.1)" d="M0 0h50v50H0z"/></svg>');
    z-index: 0;
}

.intro h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    position: relative;
    z-index: 5;
}

.columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    position: relative;
    z-index: 5;
}

.column {
    flex: 1;
    min-width: 300px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.column h3 {
    color: #ffcc00;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.column a {
    color: #ffcc00;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.column a:hover {
    color: #ffdd44;
    text-decoration: underline;
}

.highlight {
    background-color: rgba(255, 204, 0, 0.2);
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1.5rem;
    border-left: 4px solid #ffcc00;
}

/* ========== Fish Cards ========== */
.fish-types {
    background-color: var(--light);
}

.fish-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.fish-card {
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.fish-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    z-index: 1;
}

.fish-card h3,
.fish-card p {
    position: relative;
    z-index: 2;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.fish-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.bass-card {
    background-image: url('../img/KyrasBass2019.jpg');
}

.bluegill-card {
    background-image: url('../img/bluegill.webp');
}

.catfish-card {
    background-image: url('../img/BigCat.webp');
}

.crappie-card {
    background-image: url('../img/crappie.webp');
}

/* ========== Booking Section ========== */
.booking {
    background-image: url('../img/1000002438.jpeg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.booking::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255, 0.8);
    z-index: 1;
}

.booking .container {
    position: relative;
    z-index: 2;
}

.booking-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

/* ========== Calendar ========== */
.calendar {
    background-color: var(--light);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    text-align: center;
    padding: 0.5rem;
    font-weight: bold;
    font-size: 0.9rem;
    background-color: rgba(0,0,0,0.05);
    border-radius: 4px;
}

.calendar-date {
    text-align: center;
    padding: 0.8rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.calendar-date.empty {
    visibility: hidden;
}

.calendar-date:hover:not(.past-date) {
    background-color: #e9ecef;
}

.calendar-date.available {
    background-color: var(--secondary);
    color: white;
}

.calendar-date.available:hover {
    background-color: #46b583;
}

.calendar-date.selected {
    background-color: var(--primary);
    color: white;
}

.calendar-date.past-date {
    color: #ccc;
    cursor: not-allowed;
}

.calendar-date.unavailable {
    background-color: #f2f2f2;
    color: #999;
    cursor: not-allowed;
    border-color: #e6e6e6;
}

/* ========== Forms ========== */
.booking-form {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

input, select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.checkbox-group input {
    width: auto;
    margin-right: 0.5rem;
}

/* ========== Alerts ========== */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    display: none;
    position: relative;
    z-index: 99999;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 500px;
    width: 90%;
    animation: slideDown 0.3s ease-out;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* ========== Modal ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
    line-height: 1;
}

.price-summary {
    background-color: var(--light);
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.total-row {
    border-top: 1px solid #ccc;
    padding-top: 0.5rem;
    font-weight: bold;
    font-size: 1.2rem;
}

.payment-options {
    margin-top: 1.5rem;
}

.payment-option {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.payment-option:hover {
    border-color: var(--primary);
}

.payment-option.selected {
    border-color: var(--primary);
    background-color: rgba(26, 95, 122, 0.05);
}

.square-card {
    border: 1px solid #ced4da;
    border-radius: 4px;
    min-height: 52px;
    padding: 0.75rem;
    background-color: #fff;
}

.square-card-status {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #b00020;
    min-height: 1.2rem;
}

/* ========== Footer ========== */
footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
    .booking-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .logo {
        height: 50px;
    }
    
    .columns {
        flex-direction: column;
    }
    
    .column {
        min-width: 100%;
    }
    
    .fish-grid {
        grid-template-columns: 1fr;
    }
    
    .calendar-date {
        padding: 0.5rem 0.2rem;
        font-size: 0.85rem;
        min-height: 40px;
    }
    
    .calendar-day {
        padding: 0.5rem 0.2rem;
        font-size: 0.8rem;
    }
    
    .modal-content {
        padding: 1rem;
        margin: 5% auto;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .calendar-date {
        padding: 0.4rem 0.1rem;
        font-size: 0.75rem;
        min-height: 35px;
    }
    
    .calendar-day {
        font-size: 0.7rem;
        padding: 0.4rem 0.1rem;
    }
    
    .calendar-header h3 {
        font-size: 1rem;
    }
}

/* ========== Accessibility ========== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.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;
}

/* ========== Print Styles ========== */
@media print {
    .btn,
    .modal,
    .calendar-header button {
        display: none !important;
    }
    
    body {
        color: black;
        background: white;
    }
    
    .fish-card::before {
        background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.5));
    }
}