/* Chicago's Money - Main Stylesheet */
/* Core variables and base styles */

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

:root {
    --navbar-height: 72px;
    --alert-bar-height: 0px;
    --primary-blue: #0047AB;
    --success-green: #00C851;
    --warning-yellow: #FFB000;
    --dark-bg: #05060f;
    --card-bg: rgba(10, 13, 26, 0.65);
    --text-primary: #1a1a1a;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    overflow-x: hidden;
    padding-top: calc(var(--navbar-height, 72px) + var(--alert-bar-height, 0px));
}

/* Professional Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.scroll-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #0047AB, #00C851, #FFB000);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.1s ease-out;
    z-index: 1001;
}

.navbar.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.logo-chicago {
    color: #0047AB;
}

.logo-dollar {
    color: #00C851;
    font-size: 2rem;
    margin: 0 2px;
    animation: pulse 3s ease-in-out infinite;
}

.logo-money {
    color: #FFB000;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.9; }
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: #0047AB;
    transform: translateY(-1px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #0047AB;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    background: linear-gradient(135deg, #0047AB, #001F3F);
    color: white !important;
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 71, 171, 0.2);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 71, 171, 0.3);
}

.nav-cta::after {
    display: none;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #1a1a1a;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Alert Bar */
.alert-bar {
    --alert-scroll-duration: 120s;
    --alert-marquee-play: running;
    background: linear-gradient(90deg, #CE1141, #dc2626);
    color: white;
    padding: 0.75rem 1rem;
    font-weight: 600;
    position: fixed;
    top: var(--navbar-height, 72px);
    left: 0;
    right: 0;
    z-index: 980;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-bar[data-paused="true"] {
    --alert-marquee-play: paused;
}

.alert-bar-track {
    position: relative;
    overflow: hidden;
    flex: 1 1 auto;
    min-width: 0;
}

.alert-bar-content {
    display: inline-flex;
    align-items: center;
    gap: 3rem;
    white-space: nowrap;
    animation: scrollText var(--alert-scroll-duration, 120s) linear infinite;
    -webkit-animation: scrollText var(--alert-scroll-duration, 120s) linear infinite;
    animation-play-state: var(--alert-marquee-play, running);
    -webkit-animation-play-state: var(--alert-marquee-play, running);
    will-change: transform;
}

.alert-bar-content span {
    display: inline-block;
    white-space: nowrap;
}

.alert-bar-toggle {
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.alert-bar-toggle:hover,
.alert-bar-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
}

.alert-bar[data-paused="true"] .alert-bar-toggle {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.7);
}

@keyframes scrollText {
    0% {
        transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
        -webkit-transform: translate3d(-50%, 0, 0);
    }
}

@-webkit-keyframes scrollText {
    0% {
        -webkit-transform: translate3d(0, 0, 0);
    }
    100% {
        -webkit-transform: translate3d(-50%, 0, 0);
    }
}

/* Button Base Styles */
.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
    --magnetic-x: 0px;
    --magnetic-y: 0px;
    --hover-lift: 0px;
    transform: translate3d(calc(var(--magnetic-x)), calc(var(--magnetic-y) - var(--hover-lift)), 0);
}

.btn-primary {
    background: linear-gradient(135deg, #347cff, #0047AB);
    color: white;
    box-shadow: 0 18px 35px -18px rgba(52, 124, 255, 0.8);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 70%);
    transform: scale(0);
    transition: transform 0.5s ease-out;
    border-radius: inherit;
}

.btn-primary:active::before {
    transform: scale(2.5);
    transition: transform 0s;
}

.btn-primary:hover {
    --hover-lift: 2px;
    transform: translate3d(calc(var(--magnetic-x)), calc(var(--magnetic-y) - var(--hover-lift)), 0) scale(1.02);
    box-shadow: 0 22px 50px -20px rgba(52, 124, 255, 1), 0 0 30px -10px rgba(52, 124, 255, 0.6);
}

.btn-primary svg {
    transition: transform 0.3s ease;
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #9cc8ff;
    border: 1px solid rgba(124, 208, 255, 0.3);
    backdrop-filter: blur(6px);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(124, 208, 255, 0.2), transparent 70%);
    transform: scale(0);
    transition: transform 0.5s ease-out;
    border-radius: inherit;
}

.btn-secondary:active::before {
    transform: scale(2.5);
    transition: transform 0s;
}

.btn-secondary:hover {
    background: rgba(124, 208, 255, 0.15);
    color: #c4e4ff;
    --hover-lift: 2px;
    border-color: rgba(124, 208, 255, 0.5);
    box-shadow: 0 8px 30px -10px rgba(124, 208, 255, 0.4);
}

/* Section Styles */
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.section-description {
    font-size: 1.125rem;
    color: #6b7280;
}

/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 2px solid #0047AB;
    outline-offset: 2px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0047AB, #001F3F);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 71, 171, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 30px rgba(0, 71, 171, 0.6);
}

.back-to-top:active {
    transform: translateY(-2px);
}

/* Loading Animation */
.skeleton {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Mobile Responsive Base */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .alert-bar {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
        top: var(--navbar-height, 60px);
        --alert-scroll-duration: 75s;
    }

    .alert-bar-content {
        gap: 2rem;
    }

    .alert-bar-toggle {
        padding: 0.25rem 0.6rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .alert-bar {
        font-size: 0.8rem;
        gap: 0.35rem;
    }

    .alert-bar-content {
        gap: 1.5rem;
    }

    .alert-bar-toggle {
        padding: 0.2rem 0.5rem;
        font-size: 0.65rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}