/* Bhagyalakshmi Stadium Design System CSS */

:root {
    --navy-dark: #000233;
    --navy-mid: #070b42;
    --navy-bg: #030422;
    --gold: #d4af37;
    --gold-light: #f5d76e;
    --badminton-green: #115c34;
    --court-green: #1b8048;
    --white-70: rgba(255, 255, 255, 0.7);
    --white-90: rgba(255, 255, 255, 0.9);
    --body-bg: #fdfdfd;
}

/* General Overrides */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--body-bg);
    color: #333333;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-outfit {
    font-family: 'Outfit', sans-serif;
}

a {
    transition: all 0.3s ease;
}

/* Utilities */
.bg-navy { background-color: var(--navy-mid) !important; }
.bg-navy-mid { background-color: var(--navy-mid) !important; }
.bg-navy-dark { background-color: var(--navy-dark) !important; }
.bg-navy-bg { background-color: var(--navy-bg) !important; }
.text-gold { color: var(--gold) !important; }
.bg-gold-gradient {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%) !important;
}

.fs-xs { font-size: 0.75rem; }
.tracking-wide { letter-spacing: 1px; }
.tracking-widest { letter-spacing: 3px; }

/* Top Info Bar */
.top-bar {
    background-color: var(--navy-dark);
    font-size: 0.85rem;
    color: var(--white-70);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 0;
}
.top-bar a {
    text-decoration: none;
}
.hover-gold:hover {
    color: var(--gold) !important;
}

/* Header Logo */
.logo-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.1rem;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Nav Links hover effect */
.navbar-nav .nav-link {
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1rem !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 60%;
}

.navbar-nav .nav-link:hover {
    color: #ffffff !important;
}

/* Custom Buttons */
.btn-gold {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    border: none;
    color: var(--navy-dark) !important;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
}

.btn-outline-gold {
    border: 2px solid var(--gold);
    color: var(--gold);
    background: transparent;
}

.btn-outline-gold:hover {
    background-color: var(--gold);
    color: var(--navy-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

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

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 550px;
    background-color: var(--navy-dark);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* About Section & Image Layers */
.about-image-wrapper {
    position: relative;
    height: 380px;
}

.about-img-1 {
    width: 75%;
    height: 270px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.about-img-2 {
    width: 60%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    position: absolute;
    bottom: 10px;
    right: 0;
    z-index: 3;
    border: 5px solid #ffffff;
}

/* Mission / Vision Cards */
.card-glass {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
}

.card-glass:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.icon-badge {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--navy-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(212, 175, 55, 0.2);
    font-size: 1.8rem;
    color: var(--gold);
    margin: -35px auto 20px auto;
}

/* Services Cards */
.service-card {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(7, 11, 66, 0.08);
    border-color: rgba(7, 11, 66, 0.1);
}

.service-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background-color: rgba(7, 11, 66, 0.05);
    color: var(--navy-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon-box {
    background-color: var(--gold);
    color: var(--navy-dark);
}

/* Gallery Hover Cards */
.gallery-filter-btn {
    border: 1px solid #ddd;
    border-radius: 30px;
    padding: 6px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    background: #ffffff;
    transition: all 0.3s ease;
}

.gallery-filter-btn.active, .gallery-filter-btn:hover {
    background-color: var(--navy-mid);
    color: #ffffff;
    border-color: var(--navy-mid);
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 2, 51, 0.9) 0%, rgba(0, 2, 51, 0.2) 70%, transparent 100%);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    transition: opacity 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Locations list card */
.location-item {
    background-color: #f0f4f8;
    border-radius: 8px;
    padding: 18px 24px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 5px solid var(--navy-mid);
    transition: all 0.3s ease;
}

.location-item:hover {
    transform: translateX(5px);
    background-color: #e2ecf5;
}

/* Dynamic Booking Visualizer styling */
.court-card {
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.court-card.selected {
    border: 2px solid var(--gold);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
}

.court-visual-header {
    height: 120px;
    background-color: var(--badminton-green);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.court-visual-lines {
    position: absolute;
    width: 85%;
    height: 75%;
    border: 2px solid #ffffff;
}

.court-visual-center-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    border-left: 2px solid #ffffff;
    transform: translateX(-50%);
}

.court-visual-net {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.5);
    border-top: 1px dashed #ffffff;
    border-bottom: 1px dashed #ffffff;
    transform: translateY(-50%);
}

/* Slots grid styling */
.slot-badge {
    border-radius: 6px;
    padding: 12px 10px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #ddd;
    background-color: #ffffff;
    color: #333;
}

.slot-badge.available:hover {
    background-color: #e2f0d9;
    border-color: #a9d18e;
    color: #385723;
    transform: translateY(-2px);
}

.slot-badge.selected {
    background-color: var(--court-green) !important;
    border-color: var(--court-green) !important;
    color: #ffffff !important;
}

.slot-badge.booked {
    background-color: #f2dede;
    border-color: #ebccd1;
    color: #a94442;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Footer links styling */
.footer-link {
    color: var(--white-70);
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.footer-link:hover {
    color: var(--gold) !important;
    transform: translateX(4px);
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white-70);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    background-color: var(--gold);
    color: var(--navy-dark) !important;
    transform: translateY(-3px);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 15px rgba(0,0,0,0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: #fff;
    transform: scale(1.1);
}

/* Image generation placeholder styles */
.img-placeholder-badminton {
    background: linear-gradient(135deg, #070b42 0%, #030422 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.img-placeholder-badminton::after {
    content: "\f005 \f005 \f005";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--gold);
    position: absolute;
    bottom: 20px;
    font-size: 1rem;
    letter-spacing: 5px;
}