/**
 * Lemon Squeezy Documentation Styles - MOBILE RESPONSIVE VERSION
 * Modern documentation with consistent blue theme and perfect mobile support
 * 
 * @package WooCommerce Lemon Squeezy Payment Gateway
 * @version 1.0.0
 */

/* ==================== BRAND COLOR VARIABLES ==================== */

:root {
    /* Primary Brand Colors */
    --brand-blue-primary: #0066FF;
    --brand-blue-light: #00A3FF;
    --brand-blue-dark: #0052CC;
    --brand-accent: #CCE5FF;
    
    /* Dark Theme Colors */
    --dark-bg-gradient: linear-gradient(135deg, #001429 0%, #0a1929 50%, #001429 100%);
    --dark-card-gradient: linear-gradient(145deg, rgba(10, 25, 41, 0.8), rgba(0, 20, 41, 0.6));
    --dark-border-color: rgba(0, 102, 255, 0.3);
    --dark-border-hover: rgba(0, 102, 255, 0.6);
    --dark-text-primary: #ffffff;
    --dark-text-secondary: rgba(255, 255, 255, 0.7);
    
    /* Light Theme Colors */
    --light-bg: #fafafa;
    --light-card-bg: #ffffff;
    --light-text-primary: #0a1929;
    --light-text-secondary: #666666;
    --light-border: rgba(0, 102, 255, 0.1);
    
    /* Semantic Colors */
    --success-color: #10b981;
    --warning-color: #fbbf24;
    --error-color: #ef4444;
    --info-color: var(--brand-blue-primary);
}

/* ==================== BASE RESET ==================== */

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==================== ANIMATIONS ==================== */

@keyframes backgroundPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

@keyframes particleFloat {
    0%, 100% {
        background-position: 0% 0%, 100% 100%, 50% 50%, 100% 0%;
    }
    50% {
        background-position: 100% 100%, 0% 0%, 80% 20%, 20% 80%;
    }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 102, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 102, 255, 0.6);
    }
}

/* ==================== DOCUMENTATION HERO ==================== */

.docs-hero {
    background: var(--dark-bg-gradient);
    padding: 200px 40px 100px;
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.docs-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 102, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 163, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(0, 163, 255, 0.08) 0%, transparent 40%);
    animation: backgroundPulse 15s ease-in-out infinite;
}

.docs-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(0, 102, 255, 0.4), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(2px 2px at 80% 10%, rgba(0, 163, 255, 0.3), transparent);
    background-size: 200% 200%;
    animation: particleFloat 20s ease-in-out infinite;
    pointer-events: none;
}

.docs-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.docs-hero-content {
    text-align: center;
}

.docs-hero-badge {
    display: inline-block;
    background: rgba(0, 102, 255, 0.2);
    color: var(--brand-blue-light);
    padding: 10px 28px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 30px;
    border: 2px solid var(--dark-border-color);
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.3);
    animation: glowPulse 3s ease-in-out infinite;
}

.docs-hero-title {
    font-size: 68px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 30px;
    color: var(--dark-text-primary);
    letter-spacing: -2px;
}

