/* ============================================================================
  Mobile responsive key breakpoints.
   ============================================================================ */

   /* Tablet */
@media (max-width: 768px) {
    .topbar-container {
        flex-direction: column;
        padding: 12px;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: none; /* Or make it a dropdown */
    }
}

/**
 * UpThread Homepage Styles
 * LinkedIn-inspired blue & white design
 */

/* ═══════════════════════════════════════════════════════════════════════════
   VARIABLES & RESET
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    /* LinkedIn-inspired colors */
    --linkedin-blue: #0A66C2;
    --linkedin-blue-dark: #004182;
    --linkedin-blue-light: #378FE9;
    --linkedin-white: #FFFFFF;
    --linkedin-gray-100: #F3F2EF;
    --linkedin-gray-200: #E9E5DF;
    --linkedin-gray-300: #00000099;
    --linkedin-gray-400: #00000066;
    --text-primary: #000000E6;
    --text-secondary: #00000099;
    --border-color: #00000014;
    --success: #057642;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background: var(--linkedin-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════════════════════════════════════════
   NAVIGATION BAR
   ═══════════════════════════════════════════════════════════════════════════ */

.navbar {
    background: var(--linkedin-white);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

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

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 36px;
    width: auto;
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--linkedin-blue);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link.active {
    color: var(--text-primary);
    font-weight: 600;
}

.nav-link-signin {
    color: var(--linkedin-blue);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 24px;
    transition: all 0.2s;
}

.nav-link-signin:hover {
    background: var(--linkedin-gray-100);
}

.btn-primary {
    background: var(--linkedin-blue);
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 24px;
    transition: all 0.2s;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--linkedin-blue-dark);
    box-shadow: var(--shadow-md);
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.hero {
    background: linear-gradient(135deg, #F3F2EF 0%, #FFFFFF 100%);
    padding: 80px 0;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.highlight {
    color: var(--linkedin-blue);
    position: relative;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: var(--linkedin-blue);
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 28px;
    transition: all 0.2s;
    display: inline-block;
    box-shadow: var(--shadow-md);
}

.btn-hero-primary:hover {
    background: var(--linkedin-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-hero-secondary {
    background: white;
    color: var(--linkedin-blue);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 28px;
    border: 2px solid var(--linkedin-blue);
    transition: all 0.2s;
    display: inline-block;
}

.btn-hero-secondary:hover {
    background: var(--linkedin-gray-100);
}

.hero-caption {
    font-size: 14px;
    color: var(--text-secondary);
}

.hero-image {
    animation: fadeInRight 0.8s ease-out;
}

.preview-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    position: relative;
}

.preview-header {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.preview-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--linkedin-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.preview-info {
    flex: 1;
}

.preview-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.preview-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

.preview-content {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
}

.preview-content p {
    margin-bottom: 8px;
}

.preview-hashtags {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hashtag {
    color: var(--linkedin-blue);
    font-size: 14px;
    font-weight: 500;
}

.preview-badge {
    position: absolute;
    bottom: -12px;
    right: 20px;
    background: var(--success);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

/* ═══════════════════════════════════════════════════════════════════════════
   STATS SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.stats {
    background: white;
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--linkedin-blue);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   HOW IT WORKS SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.how-it-works {
    padding: 80px 0;
    background: var(--linkedin-gray-100);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 18px;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 60px;
}

.steps {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 60px;
}

.step {
    background: white;
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.step-number {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    background: var(--linkedin-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.step-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.step-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.step-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-arrow {
    font-size: 32px;
    color: var(--linkedin-blue);
    font-weight: 300;
}

.cta-centered {
    text-align: center;
}

.btn-primary-large {
    background: var(--linkedin-blue);
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    padding: 18px 40px;
    border-radius: 28px;
    transition: all 0.2s;
    display: inline-block;
    box-shadow: var(--shadow-md);
}

.btn-primary-large:hover {
    background: var(--linkedin-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FEATURES SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.features {
    padding: 80px 0;
    background: white;
}

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

.feature-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TRY FREE SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.try-free {
    background: linear-gradient(135deg, var(--linkedin-blue) 0%, var(--linkedin-blue-dark) 100%);
    padding: 80px 0;
    color: white;
}

.try-free-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.try-free-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
}

.try-free-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
}

.try-free-cta {
    text-align: left;
}

.try-free-caption {
    margin-top: 16px;
    font-size: 14px;
    opacity: 0.8;
}

.link {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

.link:hover {
    opacity: 0.8;
}

.try-free-features {
    display: grid;
    gap: 16px;
}

.free-feature {
    font-size: 18px;
    font-weight: 500;
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */

.footer {
    background: var(--linkedin-gray-100);
    padding: 60px 0 24px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 32px;
    width: auto;
    margin-bottom: 12px;
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-column a {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--linkedin-blue);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 24px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-image {
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-title {
        font-size: 42px;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .step-arrow {
        display: none;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .try-free-container {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-right {
        gap: 12px;
    }

    .nav-link {
        display: none;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        text-align: center;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

    .section-title {
        font-size: 32px;
    }

    .try-free-title {
        font-size: 32px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
