/* styles5.css - enhancements for index5 code showcase and spacing */

/* Global refinements */
html, body { cursor: none; }
.custom-cursor { pointer-events: none; position: fixed; z-index: 2001; transform: translate(-50%, -50%); }

/* Navbar polishing: sticky, backdrop, above cursor */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Add top padding equal to navbar height via CSS variable set by JS */
body { padding-top: var(--nav-h, 64px); }

/* Layout spacing adjustments */
.showcase {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1rem;
}

/* Position the showcase relative to page sections */
.showcase.compact { padding-top: 1.25rem; padding-bottom: 1.25rem; }

/* Ensure spacing between hero CTA and showcase */
.hero .cta-buttons { margin-bottom: 1.25rem; }
.hero + .showcase { margin-top: 0.5rem; }

/* Code window container */
.code-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* Optional side-by-side on larger screens */
@media (min-width: 1024px) {
    .code-showcase {
        grid-template-columns: 1.1fr 0.9fr;
        align-items: start;
    }
}

/* Panel card styling for info beside code */
.panel-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 12px;
    padding: 16px;
    color: #e2e8f0;
}
.panel-card h3 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    color: #f8fafc;
}
.panel-card ul {
    margin: 0;
    padding-left: 18px;
}
.panel-card li {
    margin: 4px 0;
}

/* Code window */
.code-window {
    width: 100%;
    max-width: 720px;
    background: #0f172a;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.15);
    box-shadow: 0 24px 48px rgba(0,0,0,0.35);
}

.window-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #0b1220;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}
.window-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.window-controls { display: flex; gap: 8px; }
.window-controls .control { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.window-controls .control.close { background: #ef4444; }
.window-controls .control.minimize { background: #f59e0b; }
.window-controls .control.maximize { background: #22c55e; }

.tabbar { display: flex; gap: 6px; }
.tab {
    font-size: 12px;
    color: #94a3b8;
    background: rgba(148,163,184,0.08);
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid transparent;
}
.tab.active {
    color: #e2e8f0;
    background: rgba(148,163,184,0.18);
    border-color: rgba(148,163,184,0.22);
}

.window-actions { display: flex; gap: 8px; align-items: center; }
.btn-icon {
    background: rgba(148,163,184,0.08);
    border: 1px solid rgba(148,163,184,0.18);
    color: #cbd5e1;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
}
.btn-icon:hover { background: rgba(148,163,184,0.16); }

.theme-pill {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    background: rgba(148,163,184,0.08);
    border: 1px solid rgba(148,163,184,0.18);
    border-radius: 999px;
}
.theme-dot {
    width: 10px; height: 10px; border-radius: 50%; cursor: pointer; display: inline-block;
}
.theme-dot.dark { background: #0f172a; border: 1px solid #1f2937; }
.theme-dot.emerald { background: #064e3b; border: 1px solid #065f46; }
.theme-dot.violet { background: #3b0764; border: 1px solid #4c1d95; }

.window-content {
    padding: 16px 18px;
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}
.code-line { display: flex; gap: 12px; align-items: baseline; color: #e2e8f0; line-height: 1.6; }
.line-number { width: 22px; text-align: right; color: #64748b; user-select: none; }
.code-text { white-space: pre; }
.code-text .keyword { color: #60a5fa; }
.code-text .variable { color: #f472b6; }
.code-text .property { color: #93c5fd; }
.code-text .string { color: #facc15; }
.code-line.highlight { background: rgba(250, 204, 21, 0.08); border-left: 3px solid #f59e0b; padding-left: 9px; border-radius: 6px; }

.window-status {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 12px; border-top: 1px solid rgba(148, 163, 184, 0.15);
    background: #0b1220; color: #94a3b8; font-size: 12px;
}

/* Themes */
.code-window.theme-dark { background: #0f172a; }
.code-window.theme-emerald { background: #052e2b; }
.code-window.theme-violet { background: #170f2a; }

.code-window.theme-emerald .window-header,
.code-window.theme-emerald .window-status { background: #06221f; }
.code-window.theme-violet .window-header,
.code-window.theme-violet .window-status { background: #120b20; }

/* Compact spacing utilities */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.my-8 { margin-top: 0.5rem; margin-bottom: 0.5rem; }

/* Ensure native cursor hidden on interactive elements too */
a, button, .btn, .nav-links a { cursor: none; }

/* Force-hide native cursor everywhere, including clickable elements that override it */
* { cursor: none !important; }