.docs-hero-title .gradient-text,
.docs-hero-title .docs-plugin-name {
    background: linear-gradient(135deg, var(--brand-blue-primary) 0%, var(--brand-blue-light) 50%, var(--brand-blue-primary) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
    display: inline-block;
}

.docs-hero-description {
    font-size: 22px;
    color: var(--dark-text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ==================== DOCUMENTATION MAIN ==================== */

.docs-main {
    background: var(--light-bg);
    min-height: 100vh;
    padding: 100px 40px 120px;
}

.docs-main-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    align-items: start;
}

/* ==================== SIDEBAR NAVIGATION ==================== */

.docs-sidebar {
    position: relative;
}

.docs-sidebar-sticky {
    position: sticky;
    top: 120px;
    background: var(--light-card-bg);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.04),
        0 8px 32px rgba(0, 102, 255, 0.06);
    border: 2px solid var(--light-border);
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.docs-sidebar-sticky:hover {
    border-color: var(--dark-border-color);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.06),
        0 12px 40px rgba(0, 102, 255, 0.1);
}

/* Custom scrollbar */
.docs-sidebar-sticky::-webkit-scrollbar {
    width: 6px;
}

.docs-sidebar-sticky::-webkit-scrollbar-track {
    background: rgba(0, 102, 255, 0.05);
    border-radius: 10px;
}

.docs-sidebar-sticky::-webkit-scrollbar-thumb {
    background: rgba(0, 102, 255, 0.3);
    border-radius: 10px;
}

.docs-sidebar-sticky::-webkit-scrollbar-thumb:hover {
    background: var(--brand-blue-primary);
}

.docs-sidebar-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--light-text-primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.docs-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.docs-nav-list li {
    margin-bottom: 6px;
}

.docs-nav-link {
    display: block;
    padding: 14px 18px;
    color: var(--light-text-secondary);
    text-decoration: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.docs-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: var(--brand-blue-primary);
    border-radius: 0 3px 3px 0;
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.docs-nav-link:hover {
    color: var(--brand-blue-primary);
    background: rgba(0, 102, 255, 0.08);
    transform: translateX(4px);
}

.docs-nav-link.active {
    color: var(--brand-blue-primary);
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.12), rgba(0, 163, 255, 0.08));
    font-weight: 700;
}

.docs-nav-link.active::before {
    height: 24px;
}

/* ==================== CONTENT AREA ==================== */

.docs-content {
    max-width: 900px;
}

/* Intro Card */
.docs-intro-card {
    background: linear-gradient(145deg, var(--light-card-bg), #f8f9fa);
    padding: 45px;
    border-radius: 24px;
    border: 2px solid var(--light-border);
    margin-bottom: 50px;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.04),
        0 8px 32px rgba(0, 102, 255, 0.06);
    position: relative;
    overflow: hidden;
}

.docs-intro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-blue-primary), var(--brand-blue-light));
}

.docs-intro-card h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--light-text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.docs-intro-card p {
    font-size: 16px;
    color: var(--light-text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

.docs-intro-card p:last-child {
    margin-bottom: 0;
}

/* ==================== SECTION STYLING ==================== */

.docs-section {
    margin-bottom: 70px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.docs-section:nth-child(1) { animation-delay: 0.1s; }
.docs-section:nth-child(2) { animation-delay: 0.2s; }
.docs-section:nth-child(3) { animation-delay: 0.3s; }
.docs-section:nth-child(4) { animation-delay: 0.4s; }

.docs-section-title {
    font-size: 40px;
    font-weight: 900;
    color: var(--light-text-primary);
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid rgba(0, 102, 255, 0.1);
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.docs-section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-blue-primary), var(--brand-blue-light));
}

.docs-section-title svg {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.docs-section p {
    font-size: 16px;
    color: var(--light-text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.docs-section h3 {
    font-size: 26px;
    font-weight: 800;
    color: var(--light-text-primary);
    margin: 35px 0 20px;
}

.docs-section h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--light-text-primary);
    margin: 25px 0 15px;
}

/* ==================== SCREENSHOTS ==================== */

.docs-screenshot {
    margin: 30px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.docs-screenshot img {
    width: 100%;
    height: auto;
    display: block;
}

.docs-screenshot p {
    margin: 0;
    padding: 15px;
    background: #f8f9fa;
    text-align: center;
    font-size: 14px;
    color: #64748b;
}

/* ==================== INFO BOXES ==================== */

.docs-info-box {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.08), rgba(0, 163, 255, 0.05));
    border-left: 4px solid var(--brand-blue-primary);
    padding: 30px 35px;
    border-radius: 16px;
    margin: 30px 0;
    box-shadow: 0 4px 16px rgba(0, 102, 255, 0.1);
    display: flex;
    gap: 20px;
    align-items: start;
}

.docs-info-box svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    margin-top: 2px;
}

.docs-info-content {
    flex: 1;
}

.docs-info-content strong {
    display: block;
    font-size: 19px;
    color: var(--brand-blue-primary);
    margin-bottom: 12px;
    font-weight: 800;
}

