/* OneClickSEO Documentation - Landing Page Design */

/* ========================================
   CSS Variables
======================================== */
:root {
    /* Primary Colors */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --secondary: #c026d3;
    --accent: #14b8a6;

    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;

    /* Background Colors */
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --bg-card: rgba(30, 58, 138, 0.25);
    --bg-card-hover: rgba(30, 58, 138, 0.35);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: rgba(226, 232, 240, 0.7);

    /* Border Colors */
    --border-glass: rgba(165, 180, 252, 0.2);
    --border-glass-hover: rgba(165, 180, 252, 0.4);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #c026d3 100%);
    --gradient-accent: linear-gradient(135deg, #6366f1 0%, #14b8a6 100%);
    --gradient-bg: linear-gradient(180deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.3);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* ========================================
   Base Styles
======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    background: var(--gradient-bg);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(192, 38, 211, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(20, 184, 166, 0.1) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

/* ========================================
   Layout
======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-lg);
}

/* ========================================
   Header
======================================== */
.doc-header {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
    margin-bottom: var(--space-2xl);
    position: relative;
}

.doc-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
}

.logo-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.doc-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

.doc-header .version {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    margin-bottom: var(--space-md);
}

.doc-header .subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Navigation
======================================== */
.doc-nav {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin-bottom: var(--space-2xl);
    position: sticky;
    top: var(--space-md);
    z-index: 100;
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    list-style: none;
    justify-content: center;
}

.nav-list a {
    display: block;
    padding: var(--space-xs) var(--space-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.nav-list a:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.nav-list a.active {
    background: var(--gradient-primary);
    color: white;
}

/* ========================================
   Typography
======================================== */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

h2 {
    font-size: 1.75rem;
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--border-glass);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

h2 .icon {
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

h2 .icon svg {
    width: 18px;
    height: 18px;
    color: white;
}

h3 {
    font-size: 1.25rem;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    color: var(--primary-light);
}

p {
    margin-bottom: var(--space-md);
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--accent);
    text-decoration: underline;
}

strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ========================================
   Cards & Sections
======================================== */
.section {
    margin-bottom: var(--space-2xl);
}

.card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    transition: var(--transition-base);
}

.card:hover {
    border-color: var(--border-glass-hover);
    box-shadow: var(--shadow-md);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.feature-card .icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.feature-card .icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.feature-card h4 {
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ========================================
   Badges
======================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
}

.badge-free {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-pro {
    background: var(--gradient-primary);
    color: white;
}

.badge-new {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* ========================================
   Lists
======================================== */
ul, ol {
    padding-left: var(--space-lg);
    margin-bottom: var(--space-md);
}

li {
    margin-bottom: var(--space-sm);
    position: relative;
}

ul li::marker {
    color: var(--primary);
}

ol li::marker {
    color: var(--primary-light);
    font-weight: 600;
}

.checklist {
    list-style: none;
    padding-left: 0;
}

.checklist li {
    padding-left: var(--space-lg);
    position: relative;
}

.checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.25rem;
    width: 18px;
    height: 18px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checklist li::after {
    content: '✓';
    position: absolute;
    left: 4px;
    top: 0.15rem;
    font-size: 0.75rem;
    color: white;
    font-weight: bold;
}

/* ========================================
   Alerts & Notes
======================================== */
.alert {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin: var(--space-lg) 0;
    border-left: 4px solid;
    display: flex;
    gap: var(--space-sm);
}

.alert-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--info);
}

.alert-info .alert-icon {
    color: var(--info);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--warning);
}

.alert-warning .alert-icon {
    color: var(--warning);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success);
}

.alert-success .alert-icon {
    color: var(--success);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--error);
}

.alert-error .alert-icon {
    color: var(--error);
}

/* ========================================
   Code
======================================== */
code {
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    background: rgba(99, 102, 241, 0.15);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.875em;
    color: var(--primary-light);
}

pre {
    background: var(--bg-darker);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    overflow-x: auto;
    margin: var(--space-lg) 0;
}

pre code {
    background: none;
    padding: 0;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* ========================================
   Tables
======================================== */
.table-wrapper {
    overflow-x: auto;
    margin: var(--space-lg) 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

th, td {
    padding: var(--space-sm) var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--border-glass);
}

th {
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 600;
    white-space: nowrap;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: var(--bg-card);
}

/* ========================================
   Steps / Process
======================================== */
.steps {
    counter-reset: step;
    list-style: none;
    padding-left: 0;
}

.steps li {
    position: relative;
    padding-left: 3.5rem;
    padding-bottom: var(--space-lg);
    border-left: 2px solid var(--border-glass);
    margin-left: 1rem;
}

.steps li:last-child {
    padding-bottom: 0;
    border-left-color: transparent;
}

.steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: -1.25rem;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    box-shadow: var(--shadow-glow);
}

.steps li strong {
    display: block;
    font-size: 1.0625rem;
    margin-bottom: var(--space-xs);
}

/* ========================================
   Accordion / FAQ
======================================== */
.accordion {
    margin: var(--space-lg) 0;
}

.accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    overflow: hidden;
}

