﻿/* Modern Navbar */
.modern-navbar {
    background: linear-gradient(135deg, #434343 0%, #000000 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
}

/* Brand/Logo */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 12px 0;
    transition: opacity 0.3s ease;
}

    .navbar-brand:hover {
        opacity: 0.8;
    }

.brand-icon {
    font-size: 1.5rem;
}

.brand-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #ff9900 0%, #ff6600 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile Toggle */
.navbar-toggler {
    border: 2px solid #ff9900;
    background: transparent;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none; /* Hidden by default on large screens */
}

    .navbar-toggler:hover {
        background: rgba(255, 153, 0, 0.1);
    }

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ff9900' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
}

/* Nav Links Container */
.navbar-collapse {
    flex-grow: 1;
    display: flex !important; /* Always visible on large screens */
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
    margin-left: auto;
    flex-direction: row; /* Horizontal by default */
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

    .nav-link:hover {
        background: rgba(255, 153, 0, 0.2);
        color: #ff9900;
    }

    .nav-link.active {
        background: linear-gradient(135deg, #ff9900 0%, #ff6600 100%);
        color: white;
    }

.nav-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.nav-text {
    line-height: 1;
}

/* Friend Request Badge */
.badge-notify {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f44336 0%, #c62828 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    margin-left: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Dropdown Menu */
.nav-item.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

    .dropdown-toggle::after {
        content: ' ▼';
        font-size: 0.7rem;
        margin-left: 3px;
    }

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #2a2a2a;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    padding: 8px 0;
    margin-top: 0;
    display: none;
    z-index: 1001;
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

    .dropdown-item:hover {
        background: rgba(255, 153, 0, 0.2);
        color: #ff9900;
    }

.dropdown-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 140px);
    padding: 0;
}

/* Modern Footer */
.modern-footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 3px solid #ff9900;
    padding: 20px 0;
    margin-top: 30px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-logo {
    height: 40px;
    object-fit: contain;
}

.footer-text {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 0.9rem;
}

.footer-divider {
    color: #ccc;
}

.footer-link {
    color: #ff9900;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

    .footer-link:hover {
        color: #ff6600;
        text-decoration: underline;
    }

/* Responsive Design */
@media (max-width: 991px) {
    /* Show hamburger menu on smaller screens */
    .navbar-toggler {
        display: block;
    }

    /* Hide menu by default, show when toggled */
    .navbar-collapse {
        display: none !important;
        background: #2a2a2a;
        padding: 10px;
        margin-top: 10px;
        border-radius: 8px;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
    }

    /* Show when Bootstrap adds the 'show' class */
    .navbar-collapse.show {
        display: flex !important;
    }

    .navbar-nav {
        flex-direction: column;
        gap: 5px;
        width: 100%;
    }

    .nav-link {
        justify-content: flex-start;
        padding: 10px 15px;
        width: 100%;
    }

    .badge-notify {
        position: relative;
        top: 0;
        right: 0;
        margin-left: auto;
    }

    /* Dropdown menu adjustments for mobile */
    .dropdown-menu {
        position: static;
        display: none;
        background: #1a1a1a;
        margin-left: 20px;
    }

    .nav-item.dropdown:hover .dropdown-menu {
        display: none; /* Disable hover on mobile */
    }

    /* Click to toggle dropdown on mobile */
    .nav-item.dropdown.show .dropdown-menu {
        display: block;
    }
}

@media (max-width: 768px) {
    .brand-text {
        font-size: 1.1rem;
    }

    .brand-icon {
        font-size: 1.3rem;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-text {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .navbar-container {
        padding: 0 10px;
    }

    .nav-text {
        font-size: 0.85rem;
    }

    .footer-text {
        flex-direction: column;
        gap: 5px;
    }

    .footer-divider {
        display: none;
    }
}
