/* ==========================================================================
   External Pages Shared CSS
   
   Centralized styles for all public/external pages:
   - Homepage
   - Authentication pages (login, register, forgot-password, reset-password, verify-email)
   - Marketing pages (pricing, FAQ, contact, legal)
   
   This file contains:
   - Global variables (consistent with homepage-v2.css)
   - Navigation/Header styles
   - Footer styles
   - Common external page elements
   
   Page-specific styles:
   - homepage-v2.css (hero, features, demo sections)
   - auth.css (login/register form styling)
   - page-specific/*.css (pricing, faq, legal pages)
   ========================================================================== */

/* ==========================================================================
   Global CSS Variables - Consistent with homepage-v2.css
   ========================================================================== */

:root {
    /* Brand Colors - Lumify Palette */
    --primary: #FF3D5A;           /* Laser Coral */
    --primary-hover: #E6355C;
    --secondary: #00D7C8;         /* Teal */
    --violet: #6B5BFF;            /* Ion Violet */
    
    /* Legacy aliases (for backward compatibility) */
    --primary-color: #FF3D5A;
    --secondary-color: #00D7C8;
    --ion-violet: #6B5BFF;
    --ion-violet-hover: #5a4ad9;
    
    /* Neutrals */
    --bg: #FAFAFA;
    --bg-white: #FFFFFF;
    --bg-dark: #0a0a0a;
    --bg-light: #ffffff;
    --text-primary: #111111;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --border: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.12);
    --border-color: rgba(0, 0, 0, 0.1);
    
    /* Typography - Updated to DM Sans */
    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
    
    /* Spacing */
    --section-gap: 60px;
    --container-width: 1200px;
    --content-width: 800px;
    
    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   Navigation / Header - site-header
   ========================================================================== */

/* Support both old .navbar and new .site-header classes */
.navbar,
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Old Bootstrap navbar styling */
.navbar {
    padding: 0;
}

.navbar .container {
    max-width: var(--container-width);
    height: 64px;
    display: flex;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 28px;
    width: auto;
    transition: opacity 0.2s ease;
}

.navbar-brand:hover img {
    opacity: 0.9;
}

.navbar-nav .nav-link {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7) !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 1) !important;
}

.btn-nav-primary {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    margin-left: 0.5rem;
}

.btn-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #fff !important;
    background: var(--text-primary) !important;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    margin-left: 0.5rem;
    transition: all 0.2s;
}

.btn-nav-cta:hover {
    background: var(--primary) !important;
    transform: translateY(-1px);
}

/* Navbar toggler for mobile */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.1);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ==========================================================================
   Footer - site-footer
   ========================================================================== */

.footer,
.site-footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 24px 40px;
}

.footer .container,
.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 64px;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
}

.footer-logo {
    height: 28px;
    width: auto;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
}

.footer-heading,
.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.footer-links,
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-col li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-col a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover,
.footer-col a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
    max-width: var(--container-width);
    margin: 60px auto 0;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.footer-bottom p,
.copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

.social-links,
.footer-social {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.social-links a,
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    font-size: 18px;
}

.social-links a:hover,
.footer-social a:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Common Page Elements
   ========================================================================== */

/* Page content wrapper - accounts for fixed header */
.page-content {
    padding-top: 100px;
    min-height: 100vh;
}

/* Section Labels */
.label-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    margin-right: 8px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* Common Buttons */
.btn-primary-lg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: var(--text-primary);
    padding: 14px 28px;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary-lg:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 61, 90, 0.25);
}

/* ==========================================================================
   Alerts
   ========================================================================== */

.alert-success {
    background: rgba(0, 215, 200, 0.1);
    color: #00a99d;
    border: 1px solid rgba(0, 215, 200, 0.2);
}

.alert-danger,
.alert-error {
    background: rgba(255, 61, 90, 0.1);
    color: var(--primary);
    border: 1px solid rgba(255, 61, 90, 0.2);
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #cc9a00;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.alert-info {
    background: rgba(107, 91, 255, 0.1);
    color: var(--violet);
    border: 1px solid rgba(107, 91, 255, 0.2);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 991px) {
    .navbar-collapse {
        width: 100% !important;
        background-color: var(--bg-dark);
        padding: 1rem;
        border-radius: var(--radius-lg);
        margin-top: 0.5rem;
    }
    
    .navbar-collapse.show,
    .navbar-collapse.collapsing {
        display: block !important;
    }
    
    .navbar-nav {
        padding: 0.5rem 0;
        width: 100% !important;
        flex-direction: column !important;
    }
    
    .navbar-nav .nav-item {
        width: 100% !important;
        display: block !important;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        width: 100%;
        display: block;
        text-align: left;
    }
    
    .navbar-nav .nav-item .btn-nav-primary,
    .navbar-nav .nav-item .btn-nav-cta,
    .navbar .btn-nav-primary,
    .navbar .btn-nav-cta {
        margin: 0.5rem 0 0 0 !important;
        margin-left: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        text-align: center !important;
        padding: 0.75rem 1rem !important;
    }
    
    .btn-nav-primary:hover,
    .btn-nav-cta:hover {
        background-color: var(--primary-hover) !important;
        box-shadow: 0 0 15px rgba(255, 61, 90, 0.4);
        transform: translateY(-2px);
    }
    
    .navbar-nav .nav-link:hover {
        color: var(--primary) !important;
        background: rgba(255, 61, 90, 0.08);
        border-radius: 0.5rem;
    }
    
    .navbar-nav a[href*="github"] {
        display: none !important;
    }
    
    /* Footer responsive */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-brand img {
        height: 24px;
    }
    
    .footer-links-grid {
        grid-template-columns: 1fr;
    }
}
