/* ============================================
   NOVA™ Brand Identity CSS
   The World's First Allied Defence Training LLM
   ============================================ */

:root {
    /* NOVA Brand Colors */
    --nova-gold: #d4af37;
    --nova-gold-light: #e6c65c;
    --nova-gold-dark: #b8960c;
    --nova-navy: #0a1628;
    --nova-navy-light: #1a2a4a;
    --nova-navy-dark: #050d18;
    --nova-white: #ffffff;
    --nova-gray: #9ca3af;
    --nova-gray-light: #e5e7eb;
    
    /* Element Colors */
    --nova-governance: #6366f1;
    --nova-analysis: #10b981;
    --nova-design: #8b5cf6;
    --nova-delivery: #f59e0b;
    --nova-assurance: #3b82f6;
}

/* ============================================
   NOVA Background with Logo
   ============================================ */

.nova-bg {
    position: relative;
    background: var(--nova-navy);
}

.nova-bg::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/nova-logo.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 60% auto;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

.nova-bg > * {
    position: relative;
    z-index: 1;
}

/* Hero section with prominent logo */
.nova-hero-bg {
    position: relative;
    background: radial-gradient(ellipse at center, var(--nova-navy-light) 0%, var(--nova-navy-dark) 100%);
    overflow: hidden;
}

.nova-hero-bg::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background-image: url('images/nova-logo.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   NOVA Loading Overlay
   ============================================ */

.nova-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--nova-navy);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.nova-loading.fade-out {
    opacity: 0;
    pointer-events: none;
}

.nova-loading-logo {
    width: 200px;
    height: 200px;
    background-image: url('images/nova-logo.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    animation: nova-pulse 2s ease-in-out infinite;
}

.nova-loading-text {
    margin-top: 24px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--nova-white);
    letter-spacing: 4px;
}

.nova-loading-text span {
    color: var(--nova-gold);
}

.nova-loading-subtitle {
    margin-top: 8px;
    font-size: 12px;
    color: var(--nova-gray);
    letter-spacing: 2px;
    text-transform: uppercase;
}

@keyframes nova-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

/* ============================================
   NOVA Header/Logo Component
   ============================================ */

.nova-header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nova-header-logo-icon {
    width: 40px;
    height: 40px;
    background-image: url('images/nova-logo.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    filter: brightness(1.2);
}

.nova-header-logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--nova-white);
    letter-spacing: 2px;
}

.nova-header-logo-text .tm {
    color: var(--nova-gold);
    font-size: 14px;
    vertical-align: super;
}

/* ============================================
   NOVA Card with Logo Watermark
   ============================================ */

.nova-card-watermark {
    position: relative;
    overflow: hidden;
}

.nova-card-watermark::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background-image: url('images/nova-logo.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.03;
    pointer-events: none;
}

/* ============================================
   NOVA Button Styles
   ============================================ */

.nova-btn-primary {
    background: linear-gradient(135deg, var(--nova-gold), var(--nova-gold-dark));
    color: var(--nova-navy);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.nova-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

.nova-btn-secondary {
    background: rgba(212, 175, 55, 0.1);
    color: var(--nova-gold);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.nova-btn-secondary:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--nova-gold);
}

/* ============================================
   NOVA Footer Branding
   ============================================ */

.nova-footer {
    padding: 24px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--nova-navy-dark);
}

.nova-footer-logo {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background-image: url('images/nova-logo.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.6;
}

.nova-footer-text {
    font-size: 12px;
    color: var(--nova-gray);
}

.nova-footer-text strong {
    color: var(--nova-gold);
}

/* ============================================
   NOVA Splash/Welcome Screen
   ============================================ */

.nova-splash {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--nova-navy);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.nova-splash-logo {
    width: 300px;
    height: 300px;
    background-image: url('images/nova-logo.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    animation: nova-entrance 1.5s ease-out;
}

.nova-splash-title {
    margin-top: 32px;
    font-size: 48px;
    font-weight: 700;
    color: var(--nova-white);
    letter-spacing: 8px;
    animation: nova-fade-in 1s ease-out 0.5s both;
}

.nova-splash-title span {
    color: var(--nova-gold);
}

.nova-splash-tagline {
    margin-top: 16px;
    font-size: 14px;
    color: var(--nova-gray);
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: nova-fade-in 1s ease-out 1s both;
}

@keyframes nova-entrance {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes nova-fade-in {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   NOVA Document Export Styles
   ============================================ */

.nova-doc-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--nova-gold);
    margin-bottom: 24px;
}

.nova-doc-header-logo {
    width: 48px;
    height: 48px;
}

.nova-doc-header-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--nova-navy);
}

.nova-doc-footer {
    margin-top: 48px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    font-size: 10px;
    color: #6b7280;
}

/* ============================================
   NOVA Modal Branding
   ============================================ */

.nova-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--nova-navy-light);
}

.nova-modal-logo {
    width: 32px;
    height: 32px;
    background-image: url('images/nova-logo.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

/* ============================================
   NOVA Progress/Status Indicators
   ============================================ */

.nova-progress-ring {
    position: relative;
    width: 60px;
    height: 60px;
}

.nova-progress-ring::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background-image: url('images/nova-logo.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.5;
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .nova-bg::before,
    .nova-hero-bg::before,
    .nova-loading {
        display: none !important;
    }
    
    .nova-doc-header-logo {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}