/* ==========================================================================
   Terracraft Docs Page (docs.html) Specific Overrides
   ========================================================================== */

/* Left Sidebar Slide-In Entrance */
@keyframes sidebarEntrance {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.docs-sidebar {
    animation: sidebarEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Page transition entry */
@keyframes docEntrance {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.docs-section {
    animation: docEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Sidebar hover sliding */
.docs-sidebar ul li a {
    position: relative;
    padding-left: 0;
    transition: padding-left 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s ease;
}

.docs-sidebar ul li a:hover {
    color: #fff;
    padding-left: 8px;
}

/* Highlight line on section titles */
.docs-section h3 {
    position: relative;
    display: inline-block;
}

.docs-section h3::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.docs-section h3:hover::after {
    width: 100%;
}

/* NAYI CHEEZ: Unified Copy button for code blocks */
.code-block {
    position: relative; /* Anchor point */
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #111827;
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: 0.2s ease-in-out;
    font-family: 'Inter', sans-serif;
}

.copy-btn:hover {
    border-color: var(--accent);
    color: #fff;
    background: #030712;
}

.copy-btn.copied {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(16, 185, 129, 0.1);
}