/**
 * Landing Page Styles - The Rider App
 * Brand: Dark theme with #BC1823 (Rider Red), #FF8210 (Orange accent)
 * Fonts: TT Hoves (headings), IBM Plex Sans (body)
 */

/* ============ Font Imports ============ */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

/* TT Hoves - self-hosted or fallback to system fonts */
@font-face {
    font-family: 'TT Hoves';
    src: local('TT Hoves'), local('TTHoves');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'TT Hoves';
    src: local('TT Hoves Bold'), local('TTHoves-Bold');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ============ Custom Properties ============ */
:root {
    /* Brand Colors */
    --landing-rider-red: #BC1823;
    --landing-rider-red-hover: #d91e2b;
    --landing-orange: #FF8210;
    --landing-orange-hover: #ff9533;
    --landing-gray: #D4D5D7;

    /* Dark Theme */
    --landing-bg-primary: #0a0a0f;
    --landing-bg-secondary: #111118;
    --landing-bg-card: #18181f;
    --landing-bg-elevated: #1f1f28;
    --landing-text-primary: #ffffff;
    --landing-text-secondary: #9ca3af;
    --landing-text-muted: #6b7280;

    /* Semantic Colors */
    --landing-accent: var(--landing-orange);
    --landing-accent-hover: var(--landing-orange-hover);
    --landing-red: var(--landing-rider-red);
    --landing-red-hover: var(--landing-rider-red-hover);
    --landing-success: #22c55e;
    --landing-error: #ef4444;
    --landing-border: rgba(255, 255, 255, 0.08);
    --landing-border-hover: rgba(255, 255, 255, 0.15);

    /* Spacing */
    --section-padding: 120px 0;
    --container-width: 1200px;
    --container-narrow: 800px;

    /* Typography */
    --font-heading: 'TT Hoves', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow-orange: 0 0 40px rgba(255, 130, 16, 0.3);
    --shadow-glow-red: 0 0 40px rgba(188, 24, 35, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--landing-bg-primary);
    color: var(--landing-text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* ============ Layout ============ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: var(--container-narrow);
}

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

.section-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    text-align: center;
    margin-bottom: 20px;
    color: var(--landing-text-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--landing-text-secondary);
    font-size: 1.25rem;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============ Buttons ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-body);
    position: relative;
    overflow: hidden;
}

.btn svg {
    flex-shrink: 0;
}

.btn-primary {
    background: linear-gradient(135deg, var(--landing-rider-red) 0%, #a01520 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(188, 24, 35, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--landing-rider-red-hover) 0%, var(--landing-rider-red) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(188, 24, 35, 0.4);
}

.btn-accent {
    background: linear-gradient(135deg, var(--landing-orange) 0%, #e67000 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(255, 130, 16, 0.25);
}

.btn-accent:hover {
    background: linear-gradient(135deg, var(--landing-orange-hover) 0%, var(--landing-orange) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255, 130, 16, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--landing-orange);
    color: var(--landing-orange);
}

.btn-outline:hover {
    background: var(--landing-orange);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 130, 16, 0.3);
}

.btn-danger {
    background: transparent;
    border: 2px solid var(--landing-error);
    color: var(--landing-error);
}

.btn-danger:hover {
    background: var(--landing-error);
    color: white;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.125rem;
    border-radius: 14px;
}

.btn-sm {
    padding: 10px 18px;
    font-size: 0.875rem;
    border-radius: 10px;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ============ Navigation ============ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.85) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

/* Helmet icon */
.nav-helmet-icon {
    height: 38px;
    width: auto;
    transition: transform var(--transition-fast);
}

/* Logo text */
.nav-logo-text {
    height: 28px;
    width: auto;
    transition: opacity var(--transition-fast);
}

.nav-logo:hover .nav-helmet-icon {
    transform: scale(1.05);
}

.nav-logo:hover .nav-logo-text {
    opacity: 0.9;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    transition: color var(--transition-fast);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
}

.nav-links .btn {
    margin-left: 8px;
    background: white;
    color: var(--landing-rider-red);
}

.nav-links .btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* ============ Language Switcher ============ */
.language-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
}

