/* Navbar and Navigation Styles - assets/css/navbar.css */

/* Sidebar */
.sidebar {
    width: 220px;
    background: rgba(26, 35, 50, 0.9);
    backdrop-filter: blur(10px);
    border-right: 2px solid #ff6b35;
    padding: 15px 0;
    position: fixed;
    top: 48px; /* Announcement banner için yer */
    height: calc(100vh - 48px);
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 1000;
}

/* Scrollbar Styles */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 107, 53, 0.1);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 53, 0.5);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 53, 0.7);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px 20px;
    border-bottom: 1px solid rgba(255, 107, 53, 0.3);
}

.logo img {
    width: 90px;
    height: auto;
}

.nav-menu {
    padding: 15px 0;
}

.auth-section {
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
    margin-bottom: 10px;
    padding-bottom: 10px;
}

/* Sidebar auth section - gizle */
.sidebar .auth-section {
    display: none;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    margin: 3px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    color: #ff6b35;
    text-decoration: none;
}

.nav-item:hover {
    background: rgba(255, 107, 53, 0.1);
    transform: translateX(5px);
}

.nav-item.active {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
}

.nav-item img {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    filter: brightness(0) saturate(100%) invert(47%) sepia(76%) saturate(2459%) hue-rotate(10deg) brightness(103%) contrast(101%);
}

.nav-item.active img {
    filter: brightness(0) invert(1);
}

.nav-item span {
    font-size: 14px;
    font-weight: 500;
}

.nav-item .arrow {
    margin-left: auto;
    font-size: 12px;
}

/* Dropdown Styles */
.nav-dropdown {
    position: relative;
    margin: 3px 10px;
}

.nav-dropdown .nav-item {
    margin: 0;
}

.nav-dropdown .dropdown-toggle {
    cursor: pointer;
    position: relative;
}

.nav-dropdown .dropdown-arrow {
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.nav-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: static;
    background: transparent;
    border: none;
    border-radius: 0;
    backdrop-filter: none;
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 1001;
    margin: 0;
    padding: 0;
}

.nav-dropdown.open .dropdown-menu {
    max-height: 500px;
    padding: 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    margin: 3px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ff6b35;
    text-decoration: none;
    font-size: 14px;
    border: none;
    background: transparent;
    border-radius: 8px;
    position: relative;
}

.dropdown-item:hover {
    background: rgba(255, 107, 53, 0.1);
    color: #ff6b35;
    text-decoration: none;
    transform: translateX(5px);
}

.dropdown-item i {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    font-size: 12px;
    filter: brightness(0) saturate(100%) invert(47%) sepia(76%) saturate(2459%) hue-rotate(10deg) brightness(103%) contrast(101%);
}

.dropdown-item span {
    font-weight: 500;
    font-size: 14px;
}

.user-greeting {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    margin: 3px 10px 8px;
    color: #ff6b35;
    font-size: 12px;
}

.promotion-card {
    margin: 15px 10px;
    padding: 0;
    background: transparent;
    border: none;
    position: relative;
    overflow: hidden;
}

.promotion-card a {
    display: block;
    text-decoration: none;
}

