/* LeadNest Documentation Styles */

:root {
    --ln-purple: #673AB7;
    --ln-purple-light: #8B5CF6;
    --ln-purple-dark: #5E35B1;
    --ln-text-primary: #1a1a1a;
    --ln-text-secondary: #6A6A6A;
    --ln-border: #E1E1E1;
    --ln-bg-light: #F8F9FA;
    --ln-white: #ffffff;
}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ln-text-primary);
    line-height: 1.6;
}

/* Documentation Container */
.docs-container {
    display: flex;
    min-height: 100vh;
    background-color: var(--ln-white);
    padding-top: 72px; /* Space for top header */
}

/* Top Header */
.docs-top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ln-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    z-index: 1000;
}

.docs-header-left {
    display: flex;
    align-items: center;
    width: 240px;
}

.docs-header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 0 40px;
}

.docs-search-wrapper {
    width: 100%;
    max-width: 600px;
    position: relative;
}

.docs-search-container {
    position: relative;
    width: 100%;
}

.docs-search-input {
    width: 100%;
    padding: 12px 100px 12px 48px;
    border: 1.5px solid var(--ln-border);
    border-radius: 12px;
    font-size: 15px;
    background-color: var(--ln-bg-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--ln-text-primary);
}

.docs-search-input:focus {
    outline: none;
    border-color: var(--ln-purple);
    background-color: var(--ln-white);
    box-shadow: 0 0 0 4px rgba(103, 58, 183, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05);
}

.docs-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ln-text-secondary);
    font-size: 18px;
    pointer-events: none;
}

.docs-search-shortcut {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--ln-white);
    border: 1px solid var(--ln-border);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--ln-text-secondary);
    display: flex;
    align-items: center;
    gap: 2px;
    pointer-events: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.shortcut-key {
    font-size: 13px;
    margin-right: 1px;
}

/* Search Dropdown Styles */
.docs-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--ln-white);
    border-radius: 12px;
    border: 1px solid var(--ln-border);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1001;
}

.search-results-list {
    padding: 8px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--ln-text-primary);
    transition: all 0.2s ease;
}

.search-result-item:hover {
    background-color: var(--ln-bg-light);
    color: var(--ln-purple);
}

.search-result-icon {
    font-size: 16px;
    color: var(--ln-text-secondary);
}

.search-result-content {
    flex: 1;
}

.search-result-title {
    font-weight: 500;
    font-size: 14px;
    display: block;
}

.search-result-path {
    font-size: 12px;
    color: var(--ln-text-secondary);
}

.search-no-results {
    padding: 24px;
    text-align: center;
    color: var(--ln-text-secondary);
    font-size: 14px;
}

.docs-header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 240px;
}

.docs-contact-btn {
    background-color: var(--ln-purple) !important;
    color: var(--ln-white) !important;
    padding: 10px 20px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease !important;
}

.docs-contact-btn:hover {
    background-color: var(--ln-purple-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(103, 58, 183, 0.2);
}

/* Sidebar */
.docs-sidebar {
    width: 280px;
    background-color: var(--ln-white);
    border-right: 1px solid var(--ln-border);
    position: fixed;
    top: 72px; /* Below top header */
    left: 0;
    height: calc(100vh - 72px);
    overflow-y: auto;
    z-index: 100;
    padding: 20px 0;
}

.docs-logo-link {
    display: block;
    text-decoration: none;
}

.docs-logo {
    height: 40px;
    width: auto;
}

/* Navigation */
.docs-nav {
    padding: 0 16px;
}

.docs-nav-section {
    margin-bottom: 32px;
}

.docs-nav-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ln-text-secondary);
    padding: 0 8px;
    margin-bottom: 8px;
    font-family: 'Poppins', sans-serif;
}

.docs-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.docs-nav-list li {
    margin-bottom: 2px;
}

