/* ===========================================
   DR GYM - Professional Navbar Styles (Gold Theme)
   =========================================== */

/* Professional Navbar */
.pro-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.95) 0%, rgba(25, 25, 25, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(188, 148, 75, 0.2);
    transition: all 0.3s ease;
}

.pro-navbar.scrolled {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.02);
}

.nav-logo img {
    border-radius: 0;
    box-shadow: none;
    width: auto;
    height: 50px;
}

.nav-logo span {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #bc944b, #e8c872);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

/* Desktop Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-link:hover {
    color: #bc944b;
    background: rgba(188, 148, 75, 0.1);
}

.nav-link i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.98) 0%, rgba(30, 30, 30, 0.98) 100%);
    border: 1px solid rgba(188, 148, 75, 0.2);
    border-radius: 12px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    list-style: none;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown:hover .nav-link i {
    transform: rotate(180deg);
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    color: #ccc;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.dropdown-menu li a i {
    color: #bc944b;
    width: 20px;
    text-align: center;
}

.dropdown-menu li a:hover {
    background: rgba(188, 148, 75, 0.15);
    color: #fff;
    padding-left: 1.3rem;
}

/* Right Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Language Button */
.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(188, 148, 75, 0.1);
    border: 1px solid rgba(188, 148, 75, 0.3);
    border-radius: 25px;
    color: #bc944b;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(188, 148, 75, 0.2);
    border-color: #bc944b;
    transform: translateY(-2px);
}

.lang-icon {
    width: 24px;
    height: 24px;
    background: #bc944b;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.lang-text {
    font-family: 'Cairo', sans-serif;
}

/* Join Button */
.join-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, #bc944b 0%, #d4a855 50%, #bc944b 100%);
    background-size: 200% auto;
    color: #000;
    text-decoration: none;
    font-weight: 700;
    border-radius: 25px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(188, 148, 75, 0.4);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.join-btn:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(188, 148, 75, 0.5);
}

.join-btn i {
    transition: transform 0.3s ease;
}

.join-btn:hover i {
    transform: translateX(4px);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    background: rgba(188, 148, 75, 0.1);
    border: 1px solid rgba(188, 148, 75, 0.3);
    border-radius: 8px;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
}

.mobile-toggle:hover {
    background: rgba(188, 148, 75, 0.2);
}

