/* WHITESTONES - Documentation Styles */

/* Authentication Section */
.documentation-auth {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.auth-container {
    max-width: 500px;
    margin: 0 auto;
}

.auth-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.auth-header p {
    color: var(--medium-gray);
    margin-bottom: 2rem;
}

.auth-form .form-group {
    text-align: left;
    margin-bottom: 1.5rem;
}

.auth-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--charcoal);
    font-weight: 500;
}

.auth-form .form-group input {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--zen-transition);
    background: var(--white);
}

.auth-form .form-group input:focus {
    outline: none;
    border-color: var(--charcoal);
    box-shadow: 0 0 0 3px rgba(52, 58, 64, 0.1);
}

.error-message {
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.auth-help {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.auth-help p {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.auth-help a {
    color: var(--charcoal);
    text-decoration: none;
    font-weight: 500;
}

.auth-help a:hover {
    text-decoration: underline;
}

/* Documentation Header */
.doc-header {
    background: var(--charcoal);
    color: var(--white);
    padding: 1.5rem 0;
    position: sticky;
    top: 80px;
    z-index: 100;
}

.doc-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.doc-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.doc-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--zen-transition);
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Documentation Layout */
.doc-main {
    background: var(--light-gray);
    min-height: calc(100vh - 200px);
}

.doc-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 0;
    min-height: calc(100vh - 200px);
}

/* Sidebar */
.doc-sidebar {
    background: var(--white);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    padding: 2rem 0;
    position: sticky;
    top: 140px;
    height: fit-content;
    max-height: calc(100vh - 180px);
    overflow-y: auto;
}

.doc-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.doc-sidebar .nav-item {
    display: block;
    padding: 0.75rem 2rem;
    color: var(--medium-gray);
    text-decoration: none;
    transition: var(--zen-transition);
    border-left: 3px solid transparent;
}

.doc-sidebar .nav-item:hover {
    background: var(--light-gray);
    color: var(--charcoal);
}

.doc-sidebar .nav-item.active {
    color: var(--charcoal);
    background: var(--light-gray);
    border-left-color: var(--charcoal);
    font-weight: 500;
}

/* Main Content */
.doc-content {
    padding: 2rem 3rem;
    background: var(--white);
    margin: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.doc-section {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.doc-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.doc-section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.doc-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--charcoal);
    margin: 2rem 0 1rem 0;
}

.doc-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--charcoal);
    margin: 1.5rem 0 0.75rem 0;
}

.doc-section p {
    color: var(--medium-gray);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.doc-section ul, .doc-section ol {
    color: var(--medium-gray);
    line-height: 1.7;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

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

/* Code Blocks */
.code-block {
    background: #1e1e1e;
    border-radius: 8px;
    margin: 1.5rem 0;
    overflow: hidden;
    border: 1px solid #333;
}

.code-header {
    background: #2d2d2d;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.code-header span {
    color: #ccc;
    font-size: 0.9rem;
    font-weight: 500;
}

.copy-btn {
    background: #404040;
    color: #ccc;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--zen-transition);
}

.copy-btn:hover {
    background: #505050;
    color: #fff;
}

.code-block pre {
    margin: 0;
    padding: 1.5rem;
    overflow-x: auto;
}

.code-block code {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #f8f8f2;
    background: none;
    padding: 0;
}

/* Inline code */
code {
    background: var(--light-gray);
    color: var(--charcoal);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.9em;
}

/* Code Tabs */
.code-tabs {
    display: flex;
    border-bottom: 1px solid #333;
    background: #2d2d2d;
    border-radius: 8px 8px 0 0;
    margin: 1.5rem 0 0 0;
}

.code-tab {
    padding: 0.75rem 1.5rem;
    background: #404040;
    color: #ccc;
    cursor: pointer;
    border-right: 1px solid #333;
    transition: var(--zen-transition);
    font-size: 0.9rem;
}

.code-tab:last-child {
    border-right: none;
}

.code-tab:hover {
    background: #505050;
    color: #fff;
}

.code-tab.active {
    background: #1e1e1e;
    color: #f8f8f2;
}

.code-tabs + .code-block {
    margin-top: 0;
    border-radius: 0 0 8px 8px;
}

/* Info Boxes */
.info-box, .warning-box {
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid;
}

.info-box {
    background: #e3f2fd;
    border-left-color: #2196f3;
}

.info-box h4 {
    color: #1976d2;
    margin: 0 0 0.5rem 0;
}

.info-box p {
    color: #0d47a1;
    margin: 0;
}

.warning-box {
    background: #fff3cd;
    border-left-color: #ffc107;
}

.warning-box h4 {
    color: #856404;
    margin: 0 0 0.5rem 0;
}

.warning-box p {
    color: #856404;
    margin: 0;
}

/* Endpoints */
.endpoint {
    background: var(--light-gray);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'JetBrains Mono', monospace;
}

.method {
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.method.post {
    background: #28a745;
    color: white;
}

.method.get {
    background: #007bff;
    color: white;
}

.method.put {
    background: #ffc107;
    color: #212529;
}

.method.delete {
    background: #dc3545;
    color: white;
}

.path {
    font-weight: 500;
    color: var(--charcoal);
}

/* Tables */
.error-table {
    margin: 1.5rem 0;
    overflow-x: auto;
}

.error-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.error-table th,
.error-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.error-table th {
    background: var(--light-gray);
    font-weight: 600;
    color: var(--charcoal);
}

.error-table td {
    color: var(--medium-gray);
}

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

/* Contact Section */
.doc-contact {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--light-gray);
}

.contact-card {
    background: var(--light-gray);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
}

.contact-card h3 {
    font-size: 1.5rem;
    color: var(--charcoal);
    margin-bottom: 1rem;
}

.contact-card p {
    color: var(--medium-gray);
    margin-bottom: 2rem;
}

.contact-options {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-options a {
    color: var(--charcoal);
    text-decoration: none;
}

.contact-options a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .doc-layout {
        grid-template-columns: 200px 1fr;
    }
    
    .doc-content {
        padding: 2rem;
        margin: 1rem;
    }
}

@media (max-width: 768px) {
    .doc-layout {
        grid-template-columns: 1fr;
    }
    
    .doc-sidebar {
        position: static;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .doc-content {
        padding: 1.5rem;
        margin: 0;
        border-radius: 0;
    }
    
    .doc-header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .auth-card {
        padding: 2rem;
        margin: 1rem;
    }
    
    .contact-options {
        flex-direction: column;
    }
    
    .code-tabs {
        flex-wrap: wrap;
    }
    
    .code-tab {
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .doc-content {
        padding: 1rem;
    }
    
    .auth-card {
        padding: 1.5rem;
    }
    
    .doc-section h2 {
        font-size: 1.5rem;
    }
}