/*
    HabboRP v3 - Glassmorphism Interface v2
    Floating Header & Footer System
*/

:root {
    --glass-bg: rgba(20, 20, 25, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(25px);
    --accent-blue: #25a5e1;
}

/* Unified Tactical Background */
html, body {
    background-color: #16161a !important;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

body {
    padding-top: 0; /* Handled by content wrapper */
    transition: background-color 0.5s ease;
}

    /* Global alignment with Tokyo Vibe / Dossier */
    #habbo-rp-content {
        background: transparent !important;
        min-height: auto; 
    }

body {
    padding-top: 0; /* Handled by content wrapper */
    transition: background-color 0.5s ease;
}

/* Natural Auto-Layout Wrapper */
.content-v2-wrapper {
    width: 100%;
    min-height: auto;
    padding-top: 175px; /* Symmetrical breathing room (55px gap below navbar) */
    padding-bottom: 20px;
    display: block;
}

/* Floating Navbar Pill */
.navbar-v2-pill {
    position: fixed;
    top: 55px; /* Increased top spacing for centralized look */
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1300px;
    height: 65px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px; /* Synchronized with dossier cards */
    z-index: 2000;
    display: flex;
    align-items: center;
    padding: 0 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Overlapping Logo */
.nav-v2-logo-wrap {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    margin-right: 55px; /* Added breathing room from overlapping logo */
}

.nav-v2-logo {
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    height: 110px; /* Overlaps top and bottom */
    width: auto;
    z-index: 2005;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.8));
    transition: transform 0.3s ease;
}

.nav-v2-logo:hover {
    transform: translateY(-52%) scale(1.05);
}

/* Navbar Content Grouping */
.nav-v2-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.nav-v2-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex: 2;
}

.nav-v2-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    flex: 1;
}

/* Status Indicators */
.nav-v2-status {
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 11px;
    color: #888;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-v2-status b {
    color: #2ecc71;
}

.nav-v2-notifications {
    color: #555;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-v2-notifications:hover {
    color: var(--accent-blue);
}

/* Navigation Links */
.nav-v2-link {
    color: #aaa;
    text-decoration: none;
    font-size: 13px; /* Slightly larger for readability */
    font-weight: 500;
    text-transform: none; /* Removed all-caps */
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    line-height: 1; /* Standardized for vertical alignment */
}

.nav-v2-link:hover, .nav-v2-link.active {
    color: #fff;
}

.nav-v2-link.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent-blue);
    border-radius: 10px;
    box-shadow: 0 0 10px var(--accent-blue);
}

/* Dropdown Sub-menu */
.nav-v2-dropdown {
    position: relative;
    display: flex;
    align-items: center; /* Ensures vertical alignment with siblings */
    height: 100%;
}

.nav-v2-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    min-width: 160px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 2010;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.nav-v2-dropdown:hover .nav-v2-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(8px);
}

.nav-v2-dropdown-item {
    display: block;
    padding: 8px 20px;
    color: #aaa;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s ease;
}

.nav-v2-dropdown-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* Floating Footer Pill (Synchronized with Navbar size) */
.footer-v2-pill {
    position: relative; 
    margin: 40px auto 60px auto; 
    width: 95%;
    max-width: 1300px;
    height: 65px; 
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px; 
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px; 
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    overflow: visible;
}

.footer-v2-pill::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/static/img/dragon2.png') no-repeat center 45% / cover;
    opacity: 0.038; /* 3.8% as requested */
    border-radius: 24px;
    pointer-events: none;
    z-index: -1; /* Sits behind the content inside the pill */
}

.footer-v2-left, .footer-v2-right {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 1; /* Sits above the watermark */
}

.footer-org-logo {
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    height: 85px; /* Reduced as requested */
    width: auto;
    z-index: 1005;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.8));
}

.footer-label {
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
}

.footer-credit {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 11px;
    color: #aaa;
}

.footer-ahjin-logo {
    height: 85px; /* Slightly reduced for a more balanced overlap */
    width: auto !important;
    max-height: none !important;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.8));
    transition: all 0.3s ease;
    opacity: 1;
    margin-top: -5px; /* Adjusted vertical lift */
}

.footer-ahjin-logo:hover {
    transform: scale(1.1);
}

.footer-ahjin-logo:hover {
    filter: grayscale(0) opacity(1);
}

/* Mobile Adjustments */
@media (max-width: 992px) {
    .nav-v2-center { display: none; }
    .navbar-v2-pill { width: 90%; justify-content: space-between; }
    .footer-v2-pill { width: 90%; min-width: auto; }
}

/* Enter Volt Button - Green Glassmorphism */
.nav-v2-enter-volt {
    background: rgba(46, 204, 113, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: 12px;
    padding: 8px 20px;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-v2-enter-volt:hover {
    background: rgba(46, 204, 113, 0.3);
    border-color: rgba(46, 204, 113, 0.6);
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.4);
    transform: translateY(-2px);
}

.nav-v2-enter-volt i {
    color: #2ecc71;
    text-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
}

