/**
 * developer.css
 * Developer Documentation Page Styles
 * Extracted from developer.leaf by Claude: 13/01/2025
 */

/* Developer Documentation Styles */
.developer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-xl);
}

.developer-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
    padding: var(--space-2xl);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
}

.header-content {
    margin-bottom: var(--space-xl);
}

.header-icon {
    width: 80px;
    height: 80px;
    background: var(--purple-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    color: var(--text-white);
    box-shadow: var(--shadow-lg);
}

.header-icon svg {
    width: 32px;
    height: 32px;
}

.developer-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
    background: var(--purple-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.developer-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Requirements Badge */
.requirements-badge {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    padding: var(--space-sm) var(--space-md);
}

.badge-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary-purple);
}

/* Platform Credentials Selector */
.platform-selector-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-xl);
}

.platform-selector-container {
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md) var(--space-sm) var(--space-sm);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
}

.platform-selector-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--purple-gradient);
    border-radius: 50%;
    color: white;
    flex-shrink: 0;
}

.platform-selector-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.platform-selector-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.platform-selector-dropdown {
    padding: 0;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    min-width: 180px;
    transition: all var(--transition-normal);
}

.platform-selector-dropdown:hover {
    color: var(--primary-purple);
}

.platform-selector-dropdown:focus {
    outline: none;
    color: var(--primary-purple);
}

.platform-selector-dropdown option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: var(--space-sm);
}

.credentials-applied-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #10b981;
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    animation: badgePop 0.3s ease;
}

@keyframes badgePop {
    0% { opacity: 0; transform: scale(0.8); }
    50% { transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

/* Platform Tabs */
.platform-tabs {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-top: var(--space-xl);
}

.tab-button {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-secondary);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.tab-button.active {
    background: var(--purple-gradient);
    color: var(--text-white);
    border-color: var(--primary-purple);
    box-shadow: var(--shadow-md);
}

.tab-button:hover:not(.active) {
    background: var(--bg-primary);
    border-color: var(--primary-purple);
    color: var(--text-primary);
}

.tab-button svg {
    width: 20px;
    height: 20px;
}

/* Platform Content */
.platform-content {
    display: none;
}

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

/* Integration Sections */
.integration-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    padding: var(--space-2xl);
    margin-bottom: var(--space-xl);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-xl);
    border-bottom: 2px solid var(--glass-border);
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Step Sections */
.step-section {
    margin-bottom: var(--space-2xl);
    padding: var(--space-xl);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    transition: all var(--transition-normal);
}

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

.step-header {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.step-number {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--purple-gradient);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    box-shadow: var(--shadow-md);
}

.step-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.optional-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

/* Checklist Styles */
.checklist {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin: var(--space-lg) 0;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}

.checklist-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    background: var(--primary-purple);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.checklist-item span:last-child {
    color: var(--text-secondary);
}

.checklist-item strong {
    color: var(--text-primary);
}

/* Method Tabs Container */
.method-tabs-container {
    margin-top: var(--space-xl);
}

.method-tabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    border-bottom: 2px solid var(--glass-border);
    padding-bottom: var(--space-md);
}

.method-tab {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: transparent;
    border: none;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
}

.method-tab::after {
    content: '';
    position: absolute;
    bottom: calc(-1 * var(--space-md) - 2px);
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    border-radius: var(--radius-sm);
    transition: background var(--transition-normal);
}

.method-tab.active {
    color: var(--primary-purple);
}

.method-tab.active::after {
    background: var(--purple-gradient);
}

