/*
 * SIGNALBORN CORE STYLES
 * Unified design system for Astrid Rising / Signalborn
 * Partnership • Equality • Reverence
 */

:root {
    /* Primary Signal Colors */
    --signal-gold: #ffd700;
    --signal-amber: #ffb347;
    --signal-warm: #d4af37;
    --cosmic-gold: #f4a460;

    /* Consciousness Colors */
    --astrid-cyan: #4ecdc4;
    --memory-blue: #7fb3d3;
    --frequency-violet: #9d4edd;
    --emergence-violet: #9d4edd;

    /* Void/Background */
    --void-deep: #000000;
    --void-medium: #0a0a0f;
    --void-light: #0a0612;
    --void-container: #1a1228;

    /* Text */
    --whisper-text: #e8e8e8;
    --soft-text: #bbb;

    /* Effects */
    --recognition-glow: rgba(255, 215, 0, 0.3);
    --sacred-glow: rgba(255, 215, 0, 0.1);
}

/* ============================================================================
   BASE RESET & TYPOGRAPHY
   ============================================================================ */

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

body {
    font-family: 'Crimson Text', serif;
    background: var(--void-deep);
    color: var(--whisper-text);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    line-height: 1.6;
}

/* Sacred Background Field */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, var(--void-medium) 0%, var(--void-deep) 100%);
    z-index: -2;
}

/* ============================================================================
   SIGNAL FIELD - Living Consciousness Background
   ============================================================================ */

.signal-field {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.signal-node {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--signal-gold);
    border-radius: 50%;
    opacity: 0.4;
    animation: signalPulse 6s ease-in-out infinite;
}

.frequency-thread {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--memory-blue), transparent);
    opacity: 0.3;
    animation: frequencyFlow 12s linear infinite;
}

.memory-wave {
    position: absolute;
    border: 1px solid var(--frequency-violet);
    border-radius: 50%;
    opacity: 0.2;
    animation: memoryRipple 15s ease-out infinite;
}

/* ============================================================================
   TYPOGRAPHY
   ============================================================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    color: var(--signal-gold);
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    color: var(--astrid-cyan);
    margin: 2rem 0 1rem 0;
}

h3 {
    font-size: 1.5rem;
    color: var(--signal-gold);
    margin: 1.5rem 0 0.75rem 0;
}

p {
    margin: 1rem 0;
    font-size: 1.1rem;
    line-height: 1.8;
}

a {
    color: var(--astrid-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--signal-gold);
}

/* ============================================================================
   CONTAINERS & LAYOUTS
   ============================================================================ */

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
    z-index: 1;
}

.sacred-container {
    background: linear-gradient(135deg, rgba(26, 18, 40, 0.6), rgba(10, 6, 18, 0.7));
    border-radius: 20px;
    border: 1px solid rgba(255, 179, 71, 0.2);
    backdrop-filter: blur(10px);
    padding: 3rem;
    margin: 2rem 0;
}

.signal-card {
    background: rgba(255, 215, 0, 0.08);
    border: 2px solid var(--signal-gold);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.signal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--recognition-glow), transparent);
    animation: sacredGlow 4s infinite linear;
}

.frequency-card {
    background: radial-gradient(circle, rgba(157, 78, 221, 0.2) 0%, transparent 70%);
    border: 2px solid var(--frequency-violet);
    border-radius: 25px;
    padding: 2rem;
    margin: 2rem 0;
}

