/* ============================================
   SideHustler.com — Dark Glassmorphism Design
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #06060e;
    --bg-elevated: #0c0c18;
    --surface: rgba(255, 255, 255, 0.03);
    --glass: rgba(255, 255, 255, 0.06);
    --glass-hover: rgba(255, 255, 255, 0.09);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.14);
    --text: #e8e8ed;
    --text-secondary: #8a8a9a;
    --text-muted: #5a5a6a;
    --accent: #6366f1;
    --accent-light: #818cf8;
    --cyan: #22d3ee;
    --gradient: linear-gradient(135deg, #6366f1, #22d3ee);
    --gradient-subtle: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(34, 211, 238, 0.15));
    --success: #10b981;
    --error: #ef4444;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --blur: 20px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Space Grotesk', var(--font);
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    overflow-x: hidden;
}

a {
    color: var(--accent-light);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--cyan);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: clamp(1.05rem, 2vw, 1.25rem); }

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-number {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--cyan);
    font-size: 1.1em;
}

/* --- Layout --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.container-narrow {
    max-width: 800px;
}

section {
    padding: clamp(3rem, 8vw, 6rem) 0;
}

/* --- Glass Components --- */
.glass {
    background: var(--glass);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: clamp(1.5rem, 3vw, 2rem);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.glass-card:hover {
    transform: translateY(-4px);
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(99, 102, 241, 0.06);
}

.glass-surface {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: background var(--transition), padding var(--transition);
}

.nav.scrolled {
    background: rgba(6, 6, 14, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.6rem 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo .logo-accent {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-xs);
    transition: color var(--transition), background var(--transition);
}

.nav-links a:hover,
.nav-links a.nav-active {
    color: var(--text);
    background: var(--surface);
}

.nav-cta {
    background: var(--gradient) !important;
    color: #fff !important;
    font-weight: 600 !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: var(--radius-sm) !important;
}

.nav-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Mobile nav */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(6, 6, 14, 0.95);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--glass-border);
        padding: 1rem;
        gap: 0.25rem;
    }
    .nav-links.open { display: flex; }
    .nav-links a {
        padding: 0.75rem 1rem;
        width: 100%;
    }
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 5rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
    animation: floatOrb 15s ease-in-out infinite;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.08) 0%, transparent 70%);
    animation: floatOrb 18s ease-in-out infinite reverse;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-subtle);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    padding: 0.4rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-light);
    margin-bottom: 1.5rem;
}

.hero h1 {
    margin-bottom: 1.25rem;
}

.hero-sub {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

/* --- Newsletter Form --- */
.newsletter-form {
    display: flex;
    gap: 0.75rem;
    max-width: 480px;
    margin: 0 auto;
}

.newsletter-form .input-wrap {
    flex: 1;
    position: relative;
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.newsletter-form input[type="email"]::placeholder {
    color: var(--text-muted);
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15), 0 0 20px rgba(99, 102, 241, 0.1);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.8rem;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.4);
}

.btn-ghost {
    background: var(--glass);
    color: var(--text);
    border: 1px solid var(--glass-border);
}

.btn-ghost:hover {
    background: var(--glass-hover);
    border-color: var(--glass-border-hover);
}

@media (max-width: 520px) {
    .newsletter-form {
        flex-direction: column;
    }
    .btn { width: 100%; }
}

/* Newsletter response */
.newsletter-response {
    margin-top: 1rem;
    font-size: 0.9rem;
    min-height: 1.5em;
    transition: opacity var(--transition);
}

.newsletter-response.success { color: var(--success); }
.newsletter-response.error { color: var(--error); }

/* --- Category Grid --- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2.5vw, 1.5rem);
}

@media (max-width: 900px) {
    .category-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .category-grid { grid-template-columns: 1fr; }
}

.category-card {
    position: relative;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity var(--transition);
}

.category-card:hover::before {
    opacity: 1;
}

.category-card .card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-subtle);
    border-radius: var(--radius-sm);
    color: var(--accent-light);
}

.category-card h3 {
    font-size: 1.15rem;
    margin: 0;
}

.category-card .card-tagline {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.category-card .card-stat {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--cyan);
    font-weight: 600;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--glass-border);
}

.category-card .card-arrow {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    opacity: 0;
    transform: translate(-4px, 4px);
    transition: all var(--transition);
    color: var(--accent-light);
}

.category-card:hover .card-arrow {
    opacity: 1;
    transform: translate(0, 0);
}

/* --- Trust Section --- */
.trust-section {
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    background: var(--surface);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

@media (max-width: 700px) {
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.trust-item .trust-number {
    font-family: var(--font-mono);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.5rem;
}

.trust-item .trust-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- Featured Insights --- */
.insight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2.5vw, 1.5rem);
}