.docs-info-content p {
    color: var(--light-text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

/* Warning Box */
.docs-warning-box {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-left: 4px solid var(--error-color);
    padding: 30px 35px;
    border-radius: 16px;
    margin: 30px 0;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.1);
    display: flex;
    gap: 20px;
    align-items: start;
}

.docs-warning-box svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    margin-top: 2px;
}

.docs-warning-content strong {
    display: block;
    color: #991b1b;
    font-size: 19px;
    margin-bottom: 12px;
    font-weight: 800;
}

.docs-warning-content p {
    color: #7f1d1d;
    margin: 0;
    line-height: 1.7;
}

/* Tip Box */
.docs-tip-box {
    background: linear-gradient(135deg, #fff7ed, #fef3c7);
    border-left: 4px solid var(--warning-color);
    padding: 30px 35px;
    border-radius: 16px;
    margin: 30px 0;
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.1);
    display: flex;
    gap: 20px;
    align-items: start;
}

.docs-tip-box svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    margin-top: 2px;
}

.docs-tip-content strong {
    display: block;
    color: #92400e;
    font-size: 19px;
    margin-bottom: 12px;
    font-weight: 800;
}

.docs-tip-content p {
    color: #78350f;
    margin: 0;
    line-height: 1.7;
}

/* ==================== STEPS ==================== */

.docs-steps {
    margin-top: 50px;
}

.docs-step {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    position: relative;
}

.docs-step::before {
    content: '';
    position: absolute;
    left: 29px;
    top: 80px;
    bottom: -50px;
    width: 3px;
    background: linear-gradient(180deg, var(--dark-border-color), rgba(0, 102, 255, 0.1));
}

.docs-step:last-child::before {
    display: none;
}

.docs-step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--brand-blue-primary), var(--brand-blue-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
    box-shadow: 
        0 4px 16px rgba(0, 102, 255, 0.3),
        0 8px 32px rgba(0, 102, 255, 0.2);
    position: relative;
    z-index: 1;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.docs-step:hover .docs-step-number {
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 
        0 8px 24px rgba(0, 102, 255, 0.4),
        0 12px 40px rgba(0, 102, 255, 0.3);
}

.docs-step-content {
    flex: 1;
    background: var(--light-card-bg);
    padding: 35px 40px;
    border-radius: 20px;
    border: 2px solid var(--light-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.docs-step:hover .docs-step-content {
    border-color: var(--dark-border-color);
    transform: translateX(8px);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.06),
        0 12px 40px rgba(0, 102, 255, 0.1);
}

.docs-step-content h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--light-text-primary);
    margin: 0 0 18px 0;
}

.docs-step-content h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--light-text-primary);
    margin: 25px 0 15px 0;
}

.docs-step-content p {
    margin-bottom: 15px;
}

.docs-step-content p:last-child {
    margin-bottom: 0;
}

.docs-step-content ul,
.docs-step-content ol {
    margin: 20px 0;
    padding-left: 25px;
}

.docs-step-content li {
    margin-bottom: 12px;
    line-height: 1.7;
    color: var(--light-text-secondary);
}

/* ==================== STEPS LIST ==================== */

.docs-steps-list {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.docs-steps-list li {
    counter-increment: step-counter;
    padding: 18px 0 18px 50px;
    position: relative;
    font-size: 16px;
    color: var(--light-text-secondary);
    line-height: 1.7;
    border-bottom: 1px solid rgba(0, 102, 255, 0.1);
}

.docs-steps-list li:last-child {
    border-bottom: none;
}

.docs-steps-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 15px;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--brand-blue-primary), var(--brand-blue-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

/* ==================== CHECKLIST ==================== */

.docs-checklist {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.docs-checklist li {
    padding: 18px 0 18px 45px;
    position: relative;
    color: var(--light-text-secondary);
    font-size: 16px;
    border-bottom: 1px solid rgba(0, 102, 255, 0.1);
}

.docs-checklist li:last-child {
    border-bottom: none;
}

.docs-checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 18px;
    width: 28px;
    height: 28px;
    background: var(--success-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* ==================== CODE BLOCK ==================== */

.docs-code-block {
    background: #001429;
    border: 2px solid var(--brand-blue-primary);
    border-radius: 16px;
    padding: 30px;
    margin: 30px 0;
    position: relative;
    overflow-x: auto;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.2),
        0 8px 32px rgba(0, 102, 255, 0.2);
}

.docs-code-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-blue-primary), var(--brand-blue-light));
}

