/*
Theme Name: Cognitive Synapse
Theme URI: https://cognitivesynapse.io/
Author: Antigravity AI
Author URI: https://cognitivesynapse.io/
Description: Futuristic dark glassmorphism WordPress theme with interactive 60fps HTML5 neural canvas engine, Web Audio synthesizer, and custom Cognitive Session dialogue management.
Version: 1.1.5
Text Domain: cognitivesynapse
*/

:root {
    --bg-dark: #070814;
    --bg-panel: rgba(14, 17, 34, 0.78);
    --border-glass: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(0, 243, 255, 0.35);
    
    --cyan: #00f3ff;
    --violet: #9d4edd;
    --rose: #ff2a85;
    --gold: #ffd166;
    --emerald: #06d6a0;
    
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Fira Code', monospace;
    
    --shadow-glow: 0 0 25px rgba(0, 243, 255, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-heading);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Glassmorphism General */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: 9999px;
    padding: 6px 14px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Layout Container */
.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 2;
}

.main-content {
    flex: 1;
    padding-top: 100px; /* Space for fixed header */
    padding-bottom: 60px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 76px;
    z-index: 9999;
    background: rgba(7, 8, 20, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    transition: top 0.3s ease;
}

/* WordPress Admin Bar Compatibility */
body.admin-bar .site-header {
    top: 32px;
}
@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text-main);
}

.brand-icon {
    position: relative;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-icon .pulse-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--cyan);
    animation: ringPulse 2.5s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

.brand-icon .core-dot {
    width: 12px;
    height: 12px;
    background: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--cyan);
}

@keyframes ringPulse {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.brand-text h1 {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #fff 30%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-text .subtext {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
    display: block;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-menu a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid transparent;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--cyan);
    background: rgba(0, 243, 255, 0.08);
    border-color: rgba(0, 243, 255, 0.2);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.icon-btn:hover, .icon-btn.active {
    background: rgba(0, 243, 255, 0.15);
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

/* Footer */
.site-footer {
    background: rgba(7, 8, 20, 0.95);
    border-top: 1px solid var(--border-glass);
    padding: 24px 0;
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--emerald);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--emerald);
}

/* Hero Section (Front Page) */
.hero-section {
    padding: 40px 0 30px;
    text-align: center;
    position: relative;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #a5f3fc 50%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 760px;
    margin: 0 auto 32px;
    font-weight: 300;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(0,243,255,0.2) 0%, rgba(157,78,221,0.2) 100%);
    border: 1px solid var(--cyan);
    color: #fff;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(0,243,255,0.35) 0%, rgba(157,78,221,0.35) 100%);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.4);
}

/* Dialogue Cards Grid */
.dialogue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.dialogue-card {
    padding: 24px;
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.dialogue-card:hover {
    border-color: var(--cyan);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 243, 255, 0.12);
}

.dialogue-card .card-meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--cyan);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.dialogue-card .card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.dialogue-card .card-excerpt {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.dialogue-card .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-dim);
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .header-container { padding: 0 16px; }
    .nav-menu { display: none; }
}
