/* ==========================================================================
   RISEXI — Design System
   Layered on top of Bootstrap 5. Brand identity: confident, energetic,
   global-football-modern — not a generic Bootstrap template.
   ========================================================================== */

:root {
    /* Brand palette */
    --rx-forest: #0B3D2E;      /* deep pitch green — primary */
    --rx-green: #12A150;       /* action green — buttons, links */
    --rx-green-dark: #0C7A3C;
    --rx-lime: #C8F169;        /* energetic accent — highlights, badges */
    --rx-ink: #101614;         /* near-black text */
    --rx-slate: #5B6B65;       /* muted text */
    --rx-cloud: #F4F7F5;       /* page background */
    --rx-white: #FFFFFF;
    --rx-border: #E3E9E6;

    --rx-radius-sm: 10px;
    --rx-radius: 16px;
    --rx-radius-lg: 24px;
    --rx-shadow: 0 8px 30px rgba(11, 61, 46, 0.08);
    --rx-shadow-lg: 0 20px 50px rgba(11, 61, 46, 0.14);
}

body {
    font-family: 'Sora', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--rx-cloud);
    color: var(--rx-ink);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .rx-display {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--rx-ink);
}

a { color: var(--rx-green-dark); text-decoration: none; }
a:hover { color: var(--rx-forest); }

/* ---------- Navbar ---------- */
.rx-navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--rx-border);
}

.rx-brand {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.03em;
    color: var(--rx-ink) !important;
}
.rx-brand span { color: var(--rx-green); }

.rx-navbar .nav-link {
    font-weight: 600;
    color: var(--rx-slate) !important;
    padding: 0.5rem 0.9rem !important;
}
.rx-navbar .nav-link:hover,
.rx-navbar .nav-link.active { color: var(--rx-forest) !important; }

