/* ===========================================
   NetDevOps Micro-Tools - Shared Styles
   Used across all pages for consistent look
   =========================================== */

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

/* ===========================================
   CSS Variables - Light Mode (default)
   =========================================== */
:root {
    --primary: #0A3A60;
    --secondary: #1E5B89;
    --accent: #4FB8D6;
    --dark: #081A26;
    --white: #FFFFFF;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-400: #94A3B8;
    --gray-600: #475569;
    --danger: #dc2626;
    --success: #059669;

    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-card: #F8FAFC;
    --bg-nav: rgba(255, 255, 255, 0.95);
    --bg-footer: #081A26;
    --text-primary: #081A26;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --border-color: #E2E8F0;
    --card-shadow: rgba(0, 0, 0, 0.08);
}

/* ===========================================
   CSS Variables - Dark Mode
   =========================================== */
[data-theme="dark"] {
    --primary: #4FB8D6;
    --secondary: #6BC5DE;
    --accent: #4FB8D6;
    --dark: #FFFFFF;
    --white: #0A0F14;
    --gray-50: #111921;
    --gray-100: #1A242E;
    --gray-200: #243038;
    --gray-400: #6B7B8A;
    --gray-600: #9BABB8;

    --bg-primary: #0A0F14;
    --bg-secondary: #111921;
    --bg-card: #1A242E;
    --bg-nav: rgba(10, 15, 20, 0.95);
    --bg-footer: #081A26;
    --text-primary: #FFFFFF;
    --text-secondary: #9BABB8;
    --text-muted: #6B7B8A;
    --border-color: #243038;
    --card-shadow: rgba(0, 0, 0, 0.3);
}

/* System preference detection */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --primary: #4FB8D6;
        --secondary: #6BC5DE;
        --accent: #4FB8D6;
        --dark: #FFFFFF;
        --white: #0A0F14;
        --gray-50: #111921;
        --gray-100: #1A242E;
        --gray-200: #243038;
        --gray-400: #6B7B8A;
        --gray-600: #9BABB8;

        --bg-primary: #0A0F14;
        --bg-secondary: #111921;
        --bg-card: #1A242E;
        --bg-nav: rgba(10, 15, 20, 0.95);
        --bg-footer: #081A26;
        --text-primary: #FFFFFF;
        --text-secondary: #9BABB8;
        --text-muted: #6B7B8A;
        --border-color: #243038;
        --card-shadow: rgba(0, 0, 0, 0.3);
    }
}

/* ===========================================
   Base Styles
   =========================================== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 400;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===========================================
   Navigation
   =========================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-nav);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 16px 0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

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

.nav-logo {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo-icon {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border: 2px solid var(--accent);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-cta {
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.nav-cta:hover {
    background: var(--secondary);
    transform: translateY(-1px);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ===========================================
   Theme Toggle
   =========================================== */
.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: var(--text-secondary);
}

.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.theme-toggle:hover svg {
    transform: rotate(15deg);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    display: none;
}

:root:not([data-theme="dark"]) .theme-toggle .icon-moon {
    display: block;
}

:root:not([data-theme="dark"]) .theme-toggle .icon-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: block;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: none;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .icon-sun {
        display: block;
    }
    :root:not([data-theme="light"]) .theme-toggle .icon-moon {
        display: none;
    }
}

/* ===========================================
   Footer
   =========================================== */
.footer {
    padding: 64px 24px 48px;
    background: var(--bg-footer);
    text-align: center;
}

.footer-company {
    margin-bottom: 32px;
}

.footer-brand {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
    margin-bottom: 4px;
}

.footer-location {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8125rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
}

/* ===========================================
   Cookie Banner
   =========================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-footer);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    z-index: 100;
}

.cookie-banner a {
    color: var(--accent);
}

.cookie-banner button {
    background: var(--accent);
    color: #081A26;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

/* ===========================================
   Container
   =========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===========================================
   Responsive - Mobile
   =========================================== */
@media (max-width: 600px) {
    .nav-actions {
        gap: 8px;
    }

    .nav-cta {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .footer-links {
        gap: 16px;
    }
}
