/* CopyrightChains Unified Theme - Light Professional Design */

:root {
    /* Primary Colors */
    --primary: #0674bb;
    --primary-hover: #055a99;
    --primary-light: #e6f2fa;

    /* Background Colors - Light Theme */
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-grey: #e9ecef;
    --bg-section: #f5f7fa;

    /* Text Colors */
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;
    --text-white: #ffffff;

    /* Border & Shadows */
    --border: #dee2e6;
    --border-light: #e9ecef;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
}

/* 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;
    color: var(--text-primary);
    background-color: var(--bg-white);
    line-height: 1.6;
}

/* Unified Header Styles */
.unified-header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.25rem;
}

.header-logo:hover {
    color: var(--primary);
}

.header-nav {
    display: flex;
    gap: var(--spacing-md);
    margin-left: auto;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

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

.nav-link.active {
    background-color: var(--primary-light);
    color: var(--primary);
}

/* Simple Footer Styles */
.unified-footer-simple {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff !important;
    border-top: 1px solid #dee2e6;
    padding: var(--spacing-lg) 0;
    text-align: center;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.unified-footer-simple .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.unified-footer-simple p {
    color: #6c757d;
    font-size: 0.95rem;
    margin: 0;
}

/* Hamburger Menu Styles */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
    position: relative;
    width: 40px;
    height: 40px;
    z-index: 1002;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
}

/* Mobile Navigation Panel */
.header-nav.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: var(--bg-white);
    flex-direction: column;
    padding: 80px var(--spacing-lg) var(--spacing-lg);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1001;
    gap: 0;
}

.header-nav.mobile-menu.active {
    right: 0;
}

.header-nav.mobile-menu .nav-link {
    display: block;
    width: 100%;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-light);
    border-radius: 0;
}

.header-nav.mobile-menu .nav-link:hover {
    background-color: var(--primary-light);
    padding-left: calc(var(--spacing-md) + 5px);
}

.header-nav.mobile-menu .nav-link.active {
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: var(--spacing-md);
    }

    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .header-nav:not(.mobile-menu) {
        display: none;
    }

    .header-nav.mobile-menu {
        display: flex;
    }

    .mobile-menu-overlay {
        display: block;
        pointer-events: none;
    }

    .mobile-menu-overlay.active {
        pointer-events: all;
    }

    /* Prevent body scroll when menu is open */
    body.mobile-menu-open {
        overflow: hidden;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Utility Classes */
.text-primary { color: var(--primary); }
.bg-light { background-color: var(--bg-light); }
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}