/* ============================================
   WEFLUENCE HELP CENTER - PREMIUM CSS
   Modern, Clean, Top-Tier Startup Design
   ============================================ */

/* CSS Variables - Design System */
:root {
    /* Primary Colors */
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-light: #3B82F6;
    --primary-bg: #EFF6FF;

    /* Accent Colors */
    --accent-green: #10B981;
    --accent-green-bg: #ECFDF5;
    --accent-orange: #F59E0B;
    --accent-orange-bg: #FFF7ED;
    --accent-purple: #8B5CF6;
    --accent-purple-bg: #F3E8FF;
    --accent-red: #EF4444;
    --accent-red-bg: #FEF2F2;

    /* Neutrals */
    --text-primary: #111827;
    --text-secondary: #4B5563;
    --text-muted: #9CA3AF;
    --border: #E5E7EB;
    --border-light: #F3F4F6;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --bg-tertiary: #F3F4F6;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-primary: 0 10px 40px -10px rgba(37, 99, 235, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Spacing */
    --container-max: 1200px;
    --container-padding: 24px;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-base);
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Skip to Content (Accessibility) */
.skip-to-content {
    position: fixed;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 14px;
    z-index: 9999;
    transition: top var(--transition-base);
    box-shadow: var(--shadow-xl);
}

.skip-to-content:focus {
    top: 20px;
    outline: none;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.back-to-top:active {
    transform: translateY(-2px);
}

/* Keyboard Shortcut Hint */
.keyboard-hint {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
    z-index: 1000;
}

.keyboard-hint.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.keyboard-key {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, monospace;
    font-weight: 600;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }

    .keyboard-hint {
        display: none;
    }
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 18px;
}

.logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-badge {
    background: var(--primary-bg);
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.nav-link:hover {
    color: var(--primary);
    background: var(--primary-bg);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 50%, #F0F9FF 100%);
    padding: 80px 0 100px;
    position: relative;
    overflow: visible;
    z-index: 10;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
}

.badge-icon {
    font-size: 16px;
}

.hero-title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* Search Container */
.search-container {
    max-width: 560px;
    margin: 0 auto;
    position: relative;
    z-index: 100;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-input {
    width: 100%;
    padding: 18px 24px 18px 56px;
    font-size: 16px;
    font-family: inherit;
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    background: white;
    color: var(--text-primary);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--shadow-xl), 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.search-input::placeholder {
    color: var(--text-muted);
}

/* Search Results Dropdown - Algolia Style */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2xl);
    border: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
    z-index: 1000;
    max-height: 480px;
    overflow: hidden;
}

.search-results-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

.search-results-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.search-results-hint {
    font-size: 11px;
    color: var(--text-muted);
}

.search-results-list {
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover,
.search-result-item.selected {
    background: var(--primary-bg);
}

.search-result-item.selected {
    border-left: 3px solid var(--primary);
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-category {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    background: var(--primary-bg);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
}

.search-result-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-title mark {
    background: #FEF08A;
    color: var(--text-primary);
    padding: 0 2px;
    border-radius: 2px;
}

.search-result-excerpt {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-excerpt mark {
    background: #FEF08A;
    color: var(--text-secondary);
    padding: 0 1px;
    border-radius: 2px;
}

.search-result-arrow {
    font-size: 16px;
    color: var(--text-muted);
    margin-left: 12px;
    opacity: 0;
    transform: translateX(-4px);
    transition: all var(--transition-fast);
}

.search-result-item:hover .search-result-arrow,
.search-result-item.selected .search-result-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--primary);
}

.search-no-results {
    padding: 40px 24px;
    text-align: center;
}

.search-no-results-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 12px;
}

.search-no-results p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.search-no-results-hint {
    font-size: 12px;
    color: var(--text-muted);
}

/* Floating Cards */
.hero-visual {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 12px 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    animation: float 6s ease-in-out infinite;
}

.card-icon {
    font-size: 18px;
}

.card-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 30%;
    right: 12%;
    animation-delay: 2s;
}

.card-3 {
    bottom: 25%;
    right: 8%;
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Hide floating cards on mobile */
@media (max-width: 768px) {
    .hero-visual {
        display: none;
    }
}

/* ============================================
   CATEGORIES SECTION
   ============================================ */
.categories-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 48px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.category-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px;
    transition: all var(--transition-base);
    display: block;
}

.category-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.category-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.category-icon.getting-started {
    background: var(--accent-green-bg);
    color: var(--accent-green);
}

.category-icon.publisher {
    background: var(--primary-bg);
    color: var(--primary);
}

.category-icon.kreator {
    background: var(--accent-purple-bg);
    color: var(--accent-purple);
}

.category-icon.pembayaran {
    background: var(--accent-orange-bg);
    color: var(--accent-orange);
}

.category-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.category-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.category-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   ARTICLES SECTION
   ============================================ */
.articles-section {
    padding: 60px 0 100px;
    background: var(--bg-secondary);
}

