/*
 * Bunker Hill Baseball Softball - Custom Styles
 * Baseball-themed design with Bootstrap 5
 */

/* =====================================================
   CSS VARIABLES - Easy customization
   ===================================================== */
:root {
    /* Primary Colors - Baseball Field Theme */
    --bs-primary: #2d5a27;        /* Grass green */
    --bs-primary-dark: #1e3d1a;   /* Darker grass */
    --bs-secondary: #8b4513;      /* Saddle brown (dirt) */
    --bs-accent: #c41e3a;         /* Cardinal red */
    --bs-accent-light: #e63950;   /* Lighter red */

    /* Neutral Colors */
    --bs-cream: #f5f5dc;          /* Cream/off-white */
    --bs-tan: #d2b48c;            /* Tan */
    --bs-dark: #1a1a1a;           /* Near black */
    --bs-light-bg: #f8f6f0;       /* Light warm background */

    /* Fonts */
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* =====================================================
   BASE STYLES
   ===================================================== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bs-light-bg);
    color: #333;
    padding-top: 56px; /* Account for fixed navbar */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar {
    background: linear-gradient(135deg, var(--bs-dark) 0%, #2a2a2a 100%) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.navbar-brand .bi-circle-fill {
    font-size: 0.8rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease, background-color 0.2s ease;
    border-radius: 4px;
    margin: 0 2px;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255,255,255,0.1);
}

.nav-link .badge {
    font-size: 0.65rem;
    vertical-align: middle;
}

/* Mobile nav adjustments */
@media (max-width: 991.98px) {
    .navbar-nav {
        padding-top: 1rem;
    }

    .nav-link {
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
}

/* =====================================================
   HERO CAROUSEL
   ===================================================== */
.hero-carousel {
    margin-top: 0;
}

.hero-carousel .carousel-item {
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    background-color: var(--bs-primary-dark);
}

.hero-carousel .carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    opacity: 0.7;
}

.hero-carousel .carousel-caption {
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    left: 0;
    right: 0;
    bottom: 0;
    padding: 3rem 2rem 2rem;
}

.hero-carousel .carousel-caption h2 {
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-carousel .carousel-caption p {
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Mobile carousel adjustments */
@media (max-width: 767.98px) {
    .hero-carousel .carousel-item {
        height: 50vh;
        min-height: 300px;
    }

    .hero-carousel .carousel-caption h2 {
        font-size: 1.5rem;
    }

    .hero-carousel .carousel-caption p {
        font-size: 0.9rem;
    }
}

/* =====================================================
   SECTIONS
   ===================================================== */
.section {
    padding: 4rem 0;
}

.section-alt {
    background: linear-gradient(180deg, #fff 0%, var(--bs-light-bg) 100%);
}

.section-dark {
    background: linear-gradient(135deg, var(--bs-primary-dark) 0%, var(--bs-primary) 100%);
    color: #fff;
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--bs-accent);
    border-radius: 2px;
}

.section-title-left::after {
    left: 0;
    transform: none;
}

/* =====================================================
   WELCOME SECTION
   ===================================================== */
.welcome-section {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-primary-dark) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.welcome-content {
    position: relative;
    z-index: 1;
}

.welcome-icon {
    font-size: 4rem;
    opacity: 0.8;
}

@media (max-width: 767.98px) {
    .welcome-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
}

/* =====================================================
   ANNOUNCEMENTS / NEWS
   ===================================================== */
.announcement-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.announcement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.announcement-card .card-header {
    background: linear-gradient(135deg, var(--bs-accent) 0%, var(--bs-accent-light) 100%);
    color: #fff;
    font-weight: 600;
    border: none;
}

.announcement-date {
    font-size: 0.85rem;
    color: #666;
}

.announcement-badge {
    background-color: var(--bs-accent);
}

/* =====================================================
   REGISTRATION SECTION
   ===================================================== */
.registration-cta {
    background: linear-gradient(135deg, var(--bs-secondary) 0%, #6b3410 100%);
    color: #fff;
    border-radius: 12px;
    padding: 2rem;
}

.registration-cta .btn-register {
    background-color: var(--bs-accent);
    border-color: var(--bs-accent);
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.registration-cta .btn-register:hover {
    background-color: var(--bs-accent-light);
    border-color: var(--bs-accent-light);
    transform: scale(1.05);
}

/* =====================================================
   FORMS
   ===================================================== */
.form-control,
.form-select {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(45, 90, 39, 0.25);
}

.form-label {
    font-weight: 500;
    color: #444;
}

.required-field::after {
    content: ' *';
    color: var(--bs-accent);
}

/* Form card styling */
.form-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 2rem;
}

@media (min-width: 768px) {
    .form-card {
        padding: 3rem;
    }
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--bs-primary-dark);
    border-color: var(--bs-primary-dark);
}

.btn-accent {
    background-color: var(--bs-accent);
    border-color: var(--bs-accent);
    color: #fff;
}

.btn-accent:hover,
.btn-accent:focus {
    background-color: var(--bs-accent-light);
    border-color: var(--bs-accent-light);
    color: #fff;
}

.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    transition: all 0.2s ease;
}

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

/* =====================================================
   CARDS
   ===================================================== */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.card-header {
    background-color: var(--bs-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 12px 12px 0 0 !important;
}

/* =====================================================
   AGE GROUP CARDS
   ===================================================== */
.age-group-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    background: #fff;
}

.age-group-card:hover {
    border-color: var(--bs-primary);
    box-shadow: 0 4px 15px rgba(45, 90, 39, 0.2);
}

.age-group-card.selected {
    border-color: var(--bs-primary);
    background-color: rgba(45, 90, 39, 0.05);
}

.age-group-card h5 {
    color: var(--bs-primary-dark);
    margin-bottom: 0.5rem;
}

.age-group-card .ages {
    color: #666;
    font-size: 0.9rem;
}

/* =====================================================
   PLACEHOLDER PAGES
   ===================================================== */
.placeholder-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.placeholder-icon {
    font-size: 5rem;
    color: var(--bs-primary);
    opacity: 0.5;
    margin-bottom: 1.5rem;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background: linear-gradient(135deg, var(--bs-dark) 0%, #2a2a2a 100%) !important;
}

.footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #fff;
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */
.text-accent {
    color: var(--bs-accent) !important;
}

.bg-accent {
    background-color: var(--bs-accent) !important;
}

.text-primary-custom {
    color: var(--bs-primary) !important;
}

.bg-primary-custom {
    background-color: var(--bs-primary) !important;
}

/* Spacing helpers */
.mt-section {
    margin-top: 4rem;
}

.mb-section {
    margin-bottom: 4rem;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* =====================================================
   RESPONSIVE ADJUSTMENTS
   ===================================================== */
@media (max-width: 575.98px) {
    .section {
        padding: 2.5rem 0;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .form-card {
        padding: 1.5rem;
        border-radius: 12px;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .btn {
        display: none !important;
    }

    body {
        padding-top: 0;
    }
}
