/**
 * Theme: Prestige Hub
 * Architecture: Header & Navigation
 */

.prestige-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: var(--ph-bg-floating);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

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

/* Brand Logo */
.brand-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    line-height: 1;
}

.logo-text {
    font-family: var(--ph-font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--ph-accent-gold);
    letter-spacing: 0.15em;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.logo-sub {
    font-family: var(--ph-font-sans);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--ph-text-muted);
    letter-spacing: 0.4em;
    margin-left: 2px;
}

/* Navigation (Angular, Sharp) */
.main-nav {
    display: flex;
    gap: var(--ph-spacing-lg);
}

.nav-link {
    font-family: var(--ph-font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ph-text-muted);
    letter-spacing: 0.1em;
    padding: var(--ph-spacing-sm) 0;
    position: relative;
    transition: color var(--ph-transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--ph-accent-gold);
    transition: width var(--ph-transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: var(--ph-accent-gold);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* User Hub (Prestige Focus) */
.user-hub {
    display: flex;
    align-items: center;
    gap: var(--ph-spacing-lg);
}

.rank-badge {
    display: flex;
    align-items: center;
    gap: var(--ph-spacing-sm);
    background: linear-gradient(to right, rgba(212, 175, 55, 0.1), transparent);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 4px 12px;
    border-radius: var(--ph-radius-sm);
    font-family: var(--ph-font-display);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ph-accent-gold);
    letter-spacing: 0.05em;
}

.rank-badge i {
    font-size: 1rem;
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

.profile-widget {
    cursor: pointer;
}

.avatar-frame {
    width: 44px;
    height: 44px;
    padding: 2px;
    background: var(--ph-bg-surface);
    position: relative;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); /* Hexagon */
}

.avatar-frame.gold-frame {
    background: linear-gradient(135deg, #b8860b, #ffd700, #b8860b);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.avatar-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* Mobile Bottom Nav */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background: var(--ph-bg-floating);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--ph-text-muted);
    font-family: var(--ph-font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: color var(--ph-transition-fast);
}

.mobile-bottom-nav .nav-item.active {
    color: var(--ph-accent-gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.mobile-bottom-nav .nav-item i {
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .main-nav { display: none; }
}

@media (max-width: 768px) {
    .rank-badge { display: none; }
    .mobile-bottom-nav { display: flex; }
    .prestige-hub-main { padding-bottom: 80px; }
}