/* styles.css */

:root {
    /* Colores Base */
    --bg-dark: #0F111A;
    --surface: rgba(26, 30, 46, 0.6);
    --surface-solid: #1A1E2E;
    --border-light: rgba(255, 255, 255, 0.1);

    /* Neones */
    --primary: #FF75A0;
    /* Neon Pink */
    --secondary: #00F5D4;
    /* Electric Cyan */
    --brand-blue: #3D4C8F;
    /* Legacy Blue */
    --action: #6366F1;
    /* Hyper Violet */

    /* Texto */
    --text-light: #F0F2F5;
    --text-dim: #94A3B8;

    /* Tipografía */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-dim);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

html {
    scroll-behavior: smooth;
}

/* Atmósfera (Noise & Orbs) */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.ambient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--brand-blue);
    top: -100px;
    left: -100px;
    opacity: 0.4;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    bottom: -150px;
    right: -150px;
    opacity: 0.15;
}

/* .container override removed to inherit from styles.css */

/* Tipografía */
.h2-display,
h3,
h1 {
    font-family: var(--font-display);
    color: var(--text-light);
    font-weight: 700;
}

.text-gradient {
    background: linear-gradient(90deg, var(--secondary), var(--action));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Componente: Glass Panel */
.glass-panel {
    background: var(--surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* Header */
.main-header {
    text-align: center;
    margin-bottom: 40px;
}

.brand-title {
    font-size: 3rem;
    letter-spacing: -0.04em;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-dim);
}

/* Menú de Navegación Vertical */
.prompt-nav {
    padding: 30px;
    margin-bottom: 60px;
}

.nav-title {
    margin-bottom: 24px;
    font-size: 1.25rem;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 12px;
}

.nav-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.nav-card {
    display: block;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.nav-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--secondary);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 245, 212, 0.1);
    /* Cyan glow suave */
}

.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.nav-id {
    font-family: var(--font-display);
    color: var(--text-dim);
    font-weight: 700;
    opacity: 0.5;
}

.nav-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-light);
}

.nav-card p {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin: 0;
}

/* Tags */
.tag {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 100px;
    letter-spacing: 0.05em;
}

.tag-cyan {
    background: rgba(0, 245, 212, 0.1);
    color: var(--secondary);
    border: 1px solid rgba(0, 245, 212, 0.2);
}

.tag-pink {
    background: rgba(255, 117, 160, 0.1);
    color: var(--primary);
    border: 1px solid rgba(255, 117, 160, 0.2);
}

.tag-outline {
    border: 1px solid var(--text-dim);
    color: var(--text-dim);
}

/* Prompt Completo */
.prompts-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
    padding-bottom: 100px;
}

.prompt-full {
    padding: 0;
    /* padding interno manejado por hijos */
    overflow: hidden;
    scroll-margin-top: 40px;
}

.prompt-header {
    padding: 30px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.code-block-wrapper {
    padding: 30px;
    background: rgba(15, 17, 26, 0.5);
    /* Fondo más oscuro para el código */
    position: relative;
}

pre {
    font-family: 'Outfit', monospace;
    /* Usamos Outfit para legibilidad, o una monospace si prefieres */
    font-size: 0.95rem;
    color: #cbd5e1;
    white-space: pre-wrap;
    /* Mantiene saltos de línea */
    word-wrap: break-word;
}

/* Botón Neón */
.btn-neon {
    background: var(--primary);
    color: #0F111A;
    font-family: var(--font-body);
    font-weight: 700;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(255, 117, 160, 0.4);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
}

.btn-neon:hover {
    box-shadow: 0 0 30px rgba(255, 117, 160, 0.7);
    transform: scale(1.02);
}

.btn-neon.copied {
    background: var(--secondary);
    box-shadow: 0 0 15px rgba(0, 245, 212, 0.4);
}

/* Media Queries */
@media (max-width: 768px) {
    .brand-title {
        font-size: 2rem;
    }

    .nav-grid {
        grid-template-columns: 1fr;
    }

    .prompt-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-neon {
        width: 100%;
    }
}

/* --- Layout Grid (Sidebar + Content) --- */
/* --- Layout Grid (Sidebar + Content) --- */
.content-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
    position: relative;
    min-height: 80vh;
}

.sticky-sidebar {
    position: sticky;
    top: 120px;
    padding: 1.5rem;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    border: 1px solid var(--border-light);
}

.sidebar-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.tab-link {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem !important;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    border-radius: 12px !important;
    color: var(--text-dim);
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.tab-link:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.tab-link.active {
    background: rgba(0, 245, 212, 0.05);
    border-color: var(--secondary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.tab-head {
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 6px;
}

.tab-link.active .tab-head {
    color: var(--secondary);
}

.tab-desc {
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.4;
    opacity: 0.9;
}

.sid-num {
    font-size: 0.75rem;
    color: var(--secondary);
    margin-right: 8px;
    font-family: var(--font-display);
    font-weight: 700;
    opacity: 0.6;
    border: 1px solid rgba(0, 245, 212, 0.3);
    padding: 1px 5px;
    border-radius: 4px;
}

.tab-link.active .sid-num {
    background: var(--secondary);
    color: #000;
    opacity: 1;
}

/* Animations and Tab Logic */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.back-link {
    display: block;
    font-size: 0.9rem;
    color: var(--text-dim);
    transition: color 0.2s;
    text-decoration: none;
    padding-left: 0.5rem;
}

.back-link:hover {
    color: var(--secondary);
}

/* Mobile Responsive Sidebar */
@media (max-width: 900px) {
    .content-wrapper {
        display: flex;
        flex-direction: column;
    }

    .sticky-sidebar {
        position: relative;
        top: 0;
        max-height: none;
        margin-bottom: 2rem;
    }

    .sidebar-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        overflow-x: visible;
        padding-bottom: 0;
    }

    .tab-link {
        min-width: 0;
        /* Override previous min-width */
        height: 100%;
        /* Ensure equal height in grid */
    }
}

/* --- Global Header styles inherited from styles.css --- */