/* style.css */
:root {
    --brand: #0F172A; 
    --accent: #6366F1; 
    --accent-hover: #4F46E5;
    --bg-color: #F8FAFC; 
    --surface: #FFFFFF; 
    --text-main: #334155;
    --text-muted: #64748B; 
    --border: #E2E8F0;
    --glass-bg: rgba(255, 255, 255, 0.85);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background-color: var(--bg-color); color: var(--text-main); -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; min-height: 100vh; }

/* === HEADER (GLASSMORPHISM) === */
.glass-header { 
    position: fixed; top: 0; left: 0; right: 0; height: 75px; 
    background: var(--glass-bg); 
    backdrop-filter: blur(16px); 
    -webkit-backdrop-filter: blur(16px); 
    border-bottom: 1px solid rgba(255,255,255,0.3); 
    box-shadow: 0 4px 30px rgba(0,0,0,0.03); 
    z-index: 1000; display: flex; justify-content: center; 
}

/* --- FALLBACK: KUN HVIS HARDWARE ACCELERATION ER SLÅET FRA --- */
body.no-hw-accel .glass-header {
    background: #FFFFFF !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid var(--border);
}

body.no-hw-accel .wizard-bar,
body.no-hw-accel .card {
    background: #FFFFFF !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
/* ------------------------------------------------------------- */

.header-container { width: 100%; max-width: 1200px; display: flex; justify-content: space-between; align-items: center; padding: 0 1.5rem; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; font-weight: 900; color: var(--brand); text-decoration: none; letter-spacing: -0.5px; }
.logo img { width: 36px; height: 36px; border-radius: 10px; }

.desktop-nav { display: flex; gap: 2rem; }
.desktop-nav a { text-decoration: none; color: var(--text-main); font-weight: 600; font-size: 0.95rem; transition: 0.2s; }
.desktop-nav a:hover { color: var(--accent); }

.auth-buttons { display: flex; gap: 1rem; align-items: center; }
.btn-ghost { text-decoration: none; color: var(--brand); font-weight: 700; font-size: 0.95rem; transition: 0.2s; }
.btn-ghost:hover { color: var(--accent); }
.btn-primary-small { background: var(--accent); color: white; padding: 10px 20px; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 0.95rem; transition: 0.2s; box-shadow: 0 4px 10px rgba(99, 102, 241, 0.2); }
.btn-primary-small:hover { background: var(--accent-hover); transform: translateY(-2px); }

@media (max-width: 768px) { .desktop-nav { display: none; } }

/* === FOOTER === */
.site-footer { background: var(--brand); color: white; padding: 4rem 2rem 2rem 2rem; margin-top: auto; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand h3 { font-size: 1.5rem; font-weight: 900; margin-bottom: 1rem; color: white; }
.footer-brand p { color: #94A3B8; line-height: 1.6; font-size: 0.95rem; }
.footer-logo { width: 48px; height: 48px; border-radius: 12px; margin-bottom: 1rem; }

.footer-links h4 { font-size: 1rem; font-weight: 700; margin-bottom: 1.2rem; color: white; }
.footer-links a { display: block; color: #94A3B8; text-decoration: none; margin-bottom: 0.8rem; font-size: 0.9rem; transition: 0.2s; }
.footer-links a:hover { color: var(--accent); padding-left: 5px; }

.footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; align-items: center; color: #64748B; font-size: 0.85rem; }
.tech-stack { font-weight: 600; color: #94A3B8; }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

/* === GLOBALE MODALS === */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001; /* Sikrer at den er over alt andet */
    backdrop-filter: blur(4px);
    padding: 20px;
}

.modal-box {
    background: white;
    padding: 2rem;
    border-radius: 24px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    text-align: center;
    margin: auto;
    max-height: 90vh;
    overflow-y: auto;
}
