/*
 * base.css - Core styles for base.html template
 *
 * Contains:
 * - CSS Variables (design tokens)
 * - Global reset
 * - Page layout (.page-wrapper, .content-container)
 * - Page header and breadcrumbs
 * - Body styling and background
 */

/* Temporarily hidden - buyer page navigation disabled */
.header-menu-nav-link[href="/buyer"],
.header-menu-mobile-link[href="/buyer"] {
    display: none !important;
}

:root {
    --primary-bg: #0a0f1c;
    --secondary-bg: #1a2332;
    --accent-orange: #ff6b35;
    --accent-blue: #3b82f6;
    --accent-steel: #708090;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --input-bg: #1e2a3a;
    --input-border: #2d3748;
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --steel-gradient: linear-gradient(135deg, #708090 0%, #4a5568 50%, #2d3748 100%);
    --fire-gradient: linear-gradient(135deg, #ff6b35 0%, #f56500 50%, #ea580c 100%);
}

html {
    background: var(--primary-bg);
    overscroll-behavior: none;
}

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

/* Page Wrapper - centered layout (1200px max-width) */
.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
}

/* Full-width exception for sidebar layouts */
.page-wrapper-full {
    max-width: 100%;
    padding: 0;
}

/* Standard content container - centered with consistent padding */
.content-container {
    max-width: 100%;
    margin: 0 auto;
}

/* Page Header - unified across all pages */
.page-header {
    /* padding-top: 24px; */
    margin-bottom: 2rem;
}

.page-header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

/* Breadcrumbs Navigation */
.breadcrumbs {
    font-size: 14px;
    padding-bottom: 16px;
}

.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: var(--accent-orange);
}

.breadcrumbs .separator {
    color: var(--text-muted);
    margin: 0 8px;
}

.breadcrumbs .current {
    color: var(--text-primary);
}

/* Mobile responsive padding */
@media (max-width: 768px) {
    .page-wrapper {
        padding: 0 1rem;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0a0f1c 0%, #1a2332 30%, #2d3748 70%, #4a5568 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(112, 128, 144, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 60% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        linear-gradient(45deg, transparent 40%, rgba(255, 107, 53, 0.03) 50%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(255, 107, 53, 0.02) 2px, rgba(255, 107, 53, 0.02) 4px),
        repeating-linear-gradient(-45deg, transparent, transparent 2px, rgba(112, 128, 144, 0.02) 2px, rgba(112, 128, 144, 0.02) 4px);
    pointer-events: none;
    z-index: -1;
    opacity: 0.3;
}

/* CTA Button - shared component */
.cta-button {
    background: var(--fire-gradient);
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.6);
}

/* Container - centers content with max-width */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ======================
   Footer Component
   ====================== */

.footer {
    background: var(--primary-bg);
    border-top: 1px solid var(--input-border);
    padding: 2rem 0 2rem;
    margin-top: 24px;
}

.footer-content {
    color: var(--text-secondary);
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--text-muted);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--accent-blue);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--input-border);
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

.legal-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.legal-links a:hover {
    color: var(--accent-blue);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: white;
    transform: translateY(-2px);
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-legal {
        flex-direction: column;
        gap: 1rem;
    }
}
