/* Modern Minimal Layout Components CSS */
/* Use these styles for the redesigned header and footer components */

/* Theme Variable Fallbacks */
:root {
    /* Fallback colors if CSS variables are not loaded */
    --primary-50: #f0f9ff;
    --primary-100: #e0f2fe;
    --primary-200: #bae6fd;
    --primary-300: #7dd3fc;
    --primary-400: #38bdf8;
    --primary-500: #0ea5e9;
    --primary-600: #0284c7;
    --primary-700: #0369a1;
    --primary-800: #075985;
    --primary-900: #0c4a6e;

    --secondary-50: #fefce8;
    --secondary-100: #fef3c7;
    --secondary-200: #fde68a;
    --secondary-300: #fcd34d;
    --secondary-400: #fbbf24;
    --secondary-500: #f59e0b;
    --secondary-600: #d97706;
    --secondary-700: #b45309;
    --secondary-800: #92400e;
    --secondary-900: #78350f;
}

/* ============================================
   MODERN HEADER STYLES
   ============================================ */

.modern-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 2rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.2s ease;
}

.mobile-menu-btn:hover {
    color: var(--primary-500);
}

.menu-icon {
    width: 24px;
    height: 24px;
}

/* Logo */
.header-logo {
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: 2rem;
}

.nav-item {
    position: relative;
    padding: 0.75rem 0;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.nav-item:hover,
.nav-item.nav-active {
    color: var(--primary-600);
}

.nav-item.nav-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--secondary-500) 100%);
    border-radius: 1px;
}

/* Search Bar */
.header-search {
    flex: 1;
    max-width: 400px;
    margin: 0 2rem;
}

.search-input {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-input:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.search-input:focus {
    outline: none;
    background: white;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px var(--primary-100);
}

.search-placeholder {
    flex: 1;
    text-align: left;
}

.search-icon {
    width: 18px;
    height: 18px;
    color: #94a3b8;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.desktop-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-actions {
    display: none;
    gap: 0.5rem;
}

/* Contact Info */
.contact-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-right: 1rem;
    border-right: 1px solid #e5e7eb;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.contact-icon {
    width: 14px;
    height: 14px;
}

/* Cart Button */
.cart-btn {
    position: relative;
    background: none;
    border: none;
    padding: 0.75rem;
    color: #6b7280;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.cart-btn:hover {
    color: var(--primary-600);
    background: var(--primary-50);
}

.cart-icon {
    width: 20px;
    height: 20px;
}

.cart-badge {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    border-radius: 0.75rem;
    min-width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Action Buttons */
.action-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    color: #6b7280;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.action-btn:hover {
    color: var(--primary-600);
    background: var(--primary-50);
}

.action-icon {
    width: 20px;
    height: 20px;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

.btn-login {
    background: var(--primary-500);
    color: white;
    border-color: var(--primary-500);
}

.btn-login:hover {
    background: var(--primary-600);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--primary-200);
}

.btn-signup {
    background: transparent;
    color: var(--primary-500);
    border-color: var(--primary-500);
}

.btn-signup:hover {
    background: var(--primary-500);
    color: white;
}

.btn-account {
    background: #f8fafc;
    color: #374151;
    border-color: #e2e8f0;
}

.btn-account:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.btn-logout {
    background: none;
    color: #6b7280;
    border: none;
    padding: 0.5rem;
}

.btn-logout:hover {
    color: #ef4444;
}

/* ============================================
   MODERN FOOTER STYLES
   ============================================ */

.modern-footer {
    background: #00628E;
    /* Professional Dark Blue matching screenshot */
    color: #f1f5f9;
    border-top: none;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1rem 1rem;
}

/* Main Footer Content */
.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 320px;
}

.brand-logo-container {
    margin-bottom: 2rem;
    background: #ffffff;
    padding: 1.25rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.footer-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
    /* Removed filter to show original brand colors */
}

.brand-description-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e2e8f0;
    margin-bottom: 2rem;
    font-weight: 500;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: #ffffff;
    color: #00628E;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.social-icon {
    width: 20px;
    height: 20px;
}

/* Footer Sections */
.footer-section {
    min-width: 0;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2rem;
    line-height: 1.2;
    letter-spacing: 0.025em;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    line-height: 1.4;
    font-weight: 500;
}

.footer-link:hover {
    color: #ffffff;
    padding-left: 0.5rem;
    opacity: 1;
}

/* Contact List */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.contact-icon {
    width: 16px;
    height: 16px;
    color: #ffffff;
    margin-top: 0.125rem;
    flex-shrink: 0;
    opacity: 0.9;
}

.contact-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.contact-link:hover {
    color: #ffffff;
}

.contact-text {
    color: #cbd5e1;
    font-size: 0.9375rem;
    line-height: 1.5;
}


/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.copyright {
    font-size: 0.875rem;
    color: #94a3b8;
    text-align: center;
    margin: 0;
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.legal-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.legal-link:hover {
    color: #ffffff;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #cbd5e1;
}

.trust-icon {
    width: 16px;
    height: 16px;
}

.trust-icon.secure {
    color: #10b981;
}

.trust-icon.ssl {
    color: #3b82f6;
}

.trust-icon.trusted {
    color: #f59e0b;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Mobile and Tablet Adjustments */
@media (max-width: 1024px) {
    .header-content {
        gap: 1rem;
    }

    .desktop-nav {
        display: none;
    }

    .header-search {
        display: none;
    }

    .desktop-actions {
        display: none;
    }

    .mobile-actions {
        display: flex;
    }

    .contact-info {
        display: none;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .md-hidden {
        display: block;
    }

    .header-content {
        height: 64px;
        padding: 0 0.5rem;
    }

    .header-logo {
        flex: 1;
        display: flex;
        justify-content: center;
    }

    .logo-img {
        height: 36px;
    }

    .mobile-badge {
        font-size: 0.625rem;
        min-width: 1rem;
        height: 1rem;
        padding: 0.125rem 0.25rem;
    }

    /* Footer Mobile */
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand {
        max-width: 100%;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom-content {
        text-align: center;
    }

    .legal-links {
        flex-direction: column;
        gap: 1rem;
    }

    .trust-badges {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 2rem 0.5rem 1rem;
    }

}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth scrolling for better UX */
html {
    scroll-behavior: smooth;
}

/* Body padding to account for fixed header */
body {
    padding-top: 80px;
}

@media (max-width: 768px) {
    body {
        padding-top: 64px;
    }
}