/**
 * ============================================================================
 * File:        /inc/dark.css
 * Project:     Neural Core 5 - NeuralCore5.ai
 * Version:     1.0.0
 * Description: Unified dark theme CSS for all NeuralCore5 pages
 *              Combines styles from landing page, docs pages, safety pages
 * Author:      Mister Wizard
 * Created:     2025-11-07
 * Updated:     2025-11-07
 * Copyright:   Proprietary, by Mister Wizard ONLY!
 * ============================================================================
 */

/* ============================================================================
   CSS VARIABLES
   ============================================================================ */
:root {
    --nc5-primary: #0d6efd;
    --nc5-primary-08: rgba(13, 110, 253, 0.08);
    --nc5-grid: rgba(255, 255, 255, 0.04);
    --nc5-text: #ffffff;
    --nc5-sub: #a3b1c6;
    --nc5-glow: rgba(13, 110, 253, 0.5);
    --nc5-ok: #19c37d;
    --nc5-success: #19c37d;
    --nc5-warning: #ffc107;
    --nc5-danger: #dc3545;
}

/* ============================================================================
   GLOBAL RESET & BASE STYLES
   ============================================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #0a0e17;
    color: var(--nc5-text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================================================
   ANIMATED BACKGROUNDS (Used across all pages)
   ============================================================================ */
.bg-aurora {
    position: absolute;
    inset: -10%;
    background:
            radial-gradient(40% 30% at 20% 20%, rgba(13, 110, 253, .25), transparent 60%),
            radial-gradient(35% 25% at 80% 30%, rgba(168, 85, 247, .12), transparent 60%),
            radial-gradient(30% 30% at 50% 80%, rgba(99, 102, 241, .12), transparent 60%);
    filter: blur(44px);
    z-index: 0;
    animation: aurora-shift 20s ease-in-out infinite;
}

@keyframes aurora-shift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(5%, -3%) scale(1.05); }
    66% { transform: translate(-3%, 5%) scale(0.98); }
}

.bg-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
            linear-gradient(var(--nc5-grid) 1px, transparent 1px),
            linear-gradient(90deg, var(--nc5-grid) 1px, transparent 1px);
    background-size: 40px 40px, 40px 40px;
    mask-image: radial-gradient(circle at 50% 50%, black, transparent 65%);
}

/* ============================================================================
   CONTAINERS
   ============================================================================ */
.coming-soon-container {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle at center, var(--nc5-primary-08) 0%, rgba(0, 0, 0, 0.22) 70%);
    overflow: hidden;
    isolation: isolate;
}

.privacy-container,
.tos-container,
.safety-container {
    min-height: 100vh;
    position: relative;
    background: radial-gradient(circle at center, var(--nc5-primary-08) 0%, rgba(0, 0, 0, 0.22) 70%);
    overflow: hidden;
    isolation: isolate;
}

/* ============================================================================
   CONTENT WRAPPERS
   ============================================================================ */
.content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    padding: 1.5rem;
    text-align: center;
    max-height: 95vh;
    overflow-y: auto;
}

.privacy-header .content-wrapper,
.tos-header .content-wrapper,
.safety-header .content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ============================================================================
   HEADERS
   ============================================================================ */
.privacy-header,
.tos-header,
.safety-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 2rem;
}

/* ============================================================================
   ANIMATED ICONS
   ============================================================================ */
.brain-icon,
.privacy-icon,
.tos-icon,
.safety-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.privacy-icon,
.tos-icon,
.safety-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.brain-icon svg,
.privacy-icon svg,
.tos-icon svg,
.safety-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 30px var(--nc5-glow));
}

.brain-icon .pulse-ring {
    position: absolute;
    inset: -20%;
    border: 2px solid var(--nc5-primary);
    border-radius: 50%;
    opacity: 0;
    animation: pulse 3s ease-out infinite;
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ============================================================================
   TYPOGRAPHY
   ============================================================================ */
.main-title {
    font-weight: 700;
    font-size: 2.75rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--nc5-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(13, 110, 253, 0.10);
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.privacy-header .main-title,
.tos-header .main-title,
.safety-header .main-title {
    font-size: 2.5rem;
    text-shadow: none;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--nc5-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.privacy-header .subtitle,
.tos-header .subtitle,
.safety-header .subtitle {
    font-size: 1rem;
    color: var(--nc5-sub);
    letter-spacing: normal;
    text-transform: none;
    font-weight: normal;
}

.description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--nc5-sub);
    max-width: 680px;
    margin: 0 auto 1.5rem;
}

.last-updated {
    font-size: 0.9rem;
    color: var(--nc5-sub);
    font-style: italic;
}

/* ============================================================================
   CONTENT CARDS
   ============================================================================ */
.privacy-content,
.tos-content,
.safety-content {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
}

.privacy-content h2,
.tos-content h2,
.safety-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--nc5-text);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.privacy-content h2:first-child,
.tos-content h2:first-child,
.safety-content h2:first-child {
    margin-top: 0;
}