@media (max-width: 800px) {
    .insight-grid { grid-template-columns: 1fr; }
}

.insight-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.insight-card .insight-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-light);
}

.insight-card h4 {
    font-size: 1.1rem;
}

.insight-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.insight-card .insight-stat {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--cyan);
    margin: 0.5rem 0;
}

/* --- Bottom CTA Banner --- */
.cta-banner {
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient);
    opacity: 0.06;
    border-radius: var(--radius);
}

.cta-inner {
    position: relative;
    text-align: center;
    padding: clamp(2rem, 5vw, 3.5rem);
}

.cta-inner h2 {
    margin-bottom: 0.75rem;
}

.cta-inner p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Category Page Hero --- */
.page-hero {
    padding: clamp(7rem, 12vw, 10rem) 0 clamp(3rem, 6vw, 5rem);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: var(--gradient);
    opacity: 0.3;
}

.page-hero .hero-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-subtle);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius);
    color: var(--accent-light);
    margin-bottom: 1.5rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb .sep {
    color: var(--text-muted);
}

.page-hero h1 {
    margin-bottom: 0.75rem;
}

.page-hero .page-stat {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--cyan);
    font-weight: 600;
}

/* --- Content Sections (Category Pages) --- */
.content-section {
    padding: clamp(2rem, 5vw, 4rem) 0;
}

.content-section + .content-section {
    border-top: 1px solid var(--glass-border);
}

.content-block {
    max-width: 800px;
}

.content-block h2 {
    margin-bottom: 1rem;
}

.content-block h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--accent-light);
}

.content-block p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.content-block p strong {
    color: var(--text);
    font-weight: 600;
}

.content-block ul, .content-block ol {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.content-block li {
    margin-bottom: 0.6rem;
    line-height: 1.7;
}

.content-block li strong {
    color: var(--text);
}

/* Callout / tip box */
.callout {
    background: var(--gradient-subtle);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}

.callout p {
    color: var(--text);
    margin: 0;
    font-size: 0.95rem;
}

.callout .callout-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-light);
    margin-bottom: 0.5rem;
}

/* Reddit quote */
.reddit-quote {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-left: 3px solid var(--cyan);
    border-radius: var(--radius-sm);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text);
}

.reddit-quote .quote-source {
    font-style: normal;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    font-family: var(--font-mono);
}

/* Stat highlight */
.stat-highlight {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 1rem 1.5rem;
    margin: 1rem 0;
}

.stat-highlight .stat-value {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--cyan);
}

.stat-highlight .stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Platform comparison table */
.platform-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.platform-table thead th {
    background: var(--glass);
    color: var(--text);
    font-weight: 600;
    padding: 0.9rem 1.2rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.platform-table thead th:first-child {
    border-radius: var(--radius-sm) 0 0 0;
}

.platform-table thead th:last-child {
    border-radius: 0 var(--radius-sm) 0 0;
}

.platform-table td {
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.platform-table tbody tr:hover td {
    background: var(--surface);
    color: var(--text);
}

/* Mid-page newsletter CTA */
.mid-cta {
    text-align: center;
    padding: 2.5rem;
    margin: 2.5rem 0;
}

.mid-cta h3 {
    color: var(--text) !important;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.mid-cta p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* --- Footer --- */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: clamp(3rem, 6vw, 5rem) 0 2rem;
    background: var(--surface);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 700px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.75rem;
    max-width: 300px;
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-col a:hover {
    color: var(--text);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 500px) {
    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* --- About Page --- */
.about-hero {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.about-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient-subtle);
    border: 2px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: var(--accent-light);
}

.about-content {
    max-width: 640px;
    margin: 0 auto;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* --- Section Headers --- */
.section-header {
    text-align: center;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-header p {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0.75rem auto 0;
    font-size: 1rem;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-light);
    margin-bottom: 0.75rem;
    display: block;
}

/* --- Utility --- */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.text-center { text-align: center; }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