.docs-code-block code {
    color: var(--brand-blue-light);
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    font-weight: 600;
    display: block;
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-all;
}

/* ==================== TABLES ==================== */

.docs-requirements-table,
.docs-config-table {
    overflow-x: auto;
    margin: 30px 0;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.docs-table {
    width: 100%;
    min-width: 600px;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--light-card-bg);
    border-radius: 16px;
    overflow: hidden;
}

.docs-table thead {
    background: linear-gradient(135deg, var(--brand-blue-primary), var(--brand-blue-dark));
}

.docs-table th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 700;
    font-size: 14px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.docs-table td {
    padding: 18px 20px;
    border-top: 1px solid rgba(0, 102, 255, 0.1);
    color: var(--light-text-secondary);
    font-size: 15px;
}

.docs-table tbody tr {
    transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.docs-table tbody tr:hover {
    background: rgba(0, 102, 255, 0.05);
}

/* ==================== FEATURES GRID ==================== */

.docs-features-grid,
.docs-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.docs-feature-card {
    background: #0066FF;
    padding: 35px 30px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.4);
}

.docs-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.docs-feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 16px 40px rgba(0, 102, 255, 0.4),
        0 8px 20px rgba(0, 0, 0, 0.2);
}

.docs-feature-card:hover::before {
    opacity: 1;
}

.docs-feature-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    flex-shrink: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.docs-feature-icon svg {
    width: 28px;
    height: 28px;
}

.docs-feature-card:hover .docs-feature-icon {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05) rotate(-3deg);
}

.docs-feature-card h3,
.docs-feature-card h4 {
    font-size: 19px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.3;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.docs-feature-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

/* ==================== FLOW DIAGRAM ==================== */

.docs-flow-diagram {
    margin: 40px 0;
    padding: 50px 40px;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 24px;
    border: 2px solid var(--light-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.docs-flow-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.docs-flow-item {
    flex: 1;
    background: var(--light-card-bg);
    border: 2px solid var(--light-border);
    border-radius: 20px;
    padding: 35px 30px;
    text-align: center;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.docs-flow-item:hover {
    transform: translateY(-5px);
    border-color: var(--dark-border-color);
    box-shadow: 0 12px 32px rgba(0, 102, 255, 0.15);
}

.docs-flow-item.docs-flow-highlight {
    background: linear-gradient(135deg, var(--brand-blue-primary), var(--brand-blue-dark));
    border-color: var(--brand-blue-primary);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.3);
}

.docs-flow-item.docs-flow-highlight h4,
.docs-flow-item.docs-flow-highlight p {
    color: #ffffff;
}

.docs-flow-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 16px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.docs-flow-item:hover .docs-flow-icon {
    transform: scale(1.05) rotate(-3deg);
}

.docs-flow-item.docs-flow-highlight .docs-flow-icon {
    background: rgba(255, 255, 255, 0.2);
}

.docs-flow-item h4 {
    font-size: 19px;
    font-weight: 800;
    color: var(--light-text-primary);
    margin-bottom: 12px;
}

.docs-flow-item p {
    font-size: 14px;
    color: var(--light-text-secondary);
    margin: 0;
}

.docs-flow-arrow {
    font-size: 32px;
    color: var(--brand-blue-primary);
    font-weight: 900;
    flex-shrink: 0;
}

/* ==================== WEBHOOK/EVENT GRID ==================== */

.docs-event-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 25px 0;
}

.docs-event-item {
    padding: 16px 20px;
    background: var(--light-card-bg);
    border: 2px solid var(--light-border);
    border-radius: 12px;
    text-align: center;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.docs-event-item:hover {
    border-color: var(--dark-border-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.15);
}

.docs-event-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--brand-blue-primary), var(--brand-blue-light));
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Monaco', monospace;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
    word-break: break-all;
}