.docs-nav-link {
    display: block;
    padding: 8px 12px;
    color: var(--ln-text-primary);
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.docs-nav-link:hover {
    background-color: var(--ln-bg-light);
    color: var(--ln-purple);
}

.docs-nav-link.active {
    background-color: var(--ln-purple);
    color: var(--ln-white);
    font-weight: 500;
}

/* Main Content */
.docs-main {
    margin-left: 280px;
    flex: 1;
    padding: 40px 60px;
    max-width: 1400px;
}

.docs-content {
    max-width: 1200px;
}

/* Hero Section */
.docs-hero {
    margin-bottom: 60px;
}

.docs-hero-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--ln-text-primary);
    margin-bottom: 16px;
    font-family: 'Poppins', sans-serif;
}

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

/* Documentation Content Elements */
.docs-article h2 {
    font-size: 28px;
    font-weight: 600;
    margin-top: 48px;
    margin-bottom: 20px;
    color: var(--ln-text-primary);
    border-bottom: 1px solid var(--ln-border);
    padding-bottom: 12px;
}

.docs-article h3 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 16px;
}

.docs-article p {
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--ln-text-secondary);
}

.docs-article ul, .docs-article ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.docs-article li {
    margin-bottom: 12px;
    font-size: 16px;
    color: var(--ln-text-secondary);
}

/* Tables */
.docs-table-wrapper {
    margin: 32px 0;
    border: 1px solid var(--ln-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.docs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    text-align: left;
}

.docs-table th {
    background-color: var(--ln-bg-light);
    padding: 16px 20px;
    font-weight: 600;
    color: var(--ln-text-primary);
    border-bottom: 1px solid var(--ln-border);
}

.docs-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--ln-border);
    color: var(--ln-text-secondary);
}

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

.docs-table tr:hover td {
    background-color: rgba(103, 58, 183, 0.02);
}

.docs-table strong {
    color: var(--ln-purple);
}

/* Notes & Warnings */
.docs-note, .docs-warning, .docs-success {
    padding: 20px 24px;
    border-radius: 12px;
    margin: 32px 0;
    border-left: 4px solid;
}

.docs-note {
    background-color: rgba(103, 58, 183, 0.05);
    border-left-color: var(--ln-purple);
}

.docs-note-title {
    font-weight: 700;
    color: var(--ln-purple);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.docs-warning {
    background-color: #fff9e6;
    border-left-color: #ffc107;
}

.docs-warning-title {
    font-weight: 700;
    color: #856404;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.docs-success {
    background-color: #f0fdf4;
    border-left-color: #22c55e;
}

.docs-success-title {
    font-weight: 700;
    color: #166534;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Step Cards */
.docs-step-card {
    background-color: var(--ln-white);
    border: 1px solid var(--ln-border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    position: relative;
}

.docs-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: var(--ln-purple);
    color: var(--ln-white);
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    margin-right: 12px;
}

/* Code Blocks */
.docs-code-block {
    background-color: #1a1a1a;
    color: #e6e6e6;
    padding: 20px;
    border-radius: 12px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.5;
    margin: 24px 0;
    overflow-x: auto;
    position: relative;
}

/* Badges */
.docs-badge {
    display: inline-block;
    padding: 4px 10px;
    background-color: var(--ln-purple);
    color: var(--ln-white);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
}

/* Quick Links Grid */
.docs-quick-links {
    margin-bottom: 80px;
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.docs-card {
    background-color: var(--ln-white);
    border: 1px solid var(--ln-border);
    border-radius: 12px;
    padding: 28px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.docs-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--ln-purple);
}

.docs-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 24px;
}

.docs-card-icon-purple {
    background-color: rgba(103, 58, 183, 0.1);
    color: var(--ln-purple);
}

.docs-card-icon-blue {
    background-color: rgba(33, 150, 243, 0.1);
    color: #2196F3;
}

.docs-card-icon-green {
    background-color: rgba(37, 211, 102, 0.1);
    color: #25D366;
}

.docs-card-icon-orange {
    background-color: rgba(255, 152, 0, 0.1);
    color: #FF9800;
}

.docs-card-icon-teal {
    background-color: rgba(0, 150, 136, 0.1);
    color: #009688;
}

.docs-card-icon-red {
    background-color: rgba(244, 67, 54, 0.1);
    color: #F44336;
}

.docs-card-icon-indigo {
    background-color: rgba(63, 81, 181, 0.1);
    color: #3F51B5;
}

.docs-card-icon-cyan {
    background-color: rgba(0, 188, 212, 0.1);
    color: #00BCD4;
}

.docs-card-icon-pink {
    background-color: rgba(233, 30, 99, 0.1);
    color: #E91E63;
}

.docs-card-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--ln-text-primary);
    margin-bottom: 8px;
    font-family: 'Poppins', sans-serif;
}

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

