/* ======================================================
   Forces Online Members — UI KIT (FINAL BUILD)
   Bootstrap-free, conflict-free, global component system
   ====================================================== */

/* -------------------------------------
   COLOUR VARIABLES
-------------------------------------- */
:root {
    --primary: #1e3c72;
    --primary-dark: #2a5298;
    --accent: #ffd700;

    --success: #0f5132;
    --success-bg: #d1e7dd;
    --success-border: #badbcc;

    --error: #842029;
    --error-bg: #fdecea;
    --error-border: #f5c2c7;

    --warning: #664d03;
    --warning-bg: #fff3cd;
    --warning-border: #ffecb5;

    --info: #055160;
    --info-bg: #cff4fc;
    --info-border: #b6effb;

    --light: #f5f5f5;
    --dark: #222;
}

/* -------------------------------------
   BASE TYPOGRAPHY & GLOBALS
-------------------------------------- */
body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    line-height: 1.5;
}

/* -------------------------------------
   BUTTON SYSTEM (GENERIC)
-------------------------------------- */
.btn {
    display: inline-block;
    padding: 10px 18px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 15px;
    transition: .3s;
}

/* Primary button (site-wide) */
.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-dark);
}

/* Secondary button (site-wide) */
.btn-secondary {
    background: #eee;
    color: #333;
}
.btn-secondary:hover {
    background: #ddd;
}

/* Danger button */
.btn-danger {
    background: #9b1c1c;
    color: #fff;
}
.btn-danger:hover {
    background: #7a1515;
}

/* Outline button */
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 14px 24px; font-size: 18px; }

/* ======================================================
   HERO CTA BUTTONS — HIGHEST PRIORITY
   (Overrides main.css completely)
====================================================== */

header.hero .hero-buttons a.btn {
    padding: 15px 35px !important;
    border-radius: 5px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: inline-block !important;
    text-decoration: none !important;
    transition: transform .2s !important;
}

/* CTA Hover Lift */
header.hero .hero-buttons a.btn:hover {
    transform: translateY(-2px) !important;
}

/* White Primary CTA (Join Now / Dashboard) */
header.hero .hero-buttons a.btn-primary {
    background: #fff !important;
    color: #1e3c72 !important;
    border: none !important;
}

/* Transparent CTA (Member Login / Logout) */
header.hero .hero-buttons a.btn-secondary {
    background: transparent !important;
    color: #fff !important;
    border: 2px solid #fff !important;
}

/* ======================================================
   FORM SYSTEM
====================================================== */
.input,
textarea,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #aaa;
    border-radius: 6px;
    font-size: 15px;
    margin-bottom: 12px;
}

.input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(42,82,152,.15);
}

.form-group {
    margin-bottom: 15px;
}
.form-group label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

/* ======================================================
   ALERT SYSTEM
====================================================== */
.alert {
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid;
    font-size: 15px;
}

.alert-success {
    background: var(--success-bg);
    border-color: var(--success-border);
    color: var(--success);
}

.alert-error {
    background: var(--error-bg);
    border-color: var(--error-border);
    color: var(--error);
}

.alert-warning {
    background: var(--warning-bg);
    border-color: var(--warning-border);
    color: var(--warning);
}

.alert-info {
    background: var(--info-bg);
    border-color: var(--info-border);
    color: var(--info);
}

/* ======================================================
   CARDS
====================================================== */
.card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
    margin-bottom: 20px;
}

.card-title {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--primary);
}

/* ======================================================
   BADGES
====================================================== */
.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
}

.badge-green {
    background: #d4edda;
    color: #155724;
}

.badge-gray {
    background: #e2e3e5;
    color: #41464b;
}

.badge-gold {
    background: var(--accent);
    color: #222;
}

/* ======================================================
   TABLES
====================================================== */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 10px 8px;
    border-bottom: 1px solid #eee;
}

.table thead {
    background: #f8f9fb;
}

.table-striped tbody tr:nth-child(even) {
    background: #f9f9f9;
}

/* ======================================================
   GRID SYSTEM
====================================================== */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.col-6 { width: calc(50% - 10px); }
.col-4 { width: calc(33.33% - 14px); }
.col-3 { width: calc(25% - 15px); }

@media(max-width: 900px) {
    .col-6,
    .col-4,
    .col-3 {
        width: 100%;
    }
}

/* ======================================================
   MODALS
====================================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.55);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    max-width: 500px;
    width: 100%;
}

/* ======================================================
   FINAL HERO BUTTON OVERRIDES — FORCE CORRECT APPEARANCE
   ====================================================== */

header.hero .hero-buttons a.btn {
    padding: 15px 35px !important;
    border-radius: 5px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    display: inline-block !important;
    text-decoration: none !important;
    transition: transform .2s !important;
}

/* Hover lift */
header.hero .hero-buttons a.btn:hover {
    transform: translateY(-2px) !important;
}

/* Primary (white button) */
header.hero .hero-buttons a.btn-primary {
    background: #ffffff !important;
    color: #1e3c72 !important;
    border: none !important;
}

/* Secondary (transparent button) */
header.hero .hero-buttons a.btn-secondary {
    background: transparent !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
}

