/* UrbanCompany-Inspired UI Enhancements */

/* 1. Rounded Cards & Soft Shadows */
.listing-card-v2,
.vendor-card,
.card {
    border-radius: 12px;
    border: 1px solid #eef0f5;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.listing-card-v2:hover,
.vendor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

/* 2. Modern Typography */
body {
    -webkit-font-smoothing: antialiased;
    color: #2b3445;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: #1a202c;
    letter-spacing: -0.02em;
}

/* 3. Primary Button Styling */
.btn-primary,
.theme-btn {
    background: linear-gradient(135deg, #FF6B00 0%, #FF8533 100%);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    padding: 12px 24px;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 107, 0, 0.3);
}

/* 4. Verified Badges */
.verified-badge {
    display: inline-flex;
    align-items: center;
    background: #e6fffa;
    color: #047857;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.verified-badge i {
    margin-right: 4px;
    font-size: 0.8rem;
}

.id-verified-badge {
    background: #e3f2fd;
    color: #0d47a1;
}

.verified-badge {
    background: #e6fffa;
    color: #047857;
}

/* 5. Skeleton Loading Animation */
.skeleton {
    background: #f0f2f5;
    background: linear-gradient(90deg, #f0f2f5 25%, #e6e8eb 50%, #f0f2f5 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* 6. Mobile Sticky Actions */
@media (max-width: 768px) {
    .sticky-actions-bottom {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        padding: 12px;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        display: flex;
        gap: 12px;
    }
}

/* 7. Language Switcher Styling */
.lang-switcher-dropdown {
    min-width: 120px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #eee !important;
}

.active-lang {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #FF6B00;
}

/* 8. Toast Notification Standardization */
.toast-success {
    background-color: #10B981 !important;
}

.toast-error {
    background-color: #EF4444 !important;
}

.toast-info {
    background-color: #3B82F6 !important;
}

/* 9. Mobile Search Bar */
.mobile-search-toggle {
    display: none;
    background: none;
    border: none;
    color: #333;
    font-size: 1.2rem;
    padding: 8px;
    margin-left: 8px;
    cursor: pointer;
}

.mobile-search-bar {
    display: none;
    background: #fff;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    animation: slideDown 0.3s ease-out;
}

.mobile-search-bar.active {
    display: block;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .mobile-search-toggle {
        display: block;
    }

    .modern-search-bar {
        display: none !important;
    }
}

/* 10. Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 8px 0;
    justify-content: space-around;
    align-items: center;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #666;
    text-decoration: none;
    font-size: 0.75rem;
    padding: 4px;
    flex: 1;
}

.bottom-nav-item:hover {
    color: #FF6B00;
}

.bottom-nav-item i {
    font-size: 1.25rem;
    margin-bottom: 2px;
}

.bottom-nav-item.active {
    color: #FF6B00;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }

    body {
        padding-bottom: 60px;
    }
}

/* 11. Mobile Sidebar Menu */
.mobile-menu-wrapper {
    background-color: #fff;
    padding-top: 20px;
    min-height: 100vh;
}

.mobile-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav .nav-item {
    display: block;
    width: 100%;
}

.mobile-nav .nav-link {
    display: block;
    width: 100%;
    padding: 12px 20px;
    border-bottom: 1px solid #f1f2f6;
    color: #444;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.mobile-nav .nav-link:hover,
.mobile-nav .nav-link:active {
    background-color: #f8f9fa;
    color: #FF6B00;
    border-left-color: #FF6B00;
    padding-left: 25px;
    /* Subtle slide effect */
}

.mobile-nav .nav-link i {
    float: right;
    margin-top: 4px;
    color: #999;
}

/* 12. Modern Mobile Top Navbar Components */
.mobile-action-buttons {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 15px;
    /* Space between buttons and hamburger */
}

.mobile-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    text-decoration: none !important;
    color: #555;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin-left: 5px;
}

.mobile-action-btn:hover {
    background-color: #f0f2f5;
    color: #FF6B00;
}

.mobile-action-btn i {
    font-size: 1.2rem;
    margin-bottom: 2px;
    color: #666;
}

.mobile-action-btn span {
    font-weight: 500;
    line-height: 1;
}

/* Specific adjustments for 'Add Listing' vs 'Login' if needed */
.mobile-action-btn.add-listing i {
    color: #FF6B00;
}

/* Adjust hamburger position if needed */
.menu-toggler {
    margin-left: 0 !important;
}