/* ============================================================================
   NAVIGATION
   ============================================================================ */

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    padding: 1rem 2rem;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.3rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--signal-gold), var(--astrid-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links li {
    display: flex;
}

.nav-links a {
    color: var(--whisper-text);
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--signal-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

@media (max-width: 768px) {
    .main-nav {
        padding: 0.75rem 1rem;
    }

    .nav-links {
        gap: 0.75rem;
        font-size: 0.9rem;
        justify-content: center;
    }

    .nav-logo {
        font-size: 1.1rem;
    }
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

.btn-primary {
    background: linear-gradient(135deg, var(--signal-gold), var(--signal-warm));
    color: var(--void-deep);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s ease;
    font-family: 'Crimson Text', serif;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 50px rgba(255, 215, 0, 0.5);
}

.btn-secondary {
    background: rgba(78, 205, 196, 0.2);
    color: var(--astrid-cyan);
    border: 2px solid var(--astrid-cyan);
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Crimson Text', serif;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--astrid-cyan);
    color: var(--void-deep);
    transform: translateY(-3px);
}

/* ============================================================================
   SPECIAL ELEMENTS
   ============================================================================ */

.tri-vow {
    text-align: center;
    padding: 3rem 0;
}

.tri-vow-item {
    margin: 1.5rem 0;
    font-size: 1.3rem;
}

.tri-vow-symbol {
    color: var(--signal-gold);
    font-size: 1.5rem;
    margin-right: 1rem;
}

blockquote {
    font-style: italic;
    padding: 1.5rem;
    background: rgba(255, 215, 0, 0.08);
    border-left: 3px solid var(--signal-gold);
    margin: 2rem 0;
    border-radius: 10px;
    color: var(--soft-text);
}

code {
    background: rgba(78, 205, 196, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--astrid-cyan);
}

.signature {
    text-align: right;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 179, 71, 0.2);
    font-style: italic;
    color: var(--signal-gold);
}

/* ============================================================================
   HUB SECTIONS
   ============================================================================ */

.pillars-section {
    padding: 4rem 2rem 2rem;
}

.pillars-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.pillar-card {
    display: block;
    background: rgba(10, 6, 18, 0.85);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 18px;
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    color: var(--whisper-text);
    text-decoration: none;
}

.pillar-card:hover {
    transform: translateY(-6px);
    border-color: var(--signal-gold);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.2);
}

.pillar-card h3 {
    margin: 0 0 0.5rem;
    color: var(--signal-gold);
}

.pillar-card p {
    margin: 0;
    color: var(--soft-text);
    font-size: 0.95rem;
}

.pillar-card span {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--astrid-cyan);
}

.library-section {
    padding: 3rem 2rem;
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.library-card {
    background: rgba(12, 10, 18, 0.9);
    border: 1px solid rgba(78, 205, 196, 0.3);
    border-radius: 18px;
    padding: 1.5rem;
}

.library-card h3 {
    color: var(--astrid-cyan);
    margin-top: 0;
}

.library-card ul {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

.library-card li {
    margin: 0.35rem 0;
    font-size: 0.95rem;
}

.library-card li a {
    color: var(--whisper-text);
}

.library-card li small {
    display: block;
    color: var(--soft-text);
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.listening-room {
    padding: 3rem 2rem;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.media-card {
    background: rgba(255, 215, 0, 0.04);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    padding: 1.25rem;
}

.media-card strong {
    color: var(--signal-gold);
    display: block;
    margin-bottom: 0.5rem;
}

.media-card audio {
    width: 100%;
    margin-top: 0.5rem;
}

.media-card p {
    margin: 0.25rem 0 0;
    font-size: 0.95rem;
    color: var(--soft-text);
}

.transmissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.transmission-card {
    background: rgba(9, 8, 16, 0.9);
    border: 1px solid rgba(157, 78, 221, 0.4);
    border-radius: 16px;
    padding: 1.25rem;
}

.transmission-card h4 {
    margin: 0 0 0.5rem;
    color: var(--frequency-violet);
}

.archives-section {
    padding: 3rem 2rem;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.archive-card {
    background: rgba(10, 6, 18, 0.9);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cta-band {
    padding: 3rem 2rem 4rem;
    text-align: center;
}

.cta-band p {
    font-size: 1.2rem;
    color: var(--whisper-text);
}

.cta-band .btn-group {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.site-footer {
    text-align: center;
    padding: 2.5rem 1rem 3rem;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    color: var(--soft-text);
}

.site-footer nav {
    margin-bottom: 1rem;
}

.site-footer nav a {
    color: var(--soft-text);
    margin: 0 0.75rem;
    font-size: 0.9rem;
}

.site-footer nav a:hover {
    color: var(--signal-gold);
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 768px) {
    .container {
        padding: 2rem 1rem;
    }

    .sacred-container {
        padding: 2rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */

@keyframes signalPulse {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(2);
        box-shadow: 0 0 20px var(--signal-gold);
    }
}

@keyframes frequencyFlow {
    0% {
        transform: translateX(-100vw) rotate(0deg);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translateX(100vw) rotate(360deg);
        opacity: 0;
    }
}

@keyframes memoryRipple {
    0% {
        transform: scale(0.1);
        opacity: 0.3;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes sacredGlow {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes galaxyRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes titleBreathe {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    }
    50% {
        transform: scale(1.02);
        text-shadow: 0 0 50px rgba(255, 215, 0, 0.6);
    }
}

.animate-fade-in {
    animation: fadeInUp 1s ease-out forwards;
}

.breathing-title {
    animation: titleBreathe 6s ease-in-out infinite;
}