.language-switcher a {
    font-size: 1.5rem;
    text-decoration: none;
    opacity: 0.5;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    line-height: 1;
}

.language-switcher a:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.language-switcher a.active {
    opacity: 1;
    transform: scale(1.15);
}

/* Mobile: smaller flags */
@media (max-width: 768px) {
    .language-switcher a {
        font-size: 1.25rem;
    }
}

/* ============ Translation Notice ============ */
.translation-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(255, 130, 16, 0.1);
    border: 1px solid rgba(255, 130, 16, 0.3);
    border-radius: 12px;
    color: var(--landing-orange);
    font-size: 0.95rem;
    margin-bottom: 24px;
    max-width: var(--container-narrow);
    margin-left: auto;
    margin-right: auto;
}

.translation-notice svg {
    flex-shrink: 0;
    opacity: 0.9;
}

/* ============ Hero Section ============ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    padding: 120px 24px 230px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-image: url('/static/images/hero-motorcycle.jpg');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    /* Fallback gradient if image not loaded */
    background-color: #0a0a0f;
}

.hero-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.6) 40%,
        rgba(0, 0, 0, 0.3) 70%,
        transparent 100%
    );
}

.hero-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(188, 24, 35, 0.15) 0%,
        transparent 30%,
        transparent 70%,
        rgba(0, 0, 0, 0.5) 100%
    );
}

.hero-gradient {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    padding: 0 5%;
}

/* Signup section positioned to the right - use higher specificity to override .signup-section */
.signup-section.signup-section-right {
    position: absolute !important;
    right: 5%;
    max-width: 420px;
}

/* Mobile: back to normal flow, centered */
@media (max-width: 900px) {
    .signup-section.signup-section-right {
        position: static !important;
        margin: 40px auto 0;
        max-width: 100%;
    }
}

.hero-title {
    font-size: clamp(3rem, 10vw, 5.5rem);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero-title-the {
    display: block;
    font-size: 0.35em;
    font-weight: 600;
    color: white;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 8px;
    opacity: 0.9;
}

.hero-title-rider {
    display: inline-block;
    color: var(--landing-rider-red);
    text-shadow: 0 4px 30px rgba(188, 24, 35, 0.5);
}

.hero-title-app {
    display: inline-block;
    color: white;
    margin-left: 0.12em;
}

/* Hero Logo (large version) */
.hero-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(16px, 3vw, 32px);
    margin-bottom: 24px;
    max-width: 600px;
}

.hero-helmet-icon {
    height: clamp(80px, 15vw, 140px);
    width: auto;
    filter: drop-shadow(0 4px 30px rgba(255, 255, 255, 0.2));
}

.hero-logo-text {
    height: clamp(60px, 12vw, 100px);
    width: auto;
    filter: drop-shadow(0 4px 30px rgba(188, 24, 35, 0.4));
}

.hero-tagline {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.7;
    max-width: 550px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-cta {
    margin-bottom: 60px;
}

/* Coming Soon Badge */
.hero-badge {
    margin-bottom: 36px;
}

.badge-coming-soon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: white;
    background: rgba(255, 130, 16, 0.9);
    border: none;
    border-radius: 100px;
    box-shadow: 0 4px 20px rgba(255, 130, 16, 0.4);
    position: relative;
    overflow: hidden;
}

.badge-coming-soon svg {
    opacity: 0.9;
}

.badge-coming-soon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    50%, 100% { transform: translateX(100%); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--landing-text-muted);
    cursor: pointer;
    animation: bounce 2s infinite;
    transition: color var(--transition-fast);
}

.scroll-indicator:hover {
    color: var(--landing-accent);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ============ Signup Section ============ */
.signup-section {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 32px;
    border-radius: 20px;
    max-width: 480px;
    margin: 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.signup-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--landing-rider-red), var(--landing-orange));
}

.signup-section h3 {
    font-size: 1.35rem;
    margin-bottom: 6px;
    color: white;
}

.signup-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.signup-form {
    display: flex;
    gap: 10px;
}

