/* ARCTIC BULK SUPPLY - UNIVERSAL BEAUTIFUL HEADER */
/* Apply the gorgeous homepage header styling to ALL pages */

/* Enhanced Header with Beautiful Background */
header {
    background: 
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)),
        url('images/homepage-hero-bg.jpg') center center/cover no-repeat;
    backdrop-filter: blur(2px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
    position: relative;
    z-index: 100;
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Animated background overlay */
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='m36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    opacity: 0.3;
    animation: headerFloat 25s ease-in-out infinite;
    pointer-events: none;
}

@keyframes headerFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-5px) rotate(1deg); }
    66% { transform: translateY(-3px) rotate(-1deg); }
}

/* Navigation Container */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 0.5rem 0;
}

/* Enhanced Logo Styling */
.logo {
    font-size: 1.4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #00d4ff, #f7931a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s ease;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
    position: relative;
}

.logo:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.5));
}

/* Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-links a:hover {
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
    transform: translateY(-1px);
}

.nav-links a.active {
    background: rgba(0, 212, 255, 0.15);
    color: #00d4ff;
    border-color: rgba(0, 212, 255, 0.4);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(135deg, #00d4ff, #f7931a);
    border-radius: 1px;
}

/* Cart Link Special Styling */
.cart-link {
    background: linear-gradient(135deg, #f7931a, #ff6b35) !important;
    color: white !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(247, 147, 26, 0.3) !important;
}

.cart-link:hover {
    background: linear-gradient(135deg, #ff6b35, #f7931a) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(247, 147, 26, 0.4) !important;
}

.cart-count {
    background: rgba(255, 255, 255, 0.9);
    color: #f7931a;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 800;
    margin-left: 0.5rem;
}

/* Page Title Section for Non-Homepage */
.page-header {
    background: 
        linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)),
        url('images/homepage-hero-bg.jpg') center center/cover no-repeat;
    padding: 3rem 0 2rem;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.01'%3E%3Cpath d='m36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    opacity: 0.2;
    animation: headerFloat 30s ease-in-out infinite reverse;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    margin: 0;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    position: relative;
    z-index: 2;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #ccc;
    margin: 1rem 0 0;
    position: relative;
    z-index: 2;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    header {
        padding: 0.8rem 0;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .nav-links a {
        font-size: 0.85rem;
        padding: 0.4rem 0.7rem;
    }
    
    .page-header {
        padding: 2rem 0 1.5rem;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .nav-links {
        gap: 0.5rem;
    }
    
    .nav-links a {
        font-size: 0.8rem;
        padding: 0.3rem 0.5rem;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .page-title {
        font-size: 1.6rem;
    }
}

/* Tablet Enhancements */
@media (min-width: 768px) and (max-width: 1024px) {
    .logo {
        font-size: 1.5rem;
    }
    
    .nav-links a {
        font-size: 0.9rem;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
}