/* Custom styles for StoneScriptPHP website */

/* Code blocks styling */
pre[class*="language-"] {
    margin: 0;
    padding: 1rem;
    border-radius: 0;
}

pre code {
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Copy button styling from Prism toolbar */
div.code-toolbar {
    position: relative;
}

div.code-toolbar > .toolbar {
    position: absolute;
    top: 0.3em;
    right: 0.3em;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

div.code-toolbar:hover > .toolbar {
    opacity: 1;
}

div.code-toolbar > .toolbar .toolbar-item button {
    background: #4b5563;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    border: none;
    cursor: pointer;
    font-size: 0.75rem;
}

div.code-toolbar > .toolbar .toolbar-item button:hover {
    background: #374151;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Active navigation link highlight */
nav a.active {
    color: #0ea5e9;
    font-weight: 500;
}

/* Responsive table scrolling */
.overflow-x-auto {
    -webkit-overflow-scrolling: touch;
}

/* Print styles */
@media print {
    nav,
    footer {
        display: none;
    }

    .pt-16 {
        padding-top: 0 !important;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }
}