.signup-form input {
    flex: 1;
    padding: 14px 18px;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    outline: none;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.signup-form input:focus {
    border-color: var(--landing-orange);
    background: rgba(255, 255, 255, 0.15);
}

.signup-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.signup-form .btn {
    padding: 14px 24px;
    white-space: nowrap;
    font-weight: 600;
    flex-shrink: 0;
}

.signup-message {
    margin-top: 14px;
    font-size: 0.9rem;
    min-height: 20px;
    transition: all var(--transition-fast);
}

.signup-message.success {
    color: var(--landing-success);
}

.signup-message.error {
    color: #ff6b6b;
}

/* Spinner animation */
.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* ============ Features Section ============ */
.features {
    padding: var(--section-padding);
    background: var(--landing-bg-secondary);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--landing-border-hover), transparent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: linear-gradient(180deg, var(--landing-bg-card) 0%, rgba(24, 24, 31, 0.8) 100%);
    padding: 32px;
    border-radius: 20px;
    border: 1px solid var(--landing-border);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--landing-orange), var(--landing-rider-red));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--landing-border-hover);
    box-shadow: var(--shadow-lg), var(--shadow-glow-orange);
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--landing-orange) 0%, var(--landing-rider-red) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    box-shadow: 0 8px 24px rgba(255, 130, 16, 0.25);
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--landing-text-primary);
}