.promotion-card img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promotion-card a:hover img {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.promotion-card::before {
    display: none;
}

.promotion-content {
    position: relative;
    z-index: 1;
}

.promotion-date {
    background: rgba(0, 0, 0, 0.3);
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    margin-bottom: 8px;
}

.promotion-title {
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 4px;
}

.promotion-text {
    font-size: 10px;
    opacity: 0.9;
}

/* Desktop Auth Section */
.desktop-auth-section {
    position: fixed; /* absolute yerine fixed */
    top: 58px; /* Announcement banner + 10px */
    right: 20px;
    z-index: 10000; /* Sidebar'dan (1000) ve announcement'tan (9999) yüksek */
    padding: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Logo - Sol Üst */
.top-logo {
    position: fixed; /* absolute yerine fixed */
    top: 58px; /* Announcement banner + 10px */
    left: 20px;
    z-index: 10000; /* Sidebar'dan (1000) ve announcement'tan (9999) yüksek */
    display: none;
    /* Desktop'ta gizli */
    align-items: center;
}

.top-logo img {
    width: 100px;
    height: auto;
    filter: drop-shadow(0 4px 15px rgba(255, 107, 53, 0.3));
}

.auth-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-welcome {
    color: #ff6b35;
    font-size: 14px;
    font-weight: 500;
    background: rgba(255, 107, 53, 0.15);
    padding: 10px 16px;
    border-radius: 12px;
    border: 2px solid rgba(255, 107, 53, 0.5);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-btn i {
    font-size: 16px;
}

.login-btn {
    background: rgba(255, 107, 53, 0.15);
    color: #ff6b35;
    border-color: rgba(255, 107, 53, 0.5);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
}

.login-btn span {
    display: inline;
    /* Desktop'ta yazı göster */
}

.login-btn i {
    font-size: 18px;
}

.login-btn:hover {
    background: #ff6b35;
    color: white;
    border-color: #ff6b35;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.register-btn {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
    border-color: #ff6b35;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.register-btn:hover {
    background: linear-gradient(135deg, #ff5722, #ff6b35);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
    border-color: #ff5722;
}

.logout-btn {
    background: rgba(255, 107, 53, 0.15);
    color: #ff6b35;
    border-color: rgba(255, 107, 53, 0.5);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
}

.logout-btn:hover {
    background: #ff6b35;
    color: white;
    border-color: #ff6b35;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 35, 50, 0.95);
    backdrop-filter: blur(10px);
    border-top: 2px solid #ff6b35;
    z-index: 1000;
    flex-direction: column;
}

.mobile-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: white;
    min-width: 60px;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    background: rgba(255, 107, 53, 0.2);
}

.mobile-nav-item img {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    filter: brightness(0) invert(1);
}

.mobile-nav-item.active img {
    filter: none;
}

.mobile-nav-item span {
    font-size: 10px;
    text-align: center;
    line-height: 1.2;
}

/* Mobile Dropdown Menus */
.mobile-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(26, 35, 50, 0.98);
    border-top: 1px solid rgba(255, 107, 53, 0.3);
}

.mobile-dropdown.open {
    max-height: 500px;
    overflow-y: auto;
}

.mobile-dropdown-content {
    padding: 20px;
    position: relative;
    max-height: 450px;
    overflow-y: auto;
}

.mobile-dropdown-title {
    color: #ff6b35;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
}

.mobile-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.mobile-dropdown-card {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.mobile-dropdown-card:hover {
    background: rgba(255, 107, 53, 0.2);
    transform: translateY(-2px);
}

.mobile-dropdown-card h4 {
    color: white;
    font-size: 14px;
    margin-bottom: 5px;
}

.mobile-dropdown-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

.mobile-dropdown-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-contact-item:hover {
    background: rgba(255, 107, 53, 0.2);
}

.mobile-contact-item img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.mobile-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: rgba(255, 107, 53, 0.2);
    border: 1px solid #ff6b35;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* Copyright Footer */
.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    text-align: center;
    margin-top: 15px;
    margin-bottom: 20px;
    padding: 0 15px;
}

/* Overlay for mobile sidebar */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.overlay.show {
    display: block;
}

/* Prevent body scroll when sidebar is open on mobile */
body.sidebar-open {
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        top: 44px; /* Mobil announcement banner için */
        height: calc(100vh - 44px);
        max-height: calc(100vh - 44px);
        padding: 15px 0 100px 0;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .desktop-auth-section {
        position: fixed; /* absolute yerine fixed */
        top: 52px; /* Mobil announcement banner + 8px */
        right: 15px;
        gap: 10px;
        z-index: 10000; /* Sidebar'dan yüksek */
    }

    .top-logo {
        position: fixed; /* absolute yerine fixed */
        top: 52px; /* Mobil announcement banner + 8px */
        left: 15px;
        display: flex;
        /* Mobilde göster */
        z-index: 10000; /* Sidebar'dan yüksek */
    }

    .top-logo img {
        width: 100px;
    }

    .auth-btn {
        padding: 10px 14px;
        font-size: 13px;
        border-radius: 10px;
    }

    .login-btn {
        padding: 10px;
        width: 40px;
        height: 40px;
    }

    .login-btn span {
        display: none;
        /* Mobilde yazıyı gizle */
    }

    .login-btn i {
        font-size: 16px;
    }

    .mobile-nav {
        display: flex;
    }

    .mobile-dropdown.open {
        max-height: 70vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-dropdown-content {
        padding: 15px;
        max-height: 65vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-dropdown-contact {
        padding-bottom: 20px;
    }
}