/* ==================== TROUBLESHOOTING ==================== */

.docs-troubleshooting {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.docs-trouble-item {
    background: var(--light-card-bg);
    border: 2px solid var(--light-border);
    border-radius: 20px;
    padding: 35px 40px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.docs-trouble-item:hover {
    border-color: var(--dark-border-color);
    transform: translateX(8px);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.1);
}

.docs-trouble-item h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--light-text-primary);
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.docs-trouble-item h3 svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.docs-trouble-item p {
    margin-bottom: 12px;
}

.docs-trouble-item p strong {
    color: var(--light-text-primary);
    font-weight: 700;
}

.docs-trouble-item ul {
    margin: 15px 0;
    padding-left: 25px;
}

.docs-trouble-item li {
    margin-bottom: 10px;
    line-height: 1.7;
}

/* ==================== SUPPORT SECTION ==================== */

.docs-support-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
    margin-top: 50px;
}

.docs-support-card {
    background: var(--light-card-bg);
    border: 2px solid var(--light-border);
    border-radius: 24px;
    padding: 45px 40px;
    text-align: center;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.docs-support-card:hover {
    border-color: var(--dark-border-color);
    transform: translateY(-5px);
    box-shadow: 
        0 16px 40px rgba(0, 102, 255, 0.12),
        0 8px 20px rgba(0, 0, 0, 0.08);
}

.docs-support-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 163, 255, 0.05));
    border-radius: 18px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.docs-support-card:hover .docs-support-icon {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.15), rgba(0, 163, 255, 0.08));
    transform: scale(1.05) rotate(-3deg);
}

.docs-support-card h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--light-text-primary);
    margin: 0 0 10px 0;
}

.docs-support-card p {
    font-size: 15px;
    color: var(--light-text-secondary);
    margin-bottom: 25px;
}

/* ==================== BUTTONS ==================== */

.docs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    text-align: center;
    min-height: 48px;
}

.docs-btn-primary {
    background: linear-gradient(135deg, var(--brand-blue-primary), var(--brand-blue-light));
    color: white;
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.4);
}

.docs-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 102, 255, 0.5);
}

.docs-btn-secondary {
    background: white;
    color: var(--brand-blue-primary);
    border: 2px solid var(--brand-blue-primary);
}

.docs-btn-secondary:hover {
    background: rgba(0, 102, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.2);
}

/* ==================== CTA BOX ==================== */

.docs-cta-box {
    background: linear-gradient(135deg, var(--brand-blue-primary), var(--brand-blue-dark));
    padding: 60px 50px;
    border-radius: 28px;
    text-align: center;
    margin-top: 70px;
    box-shadow: 
        0 16px 48px rgba(0, 102, 255, 0.3),
        0 0 0 2px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.docs-cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
    animation: particleFloat 15s ease-in-out infinite;
}

.docs-cta-box h2 {
    font-size: 40px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.docs-cta-box p {
    font-size: 19px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

/* ==================== FOOTER ==================== */

.docs-footer {
    background: #0066FF;
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.docs-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 60%),
        radial-gradient(circle at 70% 80%, rgba(0, 163, 255, 0.15) 0%, transparent 50%);
    animation: backgroundPulse 15s ease-in-out infinite;
}

.docs-footer::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
    animation: particleFloat 20s ease-in-out infinite;
}

