/* ============================================
   CUTI-E DOCS - MODERN SIDEBAR LAYOUT
   ============================================ */

/* Base Layout */
.docs-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

/* ============================================
   SIDEBAR - Pink Gradient Theme
   ============================================ */
.docs-sidebar {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    padding: 2rem 1.5rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}

.docs-sidebar-logo {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 105, 180, 0.2);
}

.docs-sidebar-logo span {
    font-size: 2rem;
}

.docs-sidebar-logo a {
    text-decoration: none;
    background: linear-gradient(135deg, #FF69B4, #FF1493);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.docs-sidebar-logo a:hover {
    background: linear-gradient(135deg, #FF1493, #FF69B4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.docs-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.docs-nav-section {
    font-size: 0.7rem;
    font-weight: 700;
    color: #FF69B4;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    padding-left: 0.75rem;
}

.docs-nav-section:first-child {
    margin-top: 0;
}

.docs-nav-link {
    display: block;
    padding: 0.625rem 0.875rem;
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.docs-nav-link:hover {
    background: rgba(255, 105, 180, 0.1);
    color: white;
    border-left-color: rgba(255, 105, 180, 0.5);
}

.docs-nav-link.active {
    background: linear-gradient(90deg, rgba(255, 105, 180, 0.2), transparent);
    color: white;
    border-left-color: #FF69B4;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.docs-content {
    padding: 3rem 4rem;
    max-width: 900px;
    background: white;
}

.docs-content h1 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

.docs-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    color: var(--gray-900);
    padding-top: 2rem;
    border-top: 2px solid var(--gray-100);
    letter-spacing: -0.01em;
}

.docs-content h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--gray-800);
}

.docs-content p {
    margin-bottom: 1.25rem;
    color: var(--gray-600);
    line-height: 1.75;
    font-size: 1.0625rem;
}

.docs-content ul, .docs-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.docs-content li {
    margin-bottom: 0.5rem;
    color: var(--gray-600);
    line-height: 1.7;
}

.docs-content code {
    font-family: 'JetBrains Mono', monospace;
    background: linear-gradient(135deg, #fdf2f8, #fce7f3);
    padding: 0.2rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: #9D174D;
    font-weight: 500;
}

.docs-content pre {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    border: 1px solid rgba(255, 105, 180, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.docs-content pre:focus {
    outline: 2px solid var(--pink-primary);
    outline-offset: 2px;
}

.docs-content pre code {
    background: none;
    padding: 0;
    color: #e2e8f0;
    font-size: 0.875rem;
    line-height: 1.7;
    font-weight: 400;
}

/* ============================================
   PLATFORM TABS
   ============================================ */
.platform-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.platform-tab {
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--gray-200);
    border-radius: 0.5rem;
    background: white;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
}

.platform-tab:hover {
    border-color: var(--pink-primary);
    color: var(--pink-primary);
}

.platform-tab.active {
    background: linear-gradient(135deg, #FF69B4, #FF1493);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
}

.platform-content {
    display: none;
}

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

/* ============================================
   CALLOUTS
   ============================================ */
.callout {
    padding: 1.25rem 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.callout-info {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-left-color: #3b82f6;
}

.callout-info a {
    color: #1d4ed8;
    font-weight: 600;
}

.callout-warning {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-left-color: #f59e0b;
}

.callout-warning a {
    color: #b45309;
    font-weight: 600;
}

.callout-success {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-left-color: #22c55e;
}

.callout-success a {
    color: #15803d;
    font-weight: 600;
}

.callout p {
    margin: 0;
    color: var(--gray-700);
}

/* Links */
.docs-link, .docs-content a {
    color: #be185d;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.docs-link:hover, .docs-content a:hover {
    color: #9D174D;
    text-decoration: underline;
}

/* ============================================
   API TABLE
   ============================================ */
.api-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.api-table th,
.api-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-100);
}

.api-table th {
    font-weight: 600;
    color: var(--gray-700);
    background: var(--gray-50);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.api-table tr:hover td {
    background: var(--gray-50);
}

.api-table code {
    font-size: 0.8rem;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
    .docs-layout {
        grid-template-columns: 1fr;
    }

    .docs-sidebar {
        display: none;
    }

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

    .docs-content h1 {
        font-size: 2rem;
    }

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

/* Mobile Navigation Toggle (for future enhancement) */
.docs-mobile-nav-toggle {
    display: none;
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF69B4, #FF1493);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 105, 180, 0.4);
    z-index: 100;
    color: white;
    font-size: 1.5rem;
}

@media (max-width: 968px) {
    .docs-mobile-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