.accordion-header {
    padding: var(--space-md);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.accordion-header:hover {
    background: var(--bg-card-hover);
}

.accordion-icon {
    width: 24px;
    height: 24px;
    transition: transform var(--transition-fast);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.accordion-body {
    padding: 0 var(--space-md) var(--space-md);
    color: var(--text-secondary);
}

/* ========================================
   Health Score
======================================== */
.health-score {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    margin: var(--space-lg) 0;
}

.score-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: conic-gradient(var(--success) 0deg 270deg, var(--border-glass) 270deg 360deg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.score-circle::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--bg-dark);
    border-radius: 50%;
}

.score-value {
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.score-breakdown {
    flex: 1;
}

.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xs) 0;
    border-bottom: 1px solid var(--border-glass);
}

.score-item:last-child {
    border-bottom: none;
}

.score-label {
    color: var(--text-muted);
}

.score-points {
    font-weight: 600;
    color: var(--text-primary);
}

/* ========================================
   Footer
======================================== */
.doc-footer {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
    margin-top: var(--space-2xl);
    border-top: 1px solid var(--border-glass);
}

.doc-footer p {
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.footer-links a:hover {
    color: var(--primary-light);
}

/* ========================================
   Buttons
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    text-decoration: none;
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
}

.btn-outline:hover {
    background: var(--bg-card);
    border-color: var(--primary);
    color: var(--primary-light);
    text-decoration: none;
}

/* ========================================
   Back to Top
======================================== */
.back-to-top {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    box-shadow: var(--shadow-md);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

/* ========================================
   Responsive
======================================== */
@media (max-width: 768px) {
    :root {
        --space-lg: 1.5rem;
        --space-xl: 2rem;
        --space-2xl: 3rem;
    }

    .doc-header h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.375rem;
    }

    h3 {
        font-size: 1.125rem;
    }

    .nav-list {
        flex-direction: column;
    }

    .nav-list a {
        text-align: center;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .health-score {
        flex-direction: column;
        text-align: center;
    }

    .steps li {
        padding-left: 2.5rem;
    }

    .steps li::before {
        width: 2rem;
        height: 2rem;
        left: -1rem;
        font-size: 0.875rem;
    }

    .table-wrapper {
        margin-left: calc(-1 * var(--space-lg));
        margin-right: calc(-1 * var(--space-lg));
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: var(--space-sm);
    }

    .doc-nav {
        position: relative;
        top: 0;
    }

    .footer-links {
        flex-direction: column;
        gap: var(--space-sm);
    }
}

/* ========================================
   Print Styles
======================================== */
@media print {
    body {
        background: white;
        color: black;
    }

    .doc-nav,
    .back-to-top {
        display: none;
    }

    .card,
    .feature-card,
    .alert {
        border: 1px solid #ccc;
        background: white;
    }

    a {
        color: black;
        text-decoration: underline;
    }
}