/* ---------- Buttons ---------- */
.btn {
    border-radius: var(--rx-radius-sm);
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    transition: transform .15s ease, box-shadow .15s ease;
}
.btn-rx-primary {
    background: var(--rx-green);
    border: none;
    color: #fff;
}
.btn-rx-primary:hover {
    background: var(--rx-green-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(18, 161, 80, 0.28);
}
.btn-rx-dark {
    background: var(--rx-forest);
    border: none;
    color: #fff;
}
.btn-rx-dark:hover { background: #082c21; color: #fff; }
.btn-rx-outline {
    background: transparent;
    border: 1.5px solid var(--rx-border);
    color: var(--rx-ink);
}
.btn-rx-outline:hover { border-color: var(--rx-forest); color: var(--rx-forest); }

/* ---------- Hero ---------- */
.rx-hero {
    background:
        radial-gradient(circle at 15% 20%, rgba(200, 241, 105, 0.14), transparent 40%),
        linear-gradient(135deg, var(--rx-forest) 0%, #062318 100%);
    color: #fff;
    border-radius: 0 0 var(--rx-radius-lg) var(--rx-radius-lg);
}
.rx-hero .eyebrow {
    color: var(--rx-lime);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
}
.rx-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.rx-hero p.lead { color: rgba(255,255,255,0.82); }

/* ---------- Cards ---------- */
.rx-card {
    background: var(--rx-white);
    border: 1px solid var(--rx-border);
    border-radius: var(--rx-radius);
    box-shadow: var(--rx-shadow);
    transition: transform .18s ease, box-shadow .18s ease;
}
.rx-card:hover { transform: translateY(-3px); box-shadow: var(--rx-shadow-lg); }
.rx-card-body { padding: 1.5rem; }

/* ---------- Badges ---------- */
.rx-badge {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.rx-badge-position { background: #E9F9EE; color: var(--rx-green-dark); }
.rx-badge-lime { background: var(--rx-lime); color: var(--rx-forest); }
.rx-badge-muted { background: #EFF2F0; color: var(--rx-slate); }
.rx-badge-warning { background: #FFF4DE; color: #93650B; }

/* ---------- Forms ---------- */
.rx-form-card {
    background: #fff;
    border-radius: var(--rx-radius-lg);
    box-shadow: var(--rx-shadow);
    padding: 2.25rem;
}
.form-control, .form-select {
    border-radius: var(--rx-radius-sm);
    border: 1.5px solid var(--rx-border);
    padding: 0.65rem 0.9rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--rx-green);
    box-shadow: 0 0 0 3px rgba(18, 161, 80, 0.15);
}
label.form-label { font-weight: 600; font-size: 0.9rem; color: var(--rx-ink); }

/* ---------- Alerts ---------- */
.alert { border-radius: var(--rx-radius-sm); border: none; }
.alert-success { background: #E9F9EE; color: var(--rx-green-dark); }
.alert-danger { background: #FDEDEC; color: #A6362B; }
.alert-warning { background: #FFF4DE; color: #93650B; }

/* ---------- Footer ---------- */
.rx-footer {
    background: var(--rx-forest);
    color: rgba(255,255,255,0.7);
}
.rx-footer a { color: rgba(255,255,255,0.85); }
.rx-footer a:hover { color: var(--rx-lime); }

/* ---------- Utility ---------- */
.rx-section { padding: 4rem 0; }
@media (max-width: 767px) { .rx-section { padding: 2.5rem 0; } }

/* ---------- Reel feed (TikTok-style vertical snap) ---------- */
.rx-reel-feed {
    height: calc(100vh - 90px);
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    border-radius: var(--rx-radius-lg);
    background: #000;
    -webkit-overflow-scrolling: touch;
}
.rx-reel-feed::-webkit-scrollbar { display: none; }

.rx-reel-slide {
    position: relative;
    height: calc(100vh - 90px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
}
.rx-reel-slide video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}
.rx-reel-overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 1.5rem 1.25rem 1.75rem;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.15) 60%, transparent 100%);
    color: #fff;
}
.rx-reel-overlay .fw-semibold { color: #fff; }
.rx-reel-caption { font-size: 0.92rem; line-height: 1.4; margin-top: 0.4rem; }
.rx-hashtag { color: var(--rx-lime); font-weight: 700; }
.rx-hashtag:hover { color: #fff; }

.rx-reel-mute-btn {
    position: absolute;
    top: 1rem; right: 1rem;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.45);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 2;
}
.rx-reel-boosted {
    position: absolute;
    top: 1rem; left: 1rem;
    z-index: 2;
}
.rx-reel-timer {
    position: absolute;
    top: 1rem; left: 1rem;
    z-index: 2;
}
.rx-reel-timer + .rx-reel-boosted { left: auto; right: 4.5rem; }

.rx-reel-like-btn {
    position: absolute;
    right: 1rem; bottom: 6rem;
    background: rgba(0,0,0,0.45);
    border: none;
    color: #fff;
    border-radius: 999px;
    padding: 0.5rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    z-index: 2;
}

/* ---------- Slim word+icon navbar (Instagram/TikTok pattern) ---------- */
.rx-nav-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--rx-ink);
    line-height: 1;
    padding: 0.5rem 0.6rem;
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}
.rx-nav-link:hover { background: var(--rx-cloud); color: var(--rx-forest); }

.rx-dropdown-menu {
    min-width: 240px;
    border: none;
    border-radius: var(--rx-radius);
    box-shadow: var(--rx-shadow-lg);
    padding: 0.5rem;
}
.rx-dropdown-menu .dropdown-item {
    border-radius: var(--rx-radius-sm);
    padding: 0.55rem 0.75rem;
    font-size: 0.92rem;
}
.rx-dropdown-menu .dropdown-item:hover { background: var(--rx-cloud); }
.rx-dropdown-menu .dropdown-header { font-weight: 700; color: var(--rx-ink); }

/* ---------- Dashboard icon-grid launcher ---------- */
.rx-tile {
    display: block;
    text-decoration: none;
    text-align: center;
    padding: 1.1rem 0.5rem;
    border-radius: var(--rx-radius);
    background: #fff;
    border: 1px solid var(--rx-border);
    transition: transform .15s ease, box-shadow .15s ease;
}
.rx-tile:hover { transform: translateY(-3px); box-shadow: var(--rx-shadow); }
.rx-tile .rx-tile-icon { font-size: 1.6rem; display: block; margin-bottom: 0.3rem; }
.rx-tile .rx-tile-label { font-size: 0.78rem; font-weight: 700; color: var(--rx-ink); display: block; }
.rx-tile .rx-tile-sub { font-size: 0.68rem; color: var(--rx-slate); display: block; margin-top: 1px; }