/* Essential Concepts */
.docs-concepts {
    margin-bottom: 80px;
}

.docs-section-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--ln-text-primary);
    margin-bottom: 12px;
    font-family: 'Poppins', sans-serif;
}

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

.docs-concepts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.docs-concept-item {
    background-color: var(--ln-bg-light);
    padding: 24px;
    border-radius: 8px;
    border-left: 4px solid var(--ln-purple);
}

.docs-concept-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ln-text-primary);
    margin-bottom: 8px;
    font-family: 'Poppins', sans-serif;
}

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

/* Support Section */
.docs-support {
    margin-bottom: 60px;
}

.docs-support-card {
    background: linear-gradient(135deg, var(--ln-purple) 0%, var(--ln-purple-light) 100%);
    padding: 48px;
    border-radius: 16px;
    text-align: center;
    color: var(--ln-white);
}

.docs-support-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--ln-white) !important;
}

.docs-support-title,
.docs-support-card h3,
.docs-article .docs-support-title,
.docs-article .docs-support-card h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
    font-family: 'Poppins', sans-serif;
    color: var(--ln-white) !important;
}

.docs-support-description,
.docs-support-card p,
.docs-article .docs-support-description,
.docs-article .docs-support-card p {
    font-size: 16px;
    margin-bottom: 24px;
    opacity: 1;
    color: var(--ln-white) !important;
    line-height: 1.6;
}

.docs-support-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    background-color: var(--ln-white);
    color: var(--ln-purple);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.docs-support-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.docs-demo-btn {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: var(--ln-white) !important;
    border: 2px solid var(--ln-white) !important;
    backdrop-filter: blur(10px);
}

.docs-demo-btn:hover {
    background-color: var(--ln-white) !important;
    color: var(--ln-purple) !important;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3) !important;
}

.docs-contact-btn {
    background-color: var(--ln-white) !important;
    color: var(--ln-purple) !important;
}

.docs-contact-btn:hover {
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: var(--ln-purple-dark) !important;
}

.docs-support-btn i {
    font-size: 18px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .docs-main {
        padding: 40px 40px;
    }
}

@media (max-width: 768px) {
    .docs-top-header {
        height: auto;
        flex-direction: column;
        padding: 16px;
        gap: 16px;
    }

    .docs-header-left {
        width: 100%;
        justify-content: center;
    }

    .docs-header-center {
        width: 100%;
        padding: 0;
    }

    .docs-header-right {
        width: 100%;
        justify-content: center;
    }

    .docs-container {
        padding-top: 180px; /* More space for stacked mobile header */
    }

    .docs-sidebar {
        top: 180px;
        height: calc(100vh - 180px);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .docs-sidebar.open {
        transform: translateX(0);
    }

    .docs-main {
        margin-left: 0;
        padding: 24px 20px;
    }

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

    .docs-hero-subtitle {
        font-size: 18px;
    }

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

    .docs-concepts-grid {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar Styling */
.docs-sidebar::-webkit-scrollbar {
    width: 6px;
}

.docs-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.docs-sidebar::-webkit-scrollbar-thumb {
    background: var(--ln-border);
    border-radius: 3px;
}

.docs-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--ln-text-secondary);
}
