/* assets/css/style.css — VFW Business Directory */

:root {
    --vfw-blue:    #002868;
    --vfw-red:     #BF0A30;
    --vfw-gold:    #C5A028;
    --vfw-light:   #f0f4f9;
    --text-dark:   #1a1a2e;
    --text-muted:  #6c757d;
    --border-color:#dee2e6;
    --shadow-sm:   0 2px 6px rgba(0,0,0,.07);
    --shadow-md:   0 4px 16px rgba(0,0,0,.12);
}

/* ── Typography ─────────────────────────────────────────── */
body {
    font-family: 'Source Sans 3', sans-serif;
    color: var(--text-dark);
    background: #f8f9fa;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand .brand-name {
    font-family: 'Merriweather', Georgia, serif;
}

/* ── Top Banner ─────────────────────────────────────────── */
.top-banner {
    background: var(--vfw-blue);
    color: #fff;
    padding: 5px 0;
    font-size: .8rem;
}
.top-banner a { color: #cdd8ed; text-decoration: none; }
.top-banner a:hover { color: #fff; }

/* ── Navbar ─────────────────────────────────────────────── */
.main-navbar {
    background: var(--vfw-red) !important;
    padding: 10px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.brand-star {
    font-size: 2.5rem;
    color: var(--vfw-gold);
    line-height: 1;
    text-shadow: 0 0 12px rgba(197,160,40,.5);
}
.brand-name {
    font-size: 1.25rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    letter-spacing: .5px;
}
.brand-tagline {
    font-size: .7rem;
    color: #ffcdd2;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.main-navbar .nav-link {
    color: rgba(255,255,255,.9) !important;
    font-weight: 600;
    padding: 6px 14px !important;
    border-radius: 4px;
    transition: background .2s;
}
.main-navbar .nav-link:hover { background: rgba(255,255,255,.15); color: #fff !important; }
.main-navbar .nav-link.btn-outline-light { border: 1.5px solid rgba(255,255,255,.7); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--vfw-blue) 0%, #00408a 60%, var(--vfw-red) 100%);
    color: #fff;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '★';
    position: absolute;
    right: -40px; top: -60px;
    font-size: 18rem;
    color: rgba(255,255,255,.04);
    font-family: 'Merriweather', serif;
    pointer-events: none;
}
.hero h1 { font-size: 2.8rem; font-weight: 900; line-height: 1.2; }
.hero p  { font-size: 1.15rem; opacity: .9; }

/* ── Search Card ─────────────────────────────────────────── */
.search-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 28px 32px;
    margin-top: -30px;
    position: relative;
    z-index: 10;
}
.search-card .form-control,
.search-card .form-select {
    border-color: #c5ccd6;
    border-radius: 6px;
    font-size: .95rem;
}
.search-card .btn-search {
    background: var(--vfw-red);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 10px 28px;
    border: none;
    border-radius: 6px;
    width: 100%;
    transition: background .2s;
}
.search-card .btn-search:hover { background: #a30827; }

/* ── Business Card ───────────────────────────────────────── */
.biz-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    padding: 22px 24px;
    height: 100%;
    transition: box-shadow .2s, transform .15s;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}
.biz-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.biz-card .biz-name { font-size: 1.1rem; font-weight: 700; color: var(--vfw-blue); margin-bottom: 4px; }
.biz-card .biz-name a { text-decoration: none; color: inherit; }
.biz-card .biz-name a:hover { color: var(--vfw-red); }
.biz-card .biz-location { font-size: .82rem; color: var(--text-muted); }
.biz-card .biz-services { margin: 10px 0; }
.biz-card .biz-discount {
    background: #fff8e1;
    border-left: 3px solid var(--vfw-gold);
    padding: 6px 10px;
    font-size: .84rem;
    border-radius: 0 4px 4px 0;
    margin-top: auto;
}
.biz-card .badge-service {
    background: var(--vfw-light);
    color: var(--vfw-blue);
    font-size: .75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    border: 1px solid #c5d0e0;
}

/* ── Detail Page ─────────────────────────────────────────── */
.detail-header {
    background: var(--vfw-blue);
    color: #fff;
    padding: 40px 0 30px;
}
.detail-header h1 { font-size: 2rem; }
.detail-section { background: #fff; border-radius: 10px; box-shadow: var(--shadow-sm); padding: 24px; margin-bottom: 20px; }
.detail-section h5 { font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 14px; border-bottom: 1px solid var(--border-color); padding-bottom: 8px; }
.discount-highlight { background: linear-gradient(135deg, #fff8e1, #fffde7); border: 1px solid #f0c040; border-radius: 8px; padding: 16px 20px; }
.discount-highlight h5 { color: #7a5800; }
.discount-highlight .discount-text { font-size: 1rem; color: #5a3e00; }

/* ── Auth Pages ──────────────────────────────────────────── */
.auth-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: var(--vfw-light);
}
.auth-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 40px 44px;
    max-width: 520px;
    width: 100%;
}
.auth-card .auth-logo { color: var(--vfw-red); font-size: 2.5rem; text-align: center; margin-bottom: 8px; }
.auth-card h2 { text-align: center; font-size: 1.6rem; color: var(--vfw-blue); margin-bottom: 4px; }
.auth-card .auth-sub { text-align: center; color: var(--text-muted); font-size: .9rem; margin-bottom: 24px; }
.btn-primary-vfw { background: var(--vfw-red); border-color: var(--vfw-red); color: #fff; font-weight: 700; }
.btn-primary-vfw:hover { background: #a30827; border-color: #a30827; color: #fff; }
.btn-outline-vfw { border-color: var(--vfw-red); color: var(--vfw-red); font-weight: 600; }
.btn-outline-vfw:hover { background: var(--vfw-red); color: #fff; }

/* ── Member Dashboard ────────────────────────────────────── */
.dashboard-sidebar {
    background: var(--vfw-blue);
    color: #fff;
    min-height: 100vh;
    padding: 24px 0;
}
.sidebar-link {
    display: block;
    color: rgba(255,255,255,.75);
    text-decoration: none;
    padding: 9px 24px;
    font-size: .95rem;
    transition: background .15s, color .15s;
}
.sidebar-link:hover, .sidebar-link.active {
    background: rgba(255,255,255,.12);
    color: #fff;
}
.sidebar-link i { width: 20px; margin-right: 8px; }
.sidebar-divider { border-color: rgba(255,255,255,.15); margin: 8px 16px; }

/* ── Admin ────────────────────────────────────────────────── */
.admin-header {
    background: linear-gradient(90deg, var(--vfw-blue), #00408a);
    color: #fff;
    padding: 16px 24px;
    border-radius: 8px;
    margin-bottom: 24px;
}
.stat-card { background: #fff; border-radius: 10px; padding: 20px 24px; box-shadow: var(--shadow-sm); border-top: 4px solid; }
.stat-card.blue  { border-color: var(--vfw-blue); }
.stat-card.red   { border-color: var(--vfw-red); }
.stat-card.gold  { border-color: var(--vfw-gold); }
.stat-card.green { border-color: #198754; }
.stat-card .stat-num { font-size: 2rem; font-weight: 800; color: var(--text-dark); }
.stat-card .stat-label { font-size: .85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }

/* ── General Utilities ───────────────────────────────────── */
.text-gold { color: var(--vfw-gold) !important; }
.text-vfw-blue { color: var(--vfw-blue) !important; }
.text-vfw-red  { color: var(--vfw-red) !important; }
.bg-vfw-blue   { background: var(--vfw-blue) !important; }
.bg-vfw-red    { background: var(--vfw-red) !important; }
.section-title {
    font-size: 1.7rem;
    color: var(--vfw-blue);
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 24px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 48px; height: 3px;
    background: var(--vfw-red);
    border-radius: 2px;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
    background: var(--vfw-blue);
    color: rgba(255,255,255,.8);
    padding: 48px 0 24px;
}
.site-footer h5, .site-footer h6 { color: #fff; font-weight: 700; }
.site-footer a { color: rgba(255,255,255,.65); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer hr { border-color: rgba(255,255,255,.15); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 767px) {
    .hero h1 { font-size: 1.9rem; }
    .auth-card { padding: 28px 22px; }
    .search-card { margin-top: 16px; border-radius: 8px; }
}
