/* ================================================================
   WOBBLERS ANONYMOUS — Custom Styles
   Palette: purple #b02a9a / #9d2589  |  navbar #3d3d3d  |  footer #000
   ================================================================ */

/* ── Variables ──────────────────────────────────────────────────── */
:root {
    --wa-primary:       #b02a9a;
    --wa-primary-dark:  #9d2589;
    --wa-navbar-bg:     #3d3d3d;
    --wa-footer-bg:     #111;
    --wa-font-body:     "Open Sans", sans-serif;
    --wa-font-head:     "Source Sans 3", sans-serif;
}

/* ── Navbar offset (fixed-top = 90px clearance) ─────────────────── */
body {
    padding-top: 90px;
}

/* ── Navbar ─────────────────────────────────────────────────────── */
#mainNavbar {
    background-color: #3d3d3d !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.navbar-brand {
    font-family: "Century Gothic", "Source Sans 3", sans-serif;
    font-size: 1.4rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff !important;
    text-shadow: 2px 3px 8px rgba(0,0,0,0.3);
}

#mainNavbar .nav-link {
    font-family: "Source Sans 3", sans-serif;
    font-size: 1rem;
    color: #fff !important;
    transition: background-color 0.2s ease;
}

#mainNavbar .nav-link:hover,
#mainNavbar .nav-link.active {
    background-color: #b02a9a;
}

/* ── Base ───────────────────────────────────────────────────────── */
html, body {
    font-family: var(--wa-font-body);
    line-height: 1.7;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--wa-font-head);
    font-weight: 400;
}

a {
    color: var(--wa-primary);
}

a:hover {
    color: var(--wa-primary-dark);
}

/* ── Bootstrap primary override ─────────────────────────────────── */
.btn-primary {
    background-color: var(--wa-primary);
    border-color:     var(--wa-primary-dark);
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--wa-primary-dark);
    border-color:     #7b1d6c;
}
.btn-outline-primary {
    color:        var(--wa-primary);
    border-color: var(--wa-primary);
}
.btn-outline-primary:hover {
    background-color: var(--wa-primary);
    border-color:     var(--wa-primary);
    color: #fff;
}
.badge.bg-primary, .bg-primary {
    background-color: var(--wa-primary) !important;
}

/* ── Brand horizontal rule ──────────────────────────────────────── */
.brand-hr {
    border: 0;
    border-top: 3px solid var(--wa-primary);
    margin-bottom: 1.5rem;
    opacity: 1;
}

/* ── Hero Section ───────────────────────────────────────────────── */
.hero-section {
    position: relative;
    height: 420px;
    background-image: url("/images/web-header-v2.jpg");
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.65) 100%);
}

.hero-text-box {
    max-width: 700px;
    margin-bottom: 2rem;
}

.hero-title {
    font-family: "Source Sans 3", "Century Gothic", sans-serif;
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-weight: 600;
    letter-spacing: 3px;
    color: #fff;
    text-shadow: 2px 4px 12px rgba(0,0,0,0.6);
    background: rgba(255,255,255,0.92);
    color: #2e2e2e;
    display: inline-block;
    padding: 4px 16px;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    font-family: "Palatino Linotype", Georgia, serif;
    color: #fff;
    background: rgba(0,0,0,0.85);
    display: inline-block;
    padding: 4px 14px;
    margin-bottom: 0;
}

/* ── Page header bar ────────────────────────────────────────────── */
.page-header-bar {
    background: #3d3d3d;
    border-bottom: 3px solid var(--wa-primary);
    padding: 1.2rem 0 1rem;
    margin-top: 0;
}

.page-header-bar h1,
.page-header-bar p {
    margin: 0;
    color: #fff;
}

.page-header-bar h1 {
    font-size: 2.2rem;
}

/* ── Sidebar ────────────────────────────────────────────────────── */
.sidebar-box {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 1.2rem 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.sidebar-box h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 0.5rem;
}

/* ── Member nav (sidebar links) ─────────────────────────────────── */
.member-nav-link {
    color: var(--wa-primary);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid #efefef;
    padding: 0.3rem 0.2rem;
    transition: background 0.15s;
}

.member-nav-link:hover {
    background: #f9edf7;
    color: var(--wa-primary-dark);
    padding-left: 0.6rem;
}

.member-nav-link.active {
    color: var(--wa-primary-dark);
    font-weight: 600;
    background: #f3e0f0;
}

/* ── Links page cards ───────────────────────────────────────────── */
.link-card {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: box-shadow 0.2s, transform 0.2s;
}

.link-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.link-card .card-title a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
}

.link-card .card-title a:hover {
    color: var(--wa-primary);
}

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer {
    background: var(--wa-footer-bg);
    color: #ccc;
    font-size: 0.85rem;
}

.site-footer a {
    color: var(--wa-primary) !important;
    text-decoration: none;
}

.site-footer a:hover {
    color: #cc55b8 !important;
}

.footer-logo {
    max-height: 48px;
    width: auto;
    opacity: 0.9;
}

/* ── Responsive: mobile adjustments ─────────────────────────────── */
@media (max-width: 767px) {
    .hero-section {
        height: 280px;
    }

    .hero-title {
        font-size: 1.4rem;
        letter-spacing: 1px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .page-header-bar h1 {
        font-size: 1.7rem;
    }
}
