/* Ladybug Email Verification - Documentation Styles */

/* ==================== Reset & Base Styles ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-color: #4F46E5;
    --primary-dark: #4338CA;
    --primary-light: #6366F1;
    --secondary-color: #10B981;
    --accent-color: #F59E0B;
    --danger-color: #EF4444;

    /* Neutrals */
    --bg-color: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --bg-tertiary: #F3F4F6;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --text-tertiary: #9CA3AF;
    --border-color: #E5E7EB;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    --font-mono: 'Consolas', 'Monaco', 'Courier New', monospace;
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background-color: var(--bg-color);
    line-height: 1.6;
    font-size: 16px;
}

/* ==================== Header ==================== */
.header {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    font-size: 1.75rem;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.main-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

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

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

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

/* ==================== Documentation Layout ==================== */
.docs-container {
    display: flex;
    max-width: 1600px;
    margin: 0 auto;
    min-height: calc(100vh - 70px);
}

/* ==================== Sidebar ==================== */
.sidebar {
    width: 280px;
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 1.5rem;
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;
    flex-shrink: 0;
}

.sidebar-header h3 {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-box {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    transition: border-color 0.2s;
}

.search-box:focus {
    outline: none;
    border-color: var(--primary-color);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.nav-section h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.nav-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-section a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.nav-section a:hover {
    background-color: var(--bg-tertiary);
    color: var(--primary-color);
}

.nav-section a.active {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

/* ==================== Main Content ==================== */
.main-content {
    flex: 1;
    padding: 2rem 3rem;
    max-width: 900px;
}

.content-section {
    margin-bottom: 4rem;
}

.content-section h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.content-section h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.content-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

li {
    margin-bottom: 0.5rem;
}

strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ==================== Feature Grid ==================== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.3s;
}

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

.feature-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* ==================== Feature List ==================== */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1.5rem;
}

.feature-item {
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-color);
}

.feature-item h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.feature-item ul {
    margin-left: 1.5rem;
    margin-bottom: 0;
}

/* ==================== Pricing Grid ==================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.pricing-card {
    background-color: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

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

.pricing-card.featured {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-bottom-left-radius: 0.5rem;
}

.pricing-header {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    padding: 2rem 1.5rem;
    text-align: center;
}

.pricing-header h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    margin-top: 0;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.credits {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.pricing-body {
    padding: 1.5rem;
    text-align: center;
}

.per-credit {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.savings {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* ==================== Highlight Box ==================== */
.highlight-box {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    border-left: 4px solid var(--accent-color);
    padding: 1rem 1.5rem;
    border-radius: 0.375rem;
    margin: 1.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.highlight-box i {
    color: var(--accent-color);
    font-size: 1.25rem;
    margin-top: 0.125rem;
}

/* ==================== CTA Section ==================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    padding: 3rem 2rem;
    border-radius: 0.5rem;
    text-align: center;
    margin-top: 3rem;
}

.cta-section h3 {
    color: white;
    font-size: 1.875rem;
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.btn-cta {
    display: inline-block;
    background-color: white;
    color: var(--primary-color);
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.2s;
    box-shadow: var(--shadow-md);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.note {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* ==================== FAQ ==================== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    overflow: hidden;
}

.faq-question {
    padding: 1rem 1.5rem;
    background-color: var(--bg-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    font-size: 1rem;
    transition: background-color 0.2s;
}

.faq-question:hover {
    background-color: var(--bg-tertiary);
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(90deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-item.active .faq-answer {
    padding: 1rem 1.5rem;
    max-height: 500px;
}

.faq-answer p {
    margin-bottom: 0.5rem;
}

.faq-answer ul {
    margin-top: 0.5rem;
}

/* ==================== Contact Grid ==================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-card {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
    transition: all 0.3s;
}

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

.contact-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.contact-card p {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.contact-card .note {
    color: var(--text-tertiary);
}

/* ==================== Footer ==================== */
.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-section ul {
    list-style: none;
    margin: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-tertiary);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    margin: 0;
}

/* ==================== Code Blocks ==================== */
.code-block-wrapper {
    position: relative;
    margin: 1.5rem 0;
}

pre {
    background-color: #1E293B;
    color: #E2E8F0;
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.6;
}

code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background-color: var(--bg-tertiary);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    color: var(--danger-color);
}

pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
}

.copy-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-family: var(--font-sans);
}

.copy-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.copy-button.copied {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Syntax highlighting */
.keyword {
    color: #C792EA;
    font-weight: 500;
}

.string {
    color: #C3E88D;
}

.comment {
    color: #546E7A;
    font-style: italic;
}

.flag {
    color: #82AAFF;
}

.property {
    color: #F78C6C;
}

.number {
    color: #F78C6C;
}

/* ==================== Tables ==================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.875rem;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
}

tr:hover {
    background-color: var(--bg-secondary);
}

/* ==================== Responsive Design ==================== */
@media (max-width: 1024px) {
    .docs-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .main-content {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav {
        width: 100%;
        justify-content: center;
    }

    .feature-grid,
    .pricing-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .content-section h1 {
        font-size: 1.875rem;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }

    .main-content {
        padding: 1.5rem 1rem;
    }
}

/* ==================== Utility Classes ==================== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

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

.sidebar::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

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

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

/* ==================== Back to Top Button ==================== */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* ==================== Mobile Menu ==================== */
#mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    width: 3rem;
    height: 3rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 1001;
    box-shadow: var(--shadow-md);
}

@media (max-width: 1024px) {
    #mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        z-index: 1000;
        transition: left 0.3s;
        box-shadow: var(--shadow-lg);
    }

    .sidebar.mobile-open {
        left: 0;
    }
}

/* ==================== Loading Animation ==================== */
body {
    opacity: 0;
    transition: opacity 0.3s;
}

body.loaded {
    opacity: 1;
}

/* ==================== Tabbed Code Examples ==================== */
.code-tabs {
    margin: 1.5rem 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--bg-secondary);
}

.tab-buttons {
    display: flex;
    background-color: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    margin: 0;
    gap: 0;
    overflow-x: auto;
}

.tab-button {
    flex: 1;
    min-width: fit-content;
    padding: 0.75rem 1.5rem;
    border: none;
    background-color: transparent;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
    position: relative;
}

.tab-button:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.tab-button.active {
    background-color: var(--bg-color);
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
    padding: 0;
    background-color: var(--bg-color);
}

.tab-content.active {
    display: block;
}

.tab-content pre {
    margin: 0;
    border-radius: 0;
    border: none;
}

.tab-content pre code {
    display: block;
    padding: 1.5rem;
    background-color: #1e1e1e;
    color: #d4d4d4;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.6;
    overflow-x: auto;
}

/* Mobile responsiveness for tabs */
@media (max-width: 768px) {
    .tab-button {
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
    }
    
    .tab-content pre code {
        font-size: 0.8125rem;
        padding: 1rem;
    }
}

/* Syntax highlighting for code */
.language-bash .hljs-comment,
.language-python .hljs-comment,
.language-javascript .hljs-comment,
.language-java .hljs-comment,
.language-go .hljs-comment {
    color: #6a9955;
}

.language-bash .hljs-string,
.language-python .hljs-string,
.language-javascript .hljs-string,
.language-java .hljs-string,
.language-go .hljs-string {
    color: #ce9178;
}

.language-python .hljs-keyword,
.language-javascript .hljs-keyword,
.language-java .hljs-keyword,
.language-go .hljs-keyword {
    color: #569cd6;
}

.language-python .hljs-function,
.language-javascript .hljs-function,
.language-java .hljs-function,
.language-go .hljs-function {
    color: #dcdcaa;
}