.feature-card p {
    color: var(--landing-text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ============ Blog Preview Section ============ */
.blog-preview {
    padding: var(--section-padding);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.blog-card {
    background: var(--landing-bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--landing-border);
    transition: all var(--transition-normal);
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 130, 16, 0.3);
}

.blog-card-image {
    height: 200px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-image-placeholder {
    background: var(--landing-bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--landing-text-muted);
}

.blog-card-content {
    padding: 24px;
}

.blog-card-date {
    font-size: 0.85rem;
    color: var(--landing-accent);
    margin-bottom: 8px;
    display: block;
}

.blog-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.3;
}

.blog-card h3 a {
    color: var(--landing-text-primary);
    transition: color var(--transition-fast);
}

.blog-card h3 a:hover {
    color: var(--landing-accent);
}

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

.blog-more {
    text-align: center;
}

/* ============ About Section ============ */
.about {
    padding: var(--section-padding);
    background: var(--landing-bg-secondary);
}

.about-content {
    max-width: var(--container-narrow);
    margin: 0 auto;
    text-align: center;
}

.about-text {
    margin-bottom: 40px;
}

.about-text p {
    font-size: 1.125rem;
    color: var(--landing-text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-cta {
    margin-top: 32px;
}

/* ============ Footer ============ */
.footer {
    padding: 48px 24px;
    border-top: 1px solid var(--landing-border);
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-logo img {
    height: 30px;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
}

.footer-links a {
    color: var(--landing-text-secondary);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--landing-accent);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--landing-card-bg);
    color: var(--landing-text-secondary);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--landing-accent);
    color: var(--landing-bg);
    transform: translateY(-2px);
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

.footer-copyright {
    color: var(--landing-text-muted);
    font-size: 0.875rem;
}

/* ============ Blog Page ============ */
.blog-page {
    padding-top: 100px;
    min-height: 100vh;
}

.blog-header {
    text-align: center;
    margin-bottom: 48px;
    padding-top: 32px;
}

.blog-header h1 {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.blog-header p {
    color: var(--landing-text-secondary);
    font-size: 1.125rem;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 48px;
}

.blog-list-item {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
    background: var(--landing-bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--landing-border);
    transition: all var(--transition-normal);
}

.blog-list-item:hover {
    border-color: rgba(255, 130, 16, 0.3);
}

.blog-list-image {
    height: 200px;
    overflow: hidden;
}

.blog-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-list-content {
    padding: 24px 24px 24px 0;
    display: flex;
    flex-direction: column;
}

.blog-list-date {
    font-size: 0.85rem;
    color: var(--landing-accent);
    margin-bottom: 8px;
}

.blog-list-content h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.blog-list-content h2 a {
    color: var(--landing-text-primary);
    transition: color var(--transition-fast);
}

.blog-list-content h2 a:hover {
    color: var(--landing-accent);
}

.blog-list-content p {
    color: var(--landing-text-secondary);
    flex: 1;
    margin-bottom: 16px;
}

.blog-list-link {
    color: var(--landing-accent);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.blog-list-link:hover {
    color: var(--landing-accent-hover);
}

.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.blog-empty {
    text-align: center;
    padding: 80px 24px;
}

.blog-empty h2 {
    margin-bottom: 12px;
}

.blog-empty p {
    color: var(--landing-text-secondary);
    margin-bottom: 24px;
}

/* ============ Blog Post Page ============ */
.blog-post-page {
    padding-top: 80px;
    min-height: 100vh;
}

.blog-post-header {
    padding: 60px 0 40px;
    text-align: center;
}

.blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--landing-text-secondary);
    margin-bottom: 24px;
    transition: color var(--transition-fast);
}

.blog-back-link:hover {
    color: var(--landing-accent);
}

.blog-post-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 16px;
    max-width: var(--container-narrow);
    margin-left: auto;
    margin-right: auto;
}

.blog-post-meta {
    color: var(--landing-text-secondary);
    font-size: 0.95rem;
}

.blog-post-separator {
    margin: 0 12px;
}

.blog-post-image {
    max-width: 1000px;
    margin: 0 auto 48px;
}

.blog-post-image img {
    width: 100%;
    border-radius: 16px;
}

.blog-post-content {
    padding-bottom: 48px;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--landing-text-secondary);
}

/* Headers in blog posts */
.blog-post-content h1 {
    font-size: 2rem;
    margin: 48px 0 20px;
    color: var(--landing-text-primary);
    font-weight: 700;
}

.blog-post-content h2 {
    font-size: 1.75rem;
    margin: 40px 0 16px;
    color: var(--landing-text-primary);
    font-weight: 600;
}

.blog-post-content h3 {
    font-size: 1.375rem;
    margin: 32px 0 12px;
    color: var(--landing-text-primary);
    font-weight: 600;
}

/* Standalone bold text as subheadings */
.blog-post-content p > strong:first-child:last-child,
.blog-post-content strong {
    color: var(--landing-text-primary);
    font-weight: 600;
}

/* Paragraphs with proper spacing */
.blog-post-content p {
    color: var(--landing-text-secondary);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

/* First paragraph after a heading */
.blog-post-content h1 + p,
.blog-post-content h2 + p,
.blog-post-content h3 + p {
    margin-top: 0;
}

/* Make sure there's space between elements */
.blog-post-content > * + * {
    margin-top: 1.5em;
}

.blog-post-content > p + p {
    margin-top: 0;
}

.blog-post-content ul,
.blog-post-content ol {
    color: var(--landing-text-secondary);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 24px;
    padding-left: 24px;
}

.blog-post-content li {
    margin-bottom: 8px;
}

.blog-post-content a {
    color: var(--landing-accent);
    text-decoration: underline;
}

.blog-post-content a:hover {
    color: var(--landing-accent-hover);
}

.blog-post-content img {
    border-radius: 8px;
    margin: 24px 0;
}

.blog-post-content blockquote {
    border-left: 4px solid var(--landing-accent);
    padding-left: 24px;
    margin: 32px 0;
    font-style: italic;
    color: var(--landing-text-secondary);
}

.blog-post-footer {
    padding: 48px 0;
    border-top: 1px solid var(--landing-border);
}

.blog-post-share {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
}

.blog-post-share span {
    color: var(--landing-text-secondary);
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--landing-bg-card);
    color: var(--landing-text-secondary);
    transition: all var(--transition-fast);
}

.share-btn:hover {
    background: var(--landing-accent);
    color: white;
}

.blog-post-cta {
    background: var(--landing-bg-card);
    padding: 32px;
    border-radius: 16px;
    text-align: center;
}

.blog-post-cta h3 {
    margin-bottom: 8px;
}

.blog-post-cta p {
    color: var(--landing-text-secondary);
    margin-bottom: 20px;
}

/* ============ Admin Styles ============ */
.admin-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.admin-login-card {
    background: var(--landing-bg-card);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--landing-border);
}

.admin-login-header {
    text-align: center;
    margin-bottom: 32px;
}

.admin-login-header img {
    margin: 0 auto 16px;
}

