/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e5e5e5;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    height: auto;
    min-height: 65px;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #6c757d;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
    position: relative;
}

.bottom-nav-item i {
    font-size: 22px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.bottom-nav-item span {
    font-size: 11px;
    font-weight: bolder;
    white-space: nowrap;
    transition: all 0.3s ease;
}

/* Active State */
.bottom-nav-item.active {
    color: #E31E24;
}

.bottom-nav-item.active i {
    transform: scale(1.1);
}

/* Hover Effect (for devices that support it) */
@media (hover: hover) {
    .bottom-nav-item:hover {
        color: #E31E24;
    }
}

/* Highlight Item (İlan Ver butonu) */
.bottom-nav-item-highlight {
    color: #E31E24 !important;
}

.bottom-nav-item-highlight i {
    font-size: 28px;
    width: 48px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: relative;
}

.bottom-nav-item-highlight.active i,
.bottom-nav-item-highlight:hover i {
    transform: scale(1.05);
}

/* Body padding to prevent content being hidden under nav */
body {
    padding-bottom: 0;
}

/* Only add padding on mobile when logged in */
@media (max-width: 991px) {
    body.has-mobile-nav {
        padding-bottom: 75px;
    }
}

/* Hide on desktop */
@media (min-width: 992px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}

/* Animation on load */
.mobile-bottom-nav {
    animation: slideUpNav 0.3s ease-out;
}

@keyframes slideUpNav {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Tap highlight removal for mobile */
.bottom-nav-item {
    -webkit-tap-highlight-color: transparent;
}

/* Badge support (for future notifications) */
.bottom-nav-item .badge {
    position: absolute;
    top: 4px;
    right: 20%;
    background: #E31E24;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}


/* ==================== PROFILE DROPDOWN ==================== */
.bottom-nav-profile-dropdown {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.bottom-nav-profile-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #6c757d;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.3s ease;
}

.bottom-nav-profile-btn i {
    font-size: 22px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.bottom-nav-profile-btn span {
    font-size: 11px;
    font-weight: bolder;
    white-space: nowrap;
}

.bottom-nav-profile-dropdown.active .bottom-nav-profile-btn,
.bottom-nav-profile-dropdown.dropdown-open .bottom-nav-profile-btn {
    color: #E31E24;
}

.bottom-nav-profile-dropdown.active .bottom-nav-profile-btn i {
    transform: scale(1.1);
}

/* Dropdown Menu */
.bottom-nav-dropdown {
    position: absolute;
    bottom: calc(100% + 15px);
    right: -10px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 1001;
}

.bottom-nav-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown Arrow */
.bottom-nav-dropdown-arrow {
    position: absolute;
    bottom: -8px;
    right: 25px;
    width: 16px;
    height: 16px;
    background: #ffffff;
    transform: rotate(45deg);
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.05);
}

/* Dropdown Items */
.bottom-nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.bottom-nav-dropdown-item:hover {
    background: #f8f9fa;
    color: #E31E24;
}

.bottom-nav-dropdown-item i {
    font-size: 18px;
    width: 24px;
    text-align: center;
    color: #6c757d;
    transition: color 0.2s ease;
}

.bottom-nav-dropdown-item:hover i {
    color: #E31E24;
}

/* Dropdown Divider */
.bottom-nav-dropdown-divider {
    height: 1px;
    background: #e5e5e5;
    margin: 8px 0;
}

/* Logout Item */
.bottom-nav-dropdown-logout {
    color: #dc3545;
}

.bottom-nav-dropdown-logout i {
    color: #dc3545;
}

.bottom-nav-dropdown-logout:hover {
    background: #fff5f5;
    color: #dc3545;
}

.bottom-nav-dropdown-logout:hover i {
    color: #dc3545;
}


/* ==================== CATEGORIES DROPDOWN ==================== */
.bottom-nav-categories-dropdown {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.bottom-nav-categories-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #6c757d;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.3s ease;
}

.bottom-nav-categories-btn i {
    font-size: 22px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.bottom-nav-categories-btn span {
    font-size: 11px;
    font-weight: bolder;
    white-space: nowrap;
}

.bottom-nav-categories-dropdown.active .bottom-nav-categories-btn,
.bottom-nav-categories-dropdown.dropdown-open .bottom-nav-categories-btn {
    color: #E31E24;
}

.bottom-nav-categories-dropdown.active .bottom-nav-categories-btn i {
    transform: scale(1.1);
}

/* Left positioned dropdown */
.bottom-nav-dropdown-left {
    right: auto;
    left: -10px;
}

.bottom-nav-dropdown-arrow-left {
    right: auto;
    left: 25px;
}

/* Sub items (smaller text) */
.bottom-nav-dropdown-item-sub {
    font-size: 13px;
    padding-left: 24px;
    color: #666;
}

.bottom-nav-dropdown-item-sub i {
    font-size: 16px;
}

/* ==================== İLAN VER DROPDOWN ==================== */
.bottom-nav-adpost-dropdown {
    position: relative;
}

.bottom-nav-adpost-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: inherit;
    font-size: inherit;
    width: 100%;
    height: 100%;
}

.bottom-nav-adpost-btn i {
    font-size: 22px;
    transition: transform 0.2s ease;
}

.bottom-nav-adpost-btn span {
    font-size: 10px;
    font-weight: 500;
}

.bottom-nav-adpost-dropdown.dropdown-open .bottom-nav-adpost-btn i {
    transform: scale(1.1);
}

/* Center positioned dropdown */
.bottom-nav-dropdown-center {
    right: auto;
    transform: translateX(-50%);
    min-width: 200px;
    border-radius: 16px;
}

.bottom-nav-dropdown-center .bottom-nav-dropdown-item:first-child {
    border-radius: 16px 16px 0 0;
}

.bottom-nav-dropdown-center .bottom-nav-dropdown-item:last-child {
    border-radius: 0 0 16px 16px;
}

.bottom-nav-dropdown-arrow-center {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

/* İlan Ver dropdown item icons */
.bottom-nav-adpost-dropdown .bottom-nav-dropdown-item i.text-danger {
    color: #E31E24 !important;
}

.bottom-nav-adpost-dropdown .bottom-nav-dropdown-item i.text-primary {
    color: #4361ee !important;
}