.privacy-content h3,
.tos-content h3,
.safety-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--nc5-text);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.privacy-content h4,
.tos-content h4,
.safety-content h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--nc5-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.privacy-content p,
.tos-content p,
.safety-content p {
    line-height: 1.7;
    color: var(--nc5-sub);
    margin-bottom: 1rem;
}

.privacy-content ul,
.privacy-content ol,
.tos-content ul,
.tos-content ol,
.safety-content ul,
.safety-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.privacy-content li,
.tos-content li,
.safety-content li {
    line-height: 1.7;
    color: var(--nc5-sub);
    margin-bottom: 0.5rem;
}

.privacy-content strong,
.tos-content strong,
.safety-content strong {
    color: var(--nc5-text);
    font-weight: 600;
}

/* ============================================================================
   FEATURE CHIPS
   ============================================================================ */
.feature-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.chip {
    font-size: 0.8rem;
    color: #c9d4e5;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.chip:hover {
    background: rgba(255, 255, 255, .12);
    border-color: var(--nc5-primary);
    transform: translateY(-2px);
}

.chip i {
    margin-right: 0.3rem;
}

/* ============================================================================
   FEATURE CARDS
   ============================================================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-card {
    background: rgba(13, 110, 253, .08);
    border: 1px solid rgba(13, 110, 253, .18);
    border-radius: 12px;
    padding: 1.25rem 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
    border-color: var(--nc5-primary);
}

.feature-card i {
    font-size: 2rem;
    color: var(--nc5-primary);
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--nc5-text);
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--nc5-sub);
    margin: 0;
    line-height: 1.4;
}

/* ============================================================================
   NOTIFY SECTION
   ============================================================================ */
.notify-section {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    padding: 1.5rem 1.5rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.notify-section h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--nc5-text);
}

.notify-section p {
    color: var(--nc5-sub);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.notify-form {
    max-width: 500px;
    margin: 0 auto;
}

.notify-form .input-group {
    box-shadow: 0 4px 20px rgba(13, 110, 253, 0.2);
}

.notify-form .form-control {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .15);
    color: var(--nc5-text);
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
}

.notify-form .form-control:focus {
    background: rgba(255, 255, 255, .08);
    border-color: var(--nc5-primary);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    color: var(--nc5-text);
}

