/* Custom Utilities - Extracted from index.html & developer-docs.html */

/* Base Overrides */
body {
    background-color: #020617;
    color: #f8fafc;
    overflow-x: hidden;
}

/* Glassmorphism Classes */
.glass-panel {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.4), rgba(15, 23, 42, 0.6));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(6, 182, 212, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -15px rgba(6, 182, 212, 0.2);
}

/* Text Effects */
.text-glow {
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

.gradient-text {
    background: linear-gradient(to right, #ffffff, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Canvas (for index.html) */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

/* Scroll Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #020617;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #06b6d4;
}

/* Typography Overrides (for Documentation & Long Content) */
.prose h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    margin-top: 2rem;
}

.prose h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #e2e8f0;
    margin-top: 1.5rem;
}

.prose p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #94a3b8;
}

.prose ul,
.prose ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    color: #94a3b8;
}

.prose ul {
    list-style-type: disc;
}

.prose ol {
    list-style-type: decimal;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose a {
    color: #06b6d4;
    text-decoration: none;
    transition: color 0.2s;
}

.prose a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Accordion Styles (from FAQ) */
details > summary {
    list-style: none;
}

details > summary::-webkit-details-marker {
    display: none;
}

details[open] summary ~ * {
    animation: slideDown 0.3s ease-in-out;
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Table Styles (from How to Raise a Complaint) */
.custom-table {
    width: 100%;
    border-collapse: collapse;
}

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

.custom-table th {
    color: #06b6d4;
}

/* Code Block Styles (from Change Log Detail) */
pre {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

code {
    font-family: 'Fira Code', monospace;
    font-size: 0.875rem;
    color: #e2e8f0;
}

.change-item {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 2.5rem;
    border-left: 2px solid rgba(6, 182, 212, 0.2);
}

.change-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #06b6d4;
}
