@import url('theme.css');

/* Sticky Cosmic Navigation Header */
.navbar-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background: rgba(10, 5, 24, 0.9);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border-bottom: 2px solid var(--neon-purple);
    box-shadow: 0 4px 20px rgba(176, 38, 255, 0.25);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    height: var(--navbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    border-radius: 16px 8px 16px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-cyan);
    animation: floatSpace 4s infinite ease-in-out;
}

.brand-icon svg {
    width: 28px;
    height: 28px;
    fill: #0a0518;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00f0ff 0%, #39ff14 50%, #ff007f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.02em;
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 12px;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid transparent;
}

.nav-item a:hover, .nav-item a.active {
    color: #ffffff;
    background: rgba(176, 38, 255, 0.2);
    border-color: var(--neon-purple);
    transform: rotate(-1deg) scale(1.05);
    box-shadow: 0 0 10px rgba(176, 38, 255, 0.4);
}

.cart-pill {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px 6px 12px 6px;
    background: rgba(0, 240, 255, 0.15);
    border: 2px solid var(--neon-cyan);
    transition: all 0.25s ease;
    box-shadow: var(--glow-cyan);
}

.cart-pill:hover {
    background: rgba(0, 240, 255, 0.35);
    transform: scale(1.1) rotate(4deg);
}

.cart-pill svg {
    width: 22px;
    height: 22px;
    fill: var(--neon-cyan);
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--danger-gradient);
    color: #ffffff;
    font-family: var(--font-pixel);
    font-size: 0.75rem;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.8);
}

.nav-user-controls {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-profile-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(176, 38, 255, 0.25);
    border-radius: var(--radius-pill);
    box-shadow: inset 0 0 10px rgba(176, 38, 255, 0.1);
}

.badge-admin-overlay {
    position: absolute;
    top: -10px;
    right: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 2px 7px;
    border-radius: 8px;
    line-height: 1;
    z-index: 2;
    pointer-events: none;
    white-space: nowrap;
}

.user-welcome {
    font-size: 0.925rem;
    color: var(--text-muted);
}

.user-name {
    color: var(--neon-cyan);
    font-weight: 700;
}

/* Site Footer */
.site-footer {
    width: 100%;
    background: rgba(10, 5, 24, 0.95);
    border-top: 2px solid var(--neon-purple);
    padding: 40px 0 20px 0;
    margin-top: 60px;
    box-shadow: 0 -10px 30px rgba(176, 38, 255, 0.15);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 16px;
    color: var(--neon-cyan);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--neon-green);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px dashed rgba(176, 38, 255, 0.2);
    color: var(--text-muted);
    font-family: var(--font-pixel);
    font-size: 0.75rem;
}

.navbar {
    display: none;
}