@import 'colors.css';

/* ── Base ────────────────────────────────────────────────── */

html
{
    background-color: var(--bg-base);
}

body
{
    background-color: var(--bg-base);
    font-family: 'Inter', sans-serif;
    color: var(--navy);
    line-height: 1.75;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6
{
    font-weight: 700;
}

/* ── Alignment ───────────────────────────────────────────── */

.center_object
{
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.center_object_vertically
{
    display: flex;
    justify-content: center;
    align-items: center;
}

.right_object
{
    display: flex;
    justify-content: flex-end;
}

.center_text
{
    text-align: center;
}

hr
{
    width: 95%;
    border-color: var(--border);
    opacity: 1;
}

/* ── Layout ──────────────────────────────────────────────── */

.paper
{
    margin-left: 15vw;
    margin-right: 15vw;
}

.form_paper
{
    padding: 28px;
}

.new_page
{
    padding: 28px 32px;
}

/* ── Navigation ──────────────────────────────────────────── */

.nav_background
{
    background-color: #1F2937;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav_logo
{
    height: 48px;
    margin-right: 8px;
}

.nav_link_light
{
    color: rgba(255, 255, 255, 0.85) !important;
}

.nav_link_light:hover
{
    color: white !important;
}

.nav_link_active
{
    color: white !important;
    font-weight: 600;
}

@media (min-width: 992px)
{
    .nav_background .navbar-nav
    {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 991px)
{
    .nav_background .navbar-collapse
    {
        padding: 16px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 8px;
    }

    .nav_background .nav-link
    {
        padding: 10px 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .hero_text
    {
        width: 90% !important;
    }

    .hero h1
    {
        font-size: 2.2rem !important;
    }
}

/* ── Hero ────────────────────────────────────────────────── */

.hero
{
    background-color: var(--navy);
    background-size: cover;
    background-position: center;
    width: 100%;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 60px 20px;
    position: relative;
}

.hero_content_left
{
    margin-left: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    .hero { min-height: 88vh; }
    .hero_content_left { margin-left: 10%; }
}

.hero_overlay
{
    position: absolute;
    inset: 0;
    background: linear-gradient(to top right, rgba(15, 20, 30, 0.9) 0%, rgba(15, 20, 30, 0.4) 60%, transparent 100%);
    z-index: 0;
}

.hero > *
{
    position: relative;
    z-index: 1;
}

.hero_text
{
    width: 58%;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
}

.hero_popup
{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    font-size: 0.85rem;
    border: 1px solid var(--gold);
    border-radius: 999px;
    background-color: var(--gold-faint);
    color: var(--gold);
    letter-spacing: 0.03em;
}

.hero_logo
{
    height: 60px;
    margin-bottom: 10px;
}

/* ── Footer ──────────────────────────────────────────────── */

.footer_bg
{
    position: relative;
    background-size: cover;
    background-position: center;
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.footer_overlay
{
    position: absolute;
    inset: 0;
    background: rgba(26, 31, 44, 0.85);
    z-index: 0;
}

.footer_bg > *
{
    position: relative;
    z-index: 1;
}

.footer_logo
{
    height: 36px;
    margin-bottom: 16px;
}

footer
{
    padding: 24px;
    margin: 0;
    text-align: center;
    font-size: 0.9rem;
}

/* ── Buttons ─────────────────────────────────────────────── */

.auth_button
{
    background-color: var(--gold);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 7px 18px;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.auth_button:hover
{
    box-shadow: 0 0 16px rgba(37, 99, 235, 0.40);
    transform: translateY(-1px);
    background-color: var(--gold);
    color: white;
}

.button_hover_harsh
{
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.button_hover_harsh:hover
{
    background-color: var(--gold);
    box-shadow: 0 0 18px rgba(37, 99, 235, 0.30);
    transform: translateY(-1px);
}

.soft_button
{
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.soft_button:hover
{
    color: var(--navy);
    background-color: var(--bg-muted);
}

/* ── Sections ────────────────────────────────────────────── */

.new_section
{
    padding: 80px 10%;
}

.new_section_secondary
{
    padding: 60px 10%;
    background-color: var(--bg-warm);
}

.new_section_dark
{
    padding: 80px 10%;
    background-color: #1F2937;
    color: white;
}

/* ── Elite Section ───────────────────────────────────────── */

.elite_section
{
    background-color: var(--bg-warm);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.elite_stack
{
    position: relative;
    min-height: 320px;
}

.elite_img
{
    position: absolute;
    top: 0;
    left: 0;
    height: 120%;
    width: 50%;
    object-fit: cover;
    object-position: center top;
}

@media (min-width: 768px) {
    .elite_img {
        height: auto;
        width: 35%;
        object-fit: contain;
        object-position: left top;
    }
}

.elite_text
{
    position: relative;
    z-index: 1;
    text-align: right;
    padding: 40px 24px 40px 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    min-height: 320px;
}

.elite_heading
{
    font-family: inherit;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.1;
    font-size: 1.6rem;
}

@media (min-width: 768px) {
    .elite_stack { min-height: 400px; }
    .elite_text { min-height: 400px; padding: 60px 24px 60px 50%; }
    .elite_heading { font-size: 2.4rem; }
}

/* ── Luxury Banner ───────────────────────────────────────── */

.luxury_banner
{
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.luxury_banner_img
{
    width: 100%;
    display: block;
}

.luxury_overlay
{
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(26, 31, 44, 0.8), rgba(26, 31, 44, 0.6));
    z-index: 0;
}

.luxury_banner > *
{
    position: relative;
    z-index: 1;
}

.luxury_logo
{
    height: 30px;
    opacity: 0.9;
}

/* ── Carousel ────────────────────────────────────────────── */

.carousel_section
{
    padding: 80px 10%;
    background-color: var(--navy);
    color: white;
}

.carousel_section .carousel-item img
{
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
}

/* ── Membership Cards ────────────────────────────────────── */

.membership_card
{
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px 24px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.membership_card:hover
{
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.membership_card.vip
{
    background-color: var(--navy);
    color: white;
    border-color: var(--gold);
}

.membership_price
{
    font-size: 2.5rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.membership_price span
{
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.7;
}

.membership_feature
{
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.membership_card.vip .membership_feature
{
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

.strikethrough
{
    text-decoration: line-through;
    opacity: 0.5;
    margin-left: 6px;
    font-size: 0.85rem;
}

/* ── Simulator Cards ─────────────────────────────────────── */

.simulator_card
{
    background-color: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 24px;
    color: var(--navy);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.simulator_card:hover
{
    cursor: default;
}

.simulator_card h4
{
    color: var(--navy);
    font-family: inherit;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.simulator_price
{
    font-size: 2rem;
    font-weight: 700;
    font-family: inherit;
    color: var(--gold);
}

.simulator_price span
{
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--navy);
    opacity: 0.6;
}

/* ── Utilities ───────────────────────────────────────────── */

.disable_link
{
    pointer-events: none;
    opacity: 0.45;
}

.no_decoration
{
    text-decoration: none;
}

/* ── Cards ───────────────────────────────────────────────── */

.card_img_cover
{
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card
{
    --bs-card-bg:            var(--bg-card);
    --bs-card-border-color:  var(--border);
    --bs-card-border-radius: 12px;

    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    overflow: hidden;
}

.card-header
{
    background-color: #1F2937;
    border-bottom: none;
    padding: 12px 16px;
}

.card-body
{
    padding: 20px;
}

.card:hover
{
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.no_hover
{
    box-shadow: none;
}

.no_hover:hover
{
    box-shadow: none;
    transform: none;
    cursor: default;
}

/* ── Colors ──────────────────────────────────────────────── */

.primary_text                 { color: var(--navy); }
.accent_text                  { color: var(--gold); }
.gold_text                    { color: var(--accent-gold); }
.muted_text                   { color: var(--text-muted); }
.accent_background            { background-color: var(--gold); }
.primary_background           { background-color: var(--navy); }
.primary_secondary_background { background-color: var(--bg-warm); }

/* ── Auth Inputs ─────────────────────────────────────────── */

.auth_input
{
    width: 100%;
    padding: 14px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: white;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.auth_input::placeholder
{
    color: rgba(255, 255, 255, 0.4);
}

.auth_input:focus
{
    border-color: var(--gold);
}

/* ── Dashboard ───────────────────────────────────────────── */

.dash_card
{
    background-color: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

.dash_seg_active
{
    background-color: var(--gold) !important;
    color: white !important;
    border-color: var(--gold) !important;
}

.dash_seg
{
    background-color: transparent;
    color: var(--navy);
    border-color: var(--border) !important;
}

.dash_action
{
    color: var(--navy);
    border: 1px solid var(--border);
}

.dash_action:hover
{
    background-color: var(--bg-warm);
}

/* ── Court Cards ─────────────────────────────────────────── */

.court_card
{
    background-color: var(--bg-primary);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.court_card:hover
{
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.court_img_placeholder
{
    position: relative;
    height: 120px;
    background-color: var(--bg-muted);
}

.court_badge_active
{
    font-size: 0.68rem;
    font-weight: 600;
    color: white;
    background-color: var(--gold);
    padding: 3px 10px;
    border-radius: 999px;
}

.court_badge_outline
{
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--navy);
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid var(--navy);
    background-color: var(--bg-primary);
}

.court_btn_membership
{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    background-color: var(--gold);
    border-radius: 10px;
}

.court_btn_openplay
{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--navy);
    background-color: transparent;
    border: 1px solid var(--border-divider);
    border-radius: 10px;
}

/* ── Sidebar ────────────────────────────────────────────── */

.sidebar-custom-icon { width: 16px; height: 16px; flex-shrink: 0; display: flex; }
.sidebar-custom-icon svg { width: 16px; height: 16px; }
.sidebar-item:hover
{
    background-color: var(--bg-hover);
}

/* ── Dark mode overrides for Bootstrap components ─────── */
@media (prefers-color-scheme: dark) {
    .form-control {
        background-color: var(--bg-input);
        border-color: var(--border);
        color: var(--text-primary);
    }
    .form-control:focus {
        background-color: var(--bg-input-focus);
        border-color: var(--gold);
        color: var(--text-primary);
    }
    .dropdown-menu {
        background-color: var(--bg-card);
        border-color: var(--border);
    }
    .dropdown-item {
        color: var(--text-secondary);
    }
    .dropdown-item:hover, .dropdown-item:focus {
        background-color: var(--bg-hover);
        color: var(--text-primary);
    }
    .dropdown-item.active {
        background-color: var(--gold);
        color: white;
    }
    .dropdown-divider {
        border-color: var(--border-subtle);
    }
    .modal-backdrop {
        background-color: rgba(0, 0, 0, 0.6);
    }
    .btn-close {
        filter: invert(1) grayscale(100%) brightness(200%);
    }
    .offcanvas {
        background-color: var(--bg-primary);
        color: var(--text-primary);
    }
    body {
        background-color: var(--bg-primary);
        color: var(--text-primary);
    }
    .table {
        --bs-table-bg: transparent;
        --bs-table-color: var(--text-primary);
        --bs-table-border-color: var(--border);
        --bs-table-hover-bg: var(--bg-hover);
        --bs-table-hover-color: var(--text-primary);
    }
    .card {
        --bs-card-color: var(--text-primary);
    }
    .card-text {
        color: var(--text-secondary);
    }
    .muted_text {
        color: var(--text-muted) !important;
    }
    .new_section {
        background-color: var(--bg-primary);
    }
    .hero_popup {
        color: var(--text-secondary);
    }
}