/*
 * Robinhood Silver — Editorial Light & Metallic Design System
 */

:root {
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --bg-silver-subtle: #f1f5f9;

    --rh-emerald: #15803d;
    --rh-green-dark: #0f5435;
    --rh-green-bright: #00c805;
    --rh-silver: #64748b;
    --rh-silver-light: #cbd5e1;

    --border-light: #e2e8f0;
    --border-dark: #cbd5e1;

    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 9999px;

    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08);

    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    background-color: var(--bg-white);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-white);
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--rh-green-dark);
}

/* Top Announcement Banner */
.rh-top-banner {
    background-color: var(--rh-emerald);
    color: #ffffff;
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
}

.rh-top-banner a {
    color: #ffffff;
    text-decoration: underline;
    margin-left: 0.5rem;
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    padding: 1.1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-primary) !important;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
}

.navbar-brand img.logo-img {
    height: 32px;
    width: 32px;
    object-fit: contain;
}

.nav-link {
    font-weight: 600;
    color: var(--text-secondary) !important;
    font-size: 0.94rem;
    padding: 0.45rem 1.1rem !important;
    transition: var(--transition);
    text-decoration: none;
    border-radius: var(--radius-sm);
}

.nav-link:hover, .nav-link.active {
    color: var(--rh-green-dark) !important;
    background-color: var(--bg-light);
}

/* Buttons */
.btn-rh-green {
    background: var(--rh-green-dark);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.7rem 1.7rem;
    border-radius: var(--radius-pill);
    border: none;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn-rh-green:hover {
    background: #093b24;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(15, 84, 53, 0.3);
}

.btn-rh-outline {
    background: #ffffff;
    border: 1px solid var(--border-dark);
    color: var(--text-primary) !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.7rem 1.7rem;
    border-radius: var(--radius-pill);
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn-rh-outline:hover {
    background: var(--bg-light);
    border-color: var(--rh-green-dark);
    color: var(--rh-green-dark) !important;
}

/* Hero Section */
.hero-section {
    padding: 6rem 0 5rem;
    background: radial-gradient(circle at 50% 15%, rgba(100, 116, 139, 0.1) 0%, transparent 65%);
}

.hero-title {
    font-size: clamp(2.7rem, 5.5vw, 4.6rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.1;
    color: var(--text-primary);
}

.hero-lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto;
}

/* Metallic Silver Cards */
.silver-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    transition: var(--transition);
    height: 100%;
}

.silver-card:hover {
    border-color: var(--rh-silver-light);
    box-shadow: 0 10px 25px rgba(100, 116, 139, 0.12);
    transform: translateY(-3px);
}

.badge-gain {
    background-color: rgba(0, 200, 5, 0.12);
    color: #008803;
    font-weight: 700;
    font-family: var(--font-mono);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
}

/* Ticker Marquee Bar */
.rh-ticker-bar {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 0.85rem 0;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

/* Modals & Form */
.modal-content {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}

.form-control, .form-select {
    background: var(--bg-light) !important;
    border: 1px solid var(--border-light) !important;
    color: var(--text-primary) !important;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
}

/* Footer */
footer {
    background-color: #ffffff;
    border-top: 1px solid var(--border-light);
    padding: 4.5rem 0 2.5rem;
    margin-top: auto;
}

footer h5 {
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: var(--rh-green-dark);
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer ul li {
    margin-bottom: 0.75rem;
}