.article-group {
    margin-bottom: 60px;
}

.article-group:last-child {
    margin-bottom: 0;
}

.group-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.group-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.group-icon.getting-started {
    background: var(--accent-green-bg);
}

.group-icon.publisher {
    background: var(--primary-bg);
}

.group-icon.kreator {
    background: var(--accent-purple-bg);
}

.group-icon.pembayaran {
    background: var(--accent-orange-bg);
}

.group-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.group-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.article-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: all var(--transition-base);
}

.article-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.article-content {
    flex: 1;
}

.article-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.article-badge.new {
    background: var(--accent-green-bg);
    color: var(--accent-green);
}

.article-badge.popular {
    background: var(--primary-bg);
    color: var(--primary);
}

.article-badge.important {
    background: var(--accent-orange-bg);
    color: var(--accent-orange);
}

.article-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.4;
}

.article-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.article-arrow {
    font-size: 20px;
    color: var(--text-muted);
    transition: all var(--transition-base);
}

.article-card:hover .article-arrow {
    color: var(--primary);
    transform: translateX(4px);
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-item:hover {
    background: var(--bg-tertiary);
}

.faq-question {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    transition: all var(--transition-base);
}

.faq-toggle {
    font-size: 24px;
    font-weight: 300;
    color: var(--text-muted);
    transition: all var(--transition-base);
}

.faq-item.open .faq-toggle {
    transform: rotate(45deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-slow);
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-answer code {
    background: var(--bg-tertiary);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 13px;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
}

.cta-content {
    text-align: center;
}

.cta-title {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.cta-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-weight: 600;
    transition: all var(--transition-base);
}

.cta-button.primary {
    background: #25D366;
    color: white;
}

.cta-button.primary:hover {
    background: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-secondary);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 280px;
}

.footer-tagline {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-column a {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    transition: color var(--transition-base);
}

.footer-column a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================
   ARTICLE PAGE STYLES
   ============================================ */
.article-header {
    padding: 60px 0 40px;
    background: var(--bg-secondary);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.breadcrumb a {
    color: var(--text-secondary);
    transition: color var(--transition-base);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb-separator {
    color: var(--text-muted);
}

.article-page-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-body {
    padding: 60px 0 100px;
}

.article-body .container {
    max-width: 800px;
}

.article-content-body {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-primary);
}

.article-content-body h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 48px 0 20px;
    color: var(--text-primary);
}

.article-content-body h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 36px 0 16px;
    color: var(--text-primary);
}

.article-content-body p {
    margin-bottom: 20px;
}

.article-content-body ul,
.article-content-body ol {
    margin: 20px 0;
    padding-left: 24px;
}

.article-content-body li {
    margin-bottom: 12px;
}

.article-content-body strong {
    font-weight: 600;
    color: var(--text-primary);
}

.article-content-body a {
    color: var(--primary);
    text-decoration: underline;
}

.article-content-body a:hover {
    text-decoration: none;
}

/* Info Box */
.info-box {
    background: var(--primary-bg);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 20px 24px;
    margin: 28px 0;
}

.info-box.warning {
    background: var(--accent-orange-bg);
    border-color: var(--accent-orange);
}

.info-box.success {
    background: var(--accent-green-bg);
    border-color: var(--accent-green);
}

.info-box-title {
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-box p {
    margin: 0;
    font-size: 15px;
}

/* Step List */
.step-list {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 28px 0;
}

.step-list li {
    counter-increment: step;
    position: relative;
    padding-left: 60px;
    margin-bottom: 28px;
}

.step-list li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

/* Code Block */
.code-block {
    background: #1E293B;
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin: 24px 0;
    overflow-x: auto;
}

.code-block code {
    color: #E2E8F0;
    font-family: 'SF Mono', Monaco, 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.8;
}

.code-block code strong {
    color: #60A5FA;
    font-weight: 700;
}

.code-block code br+br {
    display: block;
    margin-top: 8px;
}

/* Related Articles */
.related-articles {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 32px;
    margin-top: 48px;
}

.related-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.related-card {
    background: white;
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all var(--transition-base);
}

.related-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.related-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 992px) {
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 20px;
    }

    .hero {
        padding: 60px 0 80px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .search-input {
        padding: 16px 20px 16px 52px;
        font-size: 15px;
    }

    .categories-section,
    .articles-section,
    .faq-section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 24px;
    }

    .group-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .article-card {
        padding: 16px 20px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nav-link {
        font-size: 13px;
        padding: 6px 12px;
    }

    .logo-badge {
        display: none;
    }

    .hero-title {
        font-size: 28px;
    }

    .footer-links {
        gap: 24px;
    }

    .footer-column {
        min-width: 100%;
    }
}

/* ============================================
   ANIMATIONS & EFFECTS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-group {
    animation: fadeInUp 0.5s ease-out;
}

/* Smooth hover transitions */
.category-card,
.article-card,
.faq-item,
.cta-button {
    will-change: transform, box-shadow;
}

/* Selection color */
::selection {
    background: var(--primary);
    color: white;
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Print styles */
/* ============================================
   ULTRA-MINIMALIST MOBILE REDESIGN (UNICORN STARTUP AESTHETIC)
   ============================================ */
@media (max-width: 768px) {

    /* Base Overrides */
    body {
        background-color: #ffffff;
        color: #000000;
    }

    .container {
        padding: 0 24px;
    }

    /* Clean Hero */
    .hero {
        padding: 40px 0 60px;
        background: #ffffff;
        /* pure white */
        border-bottom: 1px solid #f0f0f0;
    }

    .hero::before,
    .hero::after {
        display: none;
        /* remove gradients/blobs */
    }

    .hero-badge {
        display: none;
        /* too noisy */
    }

    .hero-title {
        font-size: 32px;
        font-weight: 700;
        letter-spacing: -0.04em;
        text-align: left;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 16px;
        text-align: left;
        margin-left: 0;
        opacity: 0.7;
        margin-bottom: 32px;
    }

    /* Minimal Search */
    .search-input {
        box-shadow: none;
        border: 1px solid #eeeeee;
        background: #fafafa;
        border-radius: 12px;
        padding: 14px 18px 14px 44px;
        font-size: 15px;
    }

    .search-icon {
        left: 16px;
        opacity: 0.5;
    }

    /* Remove Cards, Use Lists */
    .category-card {
        border: none;
        padding: 16px 0;
        border-bottom: 1px solid #f5f5f5;
        border-radius: 0;
        transform: none !important;
        box-shadow: none !important;
    }

    .category-card:hover {
        background: none;
    }

    .category-icon {
        display: none;
        /* simplify */
    }

    .category-title {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .category-desc {
        font-size: 14px;
        opacity: 0.6;
        margin-bottom: 8px;
    }

    .category-count {
        font-size: 11px;
    }

    /* Sleek Article Lists */
    .articles-section {
        background: #ffffff;
        padding: 40px 0;
    }

    .article-group {
        margin-bottom: 56px;
    }

    .group-header {
        margin-bottom: 24px;
        padding-bottom: 12px;
        border-bottom: 1px solid #f0f0f0;
    }

    .group-icon {
        display: none;
        /* cleaner */
    }

    .group-title {
        font-size: 20px;
        letter-spacing: -0.02em;
        font-weight: 700;
    }

    .article-card {
        border: none;
        padding: 24px 0;
        border-bottom: 1px solid #f5f5f5;
        border-radius: 0;
        box-shadow: none !important;
        transform: none !important;
        display: block;
        /* stack better */
    }

    .article-card:last-child {
        border-bottom: none;
    }

    .article-title {
        font-size: 18px;
        color: #000000;
        font-weight: 600;
        margin-bottom: 6px;
        line-height: 1.3;
    }

    .article-excerpt {
        font-size: 14px;
        opacity: 0.6;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .article-badge {
        display: none !important;
        /* remove for maximum minimalism */
    }

    .logo-badge {
        display: none !important;
    }

    .hero-visual {
        display: none !important;
    }

    /* Minimal Search Results */
    .search-results-dropdown {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
        border: 1px solid #eeeeee;
        border-radius: 12px;
        margin-top: 4px;
    }

    .search-result-item {
        padding: 16px;
        border-bottom: 1px solid #f5f5f5;
    }

    .search-result-category {
        display: none;
        /* remove for minimalism */
    }

    .search-result-arrow {
        display: none;
    }

    .article-arrow {
        display: none;
        /* remove decorative arrows */
    }

    /* Minimal FAQ */
    .faq-section {
        padding: 40px 0;
    }

    .faq-item {
        background: none;
        border-bottom: 1px solid #f5f5f5;
        border-radius: 0;
    }

    .faq-question {
        padding: 24px 0;
        font-size: 16px;
        font-weight: 500;
    }

    .faq-toggle {
        font-size: 18px;
    }

    /* Article Content Redesign */
    .article-header {
        background: #ffffff;
        padding: 40px 0 32px;
        border-bottom: 1px solid #f0f0f0;
    }

    .article-page-title {
        font-size: 32px;
        line-height: 1.2;
        letter-spacing: -0.04em;
        font-weight: 800;
    }

    .article-body {
        padding: 32px 0 80px;
    }

    .article-content-body {
        font-size: 16px;
        line-height: 1.8;
    }

    .info-box {
        border-radius: 12px;
        border: none;
        background: #f8fbff;
        padding: 20px;
        margin: 32px 0;
    }

    .info-box-title {
        font-size: 16px;
        font-weight: 700;
    }

    /* Footer Cleanup */
    .footer {
        background: #ffffff;
        border-top: 1px solid #f0f0f0;
        padding: 40px 0 20px;
    }

    .footer-content {
        display: none;
        /* Hide complex footer on mobile for unicorn feel */
    }

    .footer-bottom {
        border: none;
        padding-top: 0;
    }
}