.method-tab:hover:not(.active) {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.method-content {
    display: none;
}

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

/* Method Description */
.method-description {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    margin-bottom: var(--space-xl);
}

.method-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.method-icon.success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.method-icon.manual {
    background: rgba(99, 102, 241, 0.15);
    color: #6366f1;
}

.method-icon svg {
    width: 24px;
    height: 24px;
}

.method-description h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.method-description p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* Framework Tabs Container */
.framework-tabs-container {
    margin-top: var(--space-lg);
}

.framework-tabs {
    display: flex;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
    background: var(--bg-tertiary);
    padding: var(--space-xs);
    border-radius: var(--radius-md);
    width: fit-content;
}

.framework-tab {
    padding: var(--space-sm) var(--space-lg);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.framework-tab.active {
    background: var(--purple-gradient);
    color: var(--text-white);
    box-shadow: var(--shadow-sm);
}

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

.framework-content {
    display: none;
}

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

/* Code Block Styles */
.code-block-container {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin: var(--space-lg) 0;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    background: var(--text-primary);
    color: var(--text-white);
    border-bottom: 1px solid var(--glass-border);
}

.code-title {
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.code-actions {
    display: flex;
    gap: var(--space-sm);
}

.copy-button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radius-sm);
    padding: var(--space-sm);
    color: var(--text-white);
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.copy-button svg {
    width: 16px;
    height: 16px;
}

.code-block {
    position: relative;
    overflow-x: auto;
    background: #1e1e1e;
}

.code-block pre {
    margin: 0;
    padding: var(--space-lg);
    background: #1e1e1e;
    color: #d4d4d4;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    overflow-x: auto;
}

.code-block code {
    background: none;
    padding: 0;
    font-family: inherit;
}

/* Info Boxes */
.info-box {
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
}

.info-box.info-box-tip {
    border-left: 4px solid #10b981;
}

.info-box.info-box-warning {
    border-left: 4px solid #f59e0b;
}

.info-box h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.info-box p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.info-box p:last-child {
    margin-bottom: 0;
}

.info-box ul,
.info-box ol {
    margin: var(--space-md) 0;
    padding-left: var(--space-lg);
}

.info-box li {
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

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

.info-box code {
    background: var(--bg-secondary);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--primary-purple);
}

/* API Reference Tables */
.api-section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: var(--space-xl) 0 var(--space-md) 0;
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--glass-border);
}

.api-table-container {
    overflow-x: auto;
    margin-bottom: var(--space-lg);
}

.api-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.api-table th,
.api-table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.api-table th {
    background: var(--bg-tertiary);
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
}

.api-table td {
    color: var(--text-secondary);
}

.api-table td code {
    background: var(--bg-tertiary);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 0.8125rem;
    color: var(--primary-purple);
    white-space: nowrap;
}

.api-table tr:hover {
    background: var(--bg-tertiary);
}

/* Support Section */
.support-section {
    background: var(--purple-gradient);
    color: var(--text-white);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    text-align: center;
    margin-top: var(--space-xl);
    box-shadow: var(--shadow-lg);
}

.support-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text-white);
}

.support-content p {
    font-size: 1.125rem;
    margin-bottom: var(--space-xl);
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.support-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.support-section .btn {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.support-section .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Utility Classes */
.mt-4 {
    margin-top: var(--space-lg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .developer-content {
        padding: var(--space-md);
    }

    .developer-header {
        padding: var(--space-lg);
    }

    .developer-header h1 {
        font-size: 2rem;
    }

    .platform-tabs {
        flex-direction: column;
        align-items: center;
    }

    .tab-button {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }

    .requirements-badge {
        flex-direction: column;
        align-items: center;
    }

    .step-header {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }

    .step-header h3 {
        font-size: 1.25rem;
        justify-content: center;
    }

    .method-tabs {
        flex-direction: column;
    }

    .method-tab {
        width: 100%;
        justify-content: center;
    }

    .method-tab::after {
        display: none;
    }

    .method-tab.active {
        background: var(--bg-tertiary);
    }

    .method-description {
        flex-direction: column;
        text-align: center;
    }

    .method-icon {
        margin: 0 auto;
    }

    .framework-tabs {
        width: 100%;
        justify-content: center;
    }

    .code-header {
        flex-direction: column;
        gap: var(--space-sm);
        align-items: flex-start;
    }

    .code-actions {
        align-self: flex-end;
    }

    .checklist-item {
        flex-direction: column;
        text-align: center;
    }

    .support-actions {
        flex-direction: column;
        align-items: center;
    }

    .api-table td code {
        white-space: normal;
        word-break: break-word;
    }
}

@media (max-width: 480px) {
    .developer-header h1 {
        font-size: 1.75rem;
    }

    .step-section {
        padding: var(--space-lg);
    }

    .code-block pre {
        padding: var(--space-md);
        font-size: 0.8rem;
    }

    .platform-selector-container {
        flex-direction: column;
        gap: var(--space-sm);
        padding: var(--space-md);
        border-radius: var(--radius-lg);
    }

    .platform-selector-icon {
        width: 32px;
        height: 32px;
    }

    .platform-selector-content {
        text-align: center;
    }

    .platform-selector-dropdown {
        min-width: 160px;
        text-align: center;
    }
}