.docs-footer-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.docs-footer-content h3 {
    font-size: 42px;
    color: var(--dark-text-primary);
    margin-bottom: 20px;
    font-weight: 900;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.docs-footer-content > p {
    font-size: 20px;
    color: var(--dark-text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

.docs-footer-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 45px;
    flex-wrap: wrap;
}

.docs-footer-buttons .docs-btn-primary {
    background: #ffffff;
    color: var(--brand-blue-primary);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.docs-footer-buttons .docs-btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.docs-footer-buttons .docs-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.docs-footer-buttons .docs-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.docs-footer-meta {
    font-size: 15px;
    color: var(--dark-text-secondary);
    margin: 0;
    line-height: 1.8;
    opacity: 0.9;
}

.docs-footer-meta strong {
    color: var(--dark-text-primary);
    font-weight: 700;
}

/* ==================== MOBILE RESPONSIVE DESIGN ==================== */

/* Tablet landscape and smaller desktops */
@media (max-width: 1200px) {
    .docs-main-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .docs-sidebar {
        order: 2;
    }
    
    .docs-content {
        order: 1;
        max-width: 100%;
    }
    
    .docs-sidebar-sticky {
        position: static;
        max-height: none;
    }
    
    .docs-nav-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 12px;
    }
    
    .docs-features-grid,
    .docs-feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .docs-hero-title {
        font-size: 56px;
    }
}

/* Tablets */
@media (max-width: 968px) {
    .docs-hero {
        padding: 150px 30px 80px;
    }
    
    .docs-hero-title {
        font-size: 48px;
    }
    
    .docs-hero-description {
        font-size: 19px;
    }
    
    .docs-main {
        padding: 80px 30px 100px;
    }
    
    .docs-section-title {
        font-size: 34px;
    }
    
    .docs-event-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .docs-flow-diagram {
        padding: 40px 30px;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    .docs-hero {
        padding: 120px 20px 60px;
        min-height: 50vh;
    }
    
    .docs-hero-badge {
        padding: 8px 20px;
        font-size: 10px;
        letter-spacing: 2px;
    }
    
    .docs-hero-title {
        font-size: 36px;
        letter-spacing: -1px;
    }
    
    .docs-hero-description {
        font-size: 17px;
    }
    
    .docs-main {
        padding: 60px 20px 80px;
    }
    
    .docs-main-container {
        gap: 40px;
    }
    
    .docs-section {
        margin-bottom: 50px;
    }
    
    .docs-section-title {
        font-size: 28px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .docs-section-title svg {
        width: 28px;
        height: 28px;
    }
    
    .docs-section h3 {
        font-size: 22px;
    }
    
    .docs-section h4 {
        font-size: 18px;
    }
    
    .docs-intro-card {
        padding: 30px 25px;
    }
    
    .docs-intro-card h2 {
        font-size: 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    /* Info boxes mobile */
    .docs-info-box,
    .docs-warning-box,
    .docs-tip-box {
        padding: 25px 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .docs-info-box svg,
    .docs-warning-box svg,
    .docs-tip-box svg {
        margin-top: 0;
    }
    
    /* Steps mobile */
    .docs-step {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .docs-step::before {
        display: none;
    }
    
    .docs-step-number {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin: 0 auto;
    }
    
    .docs-step-content {
        padding: 25px 20px;
    }
    
    .docs-step-content h3 {
        font-size: 20px;
    }
    
    .docs-step:hover .docs-step-content {
        transform: translateX(0);
    }
    
    /* Steps list mobile */
    .docs-steps-list li {
        padding: 15px 0 15px 45px;
        font-size: 15px;
    }
    
    .docs-steps-list li::before {
        width: 32px;
        height: 32px;
        font-size: 13px;
        top: 13px;
    }
    
    /* Code blocks mobile */
    .docs-code-block {
        padding: 20px 15px;
        margin: 25px 0;
    }
    
    .docs-code-block code {
        font-size: 12px;
    }
    
    /* Tables mobile */
    .docs-requirements-table,
    .docs-config-table {
        margin: 25px -20px;
        border-radius: 0;
    }
    
    .docs-table {
        min-width: 500px;
    }
    
    .docs-table th,
    .docs-table td {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    /* Flow diagram mobile */
    .docs-flow-diagram {
        padding: 30px 20px;
    }
    
    .docs-flow-steps {
        flex-direction: column;
        gap: 20px;
    }
    
    .docs-flow-item {
        padding: 25px 20px;
    }
    
    .docs-flow-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    
    /* Event grid mobile */
    .docs-event-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .docs-event-badge {
        font-size: 11px;
        padding: 6px 12px;
    }
    
    /* Features grid mobile */
    .docs-features-grid,
    .docs-feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .docs-feature-card {
        min-height: auto;
        padding: 28px 22px;
    }
    
    .docs-feature-card h3,
    .docs-feature-card h4 {
        font-size: 17px;
    }
    
    .docs-feature-card p {
        font-size: 13px;
    }
    
    /* Troubleshooting mobile */
    .docs-trouble-item {
        padding: 25px 20px;
    }
    
    .docs-trouble-item h3 {
        font-size: 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .docs-trouble-item:hover {
        transform: translateX(0);
    }
    
    /* Support grid mobile */
    .docs-support-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .docs-support-card {
        padding: 35px 25px;
    }
    
    .docs-support-card h3 {
        font-size: 20px;
    }
    
    /* Buttons mobile */
    .docs-btn {
        width: 100%;
        padding: 14px 24px;
        font-size: 14px;
    }
    
    /* CTA box mobile */
    .docs-cta-box {
        padding: 40px 25px;
        margin-top: 50px;
    }
    
    .docs-cta-box h2 {
        font-size: 28px;
        flex-direction: column;
        gap: 10px;
    }
    
    .docs-cta-box p {
        font-size: 16px;
    }
    
    /* Footer mobile */
    .docs-footer {
        padding: 60px 20px;
    }
    
    .docs-footer-content h3 {
        font-size: 30px;
    }
    
    .docs-footer-content > p {
        font-size: 17px;
    }
    
    .docs-footer-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .docs-footer-meta {
        font-size: 14px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .docs-hero-title {
        font-size: 28px;
    }
    
    .docs-hero-description {
        font-size: 16px;
    }
    
    .docs-section-title {
        font-size: 24px;
    }
    
    .docs-section h3 {
        font-size: 20px;
    }
    
    .docs-intro-card h2 {
        font-size: 20px;
    }
    
    .docs-step-content h3 {
        font-size: 18px;
    }
    
    .docs-table {
        min-width: 400px;
    }
    
    .docs-cta-box h2 {
        font-size: 24px;
    }
    
    .docs-footer-content h3 {
        font-size: 26px;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .docs-hero {
        padding: 100px 15px 50px;
    }
    
    .docs-main {
        padding: 50px 15px 70px;
    }
    
    .docs-hero-title {
        font-size: 24px;
    }
    
    .docs-section-title {
        font-size: 22px;
    }
    
    .docs-intro-card,
    .docs-step-content,
    .docs-trouble-item,
    .docs-support-card {
        padding: 20px 15px;
    }
}

/* ==================== PRINT STYLES ==================== */

@media print {
    .docs-sidebar,
    .docs-footer-buttons,
    .docs-nav-link::before {
        display: none;
    }
    
    .docs-main-container {
        grid-template-columns: 1fr;
    }
    
    .docs-hero,
    .docs-footer {
        background: white;
        padding: 30px 0;
    }
    
    .docs-hero::before,
    .docs-hero::after,
    .docs-footer::before,
    .docs-footer::after {
        display: none;
    }
    
    .docs-hero-badge {
        border-color: #333;
        background: #f0f0f0;
        color: #333;
    }
    
    .docs-hero-title .gradient-text,
    .docs-hero-title .docs-plugin-name {
        -webkit-text-fill-color: #0066FF;
        color: #0066FF;
    }
    
    .docs-footer-content h3,
    .docs-footer-content p,
    .docs-footer-meta {
        color: #333;
    }
    
    .docs-section {
        page-break-inside: avoid;
    }
    
    .docs-step {
        page-break-inside: avoid;
    }
    
    .docs-feature-card,
    .docs-cta-box {
        background: white;
        border: 1px solid #ddd;
        box-shadow: none;
    }
    
    .docs-feature-card h3,
    .docs-feature-card h4,
    .docs-feature-card p {
        color: #333;
    }
}

/* ==================== ACCESSIBILITY ==================== */

/* Focus styles */
.docs-nav-link:focus,
.docs-btn:focus {
    outline: 3px solid var(--brand-blue-primary);
    outline-offset: 3px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .docs-hero,
    .docs-footer {
        background: #000;
    }
    
    .docs-hero-title,
    .docs-footer-content h3 {
        color: #fff;
    }
    
    .docs-nav-link,
    .docs-section-title {
        border: 2px solid currentColor;
    }
}