/* Navbar Styles */
:root {
    --nav-bg: rgba(35, 50, 65, 1);
    --nav-text: #e0e0e0;
    --nav-text-light: #ffffff;
    --nav-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    --nav-trans-basic: .3s ease;
    --nav-trans-med: .5s ease;
    --nav-trans-slow: 1s ease;
}

/* Main navbar */
nav {
    background-color: var(--nav-bg);
    box-shadow: var(--nav-shadow);
    height: 80px;
    position: relative;
    width: 100%;
    z-index: 150;
}

.nav-content {
    align-items: center;
    display: flex;
    flex-direction: row;
    height: 80px;
    justify-content: center;
    width: 100%;
}

.dropdown-container {
    height: 50px;
    text-decoration: none;
}

.nav-button {
    cursor: pointer;
    display: flex;
    height: 50px;
    justify-content: center;
    align-items: center;
    margin: 0 10px;
    min-width: 140px;
    position: relative;
    transition: transform var(--nav-trans-basic);
}

.nav-button:hover {
    transform: scale(1.02);
}

/* Background layer styling */
.nav-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    filter: grayscale(100%) brightness(0.7) !important;
    z-index: 1;
    pointer-events: none;
}

/* Content layer styling */
.nav-content-layer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.nav-button svg {
    width: 1.2em;
    height: 1.2em;
    margin-right: 0.5em;
    fill: var(--nav-text);
}

.nav-button span {
    font-size: 18px;
    font-weight: 800;
    color: var(--nav-text);
    font-family: 'Architects Daughter', cursive;
    text-transform: uppercase;
}

/* Hover effects */
.nav-button:hover svg {
    fill: var(--nav-text-light) !important;
}

.nav-button:hover span {
    color: var(--nav-text-light) !important;
}

/* Active state */
.nav-button.active-nav svg {
    fill: var(--nav-text-light) !important;
}

.nav-button.active-nav span {
    color: var(--nav-text-light) !important;
}

.nav-button.active-nav {
    filter: grayscale(100%) brightness(0.8);
}

/* Discord button */
.nav-search {
    position: absolute;
    right: 15px;
    top: 20px;
}

.square-btn {
    display: flex;
    flex-direction: column;
    height: 40px;
    width: 40px;
    justify-content: center;
    align-items: center;
    margin: 0 5px;
    text-decoration: none;
    position: relative;
    cursor: pointer;
    transition: transform var(--nav-trans-basic);
}

.square-btn:hover {
    transform: scale(1.05);
}

.square-btn .nav-bg-layer {
    background-size: contain;
}

.square-btn i {
    color: var(--nav-text);
    font-size: 1.5em;
    position: relative;
    z-index: 2;
}

.square-btn:hover i {
    color: var(--nav-text-light) !important;
}

/* Decorative strip */
.nav-strip {
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 8px;
    background-repeat: repeat-x;
    background-size: auto 100%;
    filter: grayscale(100%) brightness(0.6) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

/* Remove link styles */
nav a {
    text-decoration: none !important;
    outline: none !important;
}

nav a:hover,
nav a:focus,
nav a:active {
    text-decoration: none !important;
    outline: none !important;
}

/* Logo styling */
#logo {
    display: block;
    margin: 50px auto 40px auto;
    max-width: 250px;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.8)) !important;
    transition: transform 0.3s ease;
}

#logo:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.8)) !important;
}

/* FORCE filters to stay permanent */
div[style*="filter"] {
    filter: grayscale(100%) brightness(0.7) !important;
}

div[style*="brightness(0.6)"] {
    filter: grayscale(100%) brightness(0.6) !important;
}

/* Mobile responsive */
@media (max-width: 900px) {
    .nav-content {
        display: none;
    }
    
    nav {
        height: 60px;
    }
}