.notify-form .btn-primary {
    padding: 0.65rem 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

/* ============================================================================
   SPECIAL CONTENT BOXES
   ============================================================================ */

/* Mission Box */
.mission-box {
    background: rgba(25, 195, 125, 0.08);
    border: 1px solid rgba(25, 195, 125, 0.3);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.mission-box h2 {
    color: var(--nc5-success);
    border-bottom-color: rgba(25, 195, 125, 0.3);
}

/* Age Group Sections */
.young-adults-section {
    background: rgba(255, 193, 7, 0.08);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.young-adults-section h2 {
    color: var(--nc5-warning);
    border-bottom-color: rgba(255, 193, 7, 0.3);
}

.adults-section {
    background: rgba(13, 110, 253, 0.08);
    border: 1px solid rgba(13, 110, 253, 0.3);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.adults-section h2 {
    color: var(--nc5-primary);
    border-bottom-color: rgba(13, 110, 253, 0.3);
}

.seniors-section {
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.seniors-section h2 {
    color: #a855f7;
    border-bottom-color: rgba(168, 85, 247, 0.3);
}

/* Warning Box */
.warning-box {
    background: rgba(255, 193, 7, 0.08);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.warning-box h4 {
    color: var(--nc5-warning);
    margin-top: 0;
}

/* Danger Box */
.danger-box {
    background: rgba(220, 53, 69, 0.08);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.danger-box h4 {
    color: var(--nc5-danger);
    margin-top: 0;
}

/* Info Box */
.info-box {
    background: rgba(13, 110, 253, 0.08);
    border: 1px solid rgba(13, 110, 253, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.info-box h4 {
    color: var(--nc5-primary);
    margin-top: 0;
}

/* California Section */
.california-section {
    background: rgba(13, 110, 253, 0.08);
    border: 1px solid rgba(13, 110, 253, 0.3);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.california-section h2 {
    color: var(--nc5-primary);
    border-bottom-color: rgba(13, 110, 253, 0.3);
}

/* Resources Section */
.resources-section {
    background: rgba(13, 110, 253, 0.08);
    border: 1px solid rgba(13, 110, 253, 0.3);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.resources-section h2 {
    color: var(--nc5-primary);
    border-bottom-color: rgba(13, 110, 253, 0.3);
}

/* Resource Cards */
.resource-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.resource-card h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.resource-card a {
    color: var(--nc5-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.resource-card a:hover {
    color: #ffffff;
}

/* Contact Box */
.contact-box {
    background: rgba(13, 110, 253, 0.08);
    border: 1px solid rgba(13, 110, 253, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.contact-box h4 {
    margin-top: 0;
}

.contact-box a {
    color: var(--nc5-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-box a:hover {
    color: #ffffff;
}

/* ============================================================================
   FOOTER
   ============================================================================ */
.footer {
    position: relative;
    z-index: 2;
    padding: 1rem 0.5rem 0.5rem;
    text-align: center;
    color: var(--nc5-sub);
    font-size: 0.85rem;
}

.privacy-container .footer,
.tos-container .footer,
.safety-container .footer {
    padding: 2rem 1rem;
}

.footer-links {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--nc5-sub);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--nc5-primary);
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.social-icons a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    color: var(--nc5-text);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.social-icons a:hover {
    background: var(--nc5-primary);
    border-color: var(--nc5-primary);
    transform: translateY(-3px);
}

/* Back to Home Link */
.back-link {
    text-align: center;
    margin-top: 2rem;
    padding-bottom: 2rem;
}

.back-link a {
    color: var(--nc5-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-link a:hover {
    color: #ffffff;
    gap: 0.75rem;
}

/* ============================================================================
   CUSTOM SCROLLBARS
   ============================================================================ */
.content-wrapper::-webkit-scrollbar {
    width: 8px;
}

.content-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.content-wrapper::-webkit-scrollbar-thumb {
    background: rgba(13, 110, 253, 0.5);
    border-radius: 10px;
}

.content-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(13, 110, 253, 0.7);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(13, 110, 253, 0.5);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(13, 110, 253, 0.7);
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

/* Desktop - Ensure no scrolling needed on typical screens */
@media (min-width: 992px) {
    .coming-soon-container {
        overflow: hidden;
    }

    .coming-soon-container .content-wrapper {
        overflow-y: visible;
        max-height: none;
    }
}

/* Tablet */
@media (max-width: 991px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .main-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .description {
        font-size: 0.95rem;
    }

    .brain-icon {
        width: 70px;
        height: 70px;
    }

    .feature-card {
        padding: 1rem 0.85rem;
    }

    .notify-section {
        padding: 1.25rem 1rem;
    }

    .coming-soon-container {
        height: auto;
        min-height: 100vh;
    }

    .coming-soon-container .content-wrapper {
        overflow-y: auto;
        max-height: none;
    }

    .privacy-content,
    .tos-content,
    .safety-content {
        padding: 1.5rem;
    }

    .privacy-content h2,
    .tos-content h2,
    .safety-content h2 {
        font-size: 1.5rem;
    }

    .privacy-content h3,
    .tos-content h3,
    .safety-content h3 {
        font-size: 1.25rem;
    }

    .mission-box,
    .young-adults-section,
    .adults-section,
    .seniors-section,
    .california-section,
    .resources-section {
        padding: 1.5rem;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .main-title {
        font-size: 1.75rem;
    }

    .subtitle {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .description {
        font-size: 0.9rem;
    }

    .brain-icon {
        width: 65px;
        height: 65px;
    }

    .privacy-icon,
    .tos-icon,
    .safety-icon {
        width: 60px;
        height: 60px;
    }

    .chip {
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
    }

    .notify-form .btn-primary {
        width: 100%;
        margin-top: 0.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .content-wrapper {
        padding: 1rem;
    }

    .privacy-header,
    .tos-header,
    .safety-header {
        margin-bottom: 2rem;
        padding-top: 1rem;
    }

    .privacy-content,
    .tos-content,
    .safety-content {
        padding: 1.25rem;
    }
}

/* ============================================================================
   HIGH CONTRAST MODE
   ============================================================================ */
@media (prefers-contrast: high) {
    .main-title {
        background: #ffffff;
        -webkit-text-fill-color: #ffffff;
    }
}