.admin-helmet-icon {
    height: 48px;
    width: auto;
}

.admin-login-header h1 {
    font-size: 1.5rem;
    color: var(--landing-text-primary);
}

.admin-login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-login-footer {
    text-align: center;
    margin-top: 24px;
}

.admin-login-footer a {
    color: var(--landing-text-secondary);
    transition: color var(--transition-fast);
}

.admin-login-footer a:hover {
    color: var(--landing-accent);
}

/* Admin Page Layout */
.admin-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-header {
    background: var(--landing-bg-card);
    border-bottom: 1px solid var(--landing-border);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-logo img {
    height: 32px;
}

.admin-title {
    font-weight: 600;
    color: var(--landing-text-secondary);
}

.admin-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-user {
    color: var(--landing-text-secondary);
}

.admin-main {
    flex: 1;
    padding: 32px 24px;
}

.admin-container {
    max-width: 1000px;
    margin: 0 auto;
}

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.admin-toolbar h1 {
    font-size: 1.75rem;
}

.admin-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--landing-text-secondary);
    transition: color var(--transition-fast);
}

.admin-back-link:hover {
    color: var(--landing-accent);
}

/* Admin Alerts */
.admin-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.admin-alert-success {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    color: var(--landing-success);
}

.admin-alert-error {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: var(--landing-error);
}

/* Admin Table */
.admin-table-wrapper {
    background: var(--landing-bg-card);
    border-radius: 12px;
    border: 1px solid var(--landing-border);
    overflow: hidden;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--landing-border);
}

.admin-table th {
    background: var(--landing-bg-elevated);
    color: var(--landing-text-secondary);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table-title a {
    color: var(--landing-text-primary);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.admin-table-title a:hover {
    color: var(--landing-accent);
}

.admin-table-actions {
    display: flex;
    gap: 8px;
}

/* Status Badge */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge.published {
    background: rgba(74, 222, 128, 0.15);
    color: var(--landing-success);
}

.status-badge.draft {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.status-badge.scheduled {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

/* Admin Empty State */
.admin-empty {
    text-align: center;
    padding: 80px 24px;
    background: var(--landing-bg-card);
    border-radius: 12px;
    border: 1px solid var(--landing-border);
}

.admin-empty svg {
    color: var(--landing-text-muted);
    margin-bottom: 24px;
}

.admin-empty h2 {
    margin-bottom: 8px;
}

.admin-empty p {
    color: var(--landing-text-secondary);
    margin-bottom: 24px;
}

/* Admin Form */
.admin-form-container {
    background: var(--landing-bg-card);
    border-radius: 12px;
    border: 1px solid var(--landing-border);
    padding: 32px;
}

.admin-form-container h1 {
    margin-bottom: 24px;
}

.form-required-hint {
    font-size: 0.9rem;
    color: var(--landing-text-muted);
    margin-bottom: 16px;
}

.required-star {
    color: #ef4444;
    font-weight: bold;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: var(--landing-text-primary);
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    font-size: 1rem;
    border: 2px solid var(--landing-border);
    border-radius: 8px;
    background: var(--landing-bg-secondary);
    color: white;
    outline: none;
    font-family: inherit;
    transition: border-color var(--transition-fast);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--landing-accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--landing-text-muted);
}

.form-help {
    font-size: 0.85rem;
    color: var(--landing-text-muted);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.form-group-checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--landing-accent);
}

.form-actions {
    display: flex;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--landing-border);
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content {
        margin-left: 3%;
    }

    .nav-brand-text {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero {
        align-items: center;
        text-align: center;
        padding: 100px 20px 60px;
    }

    .hero-content {
        margin-left: 0;
        max-width: 100%;
    }

    .hero-background::before {
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0.5) 50%,
            rgba(0, 0, 0, 0.7) 100%
        );
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .signup-section {
        max-width: 100%;
    }

    .signup-form {
        flex-direction: column;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .nav-links a:not(.btn) {
        display: none;
    }

    .blog-list-item {
        grid-template-columns: 1fr;
    }

    .blog-list-content {
        padding: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .admin-table-actions {
        flex-direction: column;
    }

    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .feature-card {
        padding: 24px;
    }
}