.mobile-toggle span {
    width: 22px;
    height: 2px;
    background: #bc944b;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Sidebar Menu */
.sidebar-menu {
    position: fixed;
    top: 0;
    right: -340px;
    width: 320px;
    max-width: 90vw;
    height: 100vh;
    background: linear-gradient(180deg, #0a0a0a 0%, #0f0f0f 100%);
    z-index: 10001;
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.5);
    border-left: 1px solid rgba(188, 148, 75, 0.2);
    display: flex;
    flex-direction: column;
}

.sidebar-menu.active {
    right: 0;
}

/* Sidebar Close Button */
.sidebar-close {
    position: absolute;
    top: 22px;
    right: 18px;
    width: 36px;
    height: 36px;
    background: rgba(188, 148, 75, 0.1);
    border: 1px solid rgba(188, 148, 75, 0.3);
    border-radius: 50%;
    color: #bc944b;
    font-size: 1.3rem;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.sidebar-close:hover {
    background: #bc944b;
    color: #000;
    transform: rotate(90deg);
}

/* Sidebar Header - Side by Side */
.sidebar-header {
    padding: 2rem 1.5rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.sidebar-logo {
    max-height: 70px;
    width: auto;
    flex-shrink: 0;
}

.sidebar-header-text {
    flex: 1;
}

.sidebar-title {
    font-size: 1.9rem;
    font-weight: 800;
    background: linear-gradient(135deg, #bc944b, #e8c872, #bc944b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 0.2rem;
    letter-spacing: 2px;
}

.sidebar-tagline {
    color: #888;
    font-size: 0.85rem;
    margin: 0;
    font-style: italic;
}

/* Sidebar Divider */
.sidebar-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(188, 148, 75, 0.25), transparent);
    margin: 0.6rem 1.5rem;
}

/* Sidebar Navigation */
.sidebar-nav {
    padding: 0.8rem 1rem;
    flex: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.2rem;
    color: #ccc;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s ease;
    margin-bottom: 0.4rem;
}

.sidebar-link i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
    color: #bc944b;
}

.sidebar-link:hover {
    background: rgba(188, 148, 75, 0.12);
    color: #bc944b;
    padding-left: 1.4rem;
}

.sidebar-link .sidebar-arrow {
    margin-left: auto;
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    color: #888;
}

/* Sidebar Dropdown */
.sidebar-dropdown-toggle {
    cursor: pointer;
}

.sidebar-dropdown.active .sidebar-arrow {
    transform: rotate(180deg);
}

.sidebar-dropdown-menu {
    display: none;
    padding: 0.6rem 0 0.6rem 1.2rem;
    margin-left: 1rem;
    border-left: 2px solid rgba(188, 148, 75, 0.25);
}

.sidebar-dropdown.active .sidebar-dropdown-menu {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.sidebar-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1rem;
    color: #999;
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    margin-bottom: 0.2rem;
}

.sidebar-dropdown-menu a i {
    font-size: 0.95rem;
    width: 20px;
    text-align: center;
    color: #bc944b;
}

.sidebar-dropdown-menu a:hover {
    background: rgba(188, 148, 75, 0.1);
    color: #fff;
    padding-left: 1.2rem;
}

/* Sidebar Actions */
.sidebar-actions {
    padding: 1.2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.sidebar-lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem;
    background: rgba(188, 148, 75, 0.08);
    border: 1px solid rgba(188, 148, 75, 0.25);
    border-radius: 12px;
    color: #bc944b;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.sidebar-lang-btn:hover {
    background: rgba(188, 148, 75, 0.2);
    border-color: #bc944b;
}

.sidebar-lang-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #bc944b, #d4a855);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.sidebar-join-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem;
    background: linear-gradient(135deg, #bc944b 0%, #d4a855 50%, #bc944b 100%);
    background-size: 200% auto;
    color: #000;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(188, 148, 75, 0.4);
    transition: all 0.3s ease;
}

.sidebar-join-btn:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(188, 148, 75, 0.5);
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1.2rem 1.5rem;
    text-align: center;
    border-top: 1px solid rgba(188, 148, 75, 0.1);
    margin-top: 1rem;
}

.sidebar-copyright {
    color: #555;
    font-size: 0.75rem;
    margin: 0;
}

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

    .mobile-toggle {
        display: flex;
    }

    .nav-container {
        padding: 0.8rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-logo span {
        font-size: 1.5rem;
    }

    .nav-logo img {
        width: 60px;
        height: 55px;
    }

    .nav-container {
        padding: 0.6rem 1rem;
    }

    .sidebar-menu {
        width: 300px;
    }

    .sidebar-logo {
        max-width: 70px;
    }

    .sidebar-title {
        font-size: 1.9rem;
    }

    .sidebar-header {
        padding: 1.8rem 1.5rem 1.2rem;
        gap: 1.2rem;
    }

    .sidebar-link {
        padding: 1rem;
        font-size: 1rem;
    }
}

/* ===========================================
   RTL Support for Arabic
   =========================================== */
[dir="rtl"] .sidebar-menu {
    right: auto;
    left: -340px;
    border-left: none;
    border-right: 1px solid rgba(188, 148, 75, 0.2);
}

[dir="rtl"] .sidebar-menu.active {
    left: 0;
}

[dir="rtl"] .sidebar-close {
    right: auto;
    left: 18px;
}

[dir="rtl"] .sidebar-link .sidebar-arrow {
    margin-left: 0;
    margin-right: auto;
}

[dir="rtl"] .sidebar-dropdown-menu {
    margin-left: 0;
    margin-right: 1rem;
    border-left: none;
    border-right: 2px solid rgba(188, 148, 75, 0.25);
}

[dir="rtl"] .join-btn:hover i {
    transform: translateX(-4px);
}

[dir="rtl"] .dropdown-menu {
    left: auto;
    right: 0;
}
