/* ========================================
   Listigoo - Modern & Professional Design
   Revolutionary UI/UX for Classifieds
   ======================================== */

:root {
    /* Colors */
    --primary: #007bff;
    --primary-dark: #0056b3;
    --primary-light: #e7f1ff;
    --secondary: #6c757d;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    
    /* Neutral */
    --light: #f8f9fa;
    --lighter: #ffffff;
    --dark: #343a40;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    --gradient-dark: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    --shadow-xl: 0 12px 36px rgba(0,0,0,0.18);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Transition */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   Global Styles
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-100);
    padding-top: 65px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

h1 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.25rem, 3vw, 2rem); }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1rem, 2vw, 1.5rem); }
h5 { font-size: clamp(0.875rem, 1.5vw, 1.25rem); }
h6 { font-size: clamp(0.75rem, 1vw, 1rem); }

.section-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-600);
    font-weight: 400;
    margin-bottom: 2rem;
}

/* ========================================
   Navbar
   ======================================== */

.navbar {
    background: white;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--gray-200);
    padding: 0.25rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1030;
    min-height: 56px;
    max-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.site-logo-nav-link {
    display: flex !important;
    align-items: center !important;
    padding: 0.5rem 1rem !important;
    margin-right: 1rem;
}

.site-logo-nav-link .site-logo {
    height: 44px !important;
    max-height: 44px !important;
    width: auto !important;
    max-width: 180px !important;
    object-fit: contain;
    display: block !important;
    transition: all 0.3s ease;
}

.site-logo-nav-link:hover .site-logo {
    transform: scale(1.05);
}

.site-logo-bar,
.site-logo-link {
    display: none !important;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary) !important;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 0;
    line-height: 1;
    max-height: 40px;
    overflow: hidden;
    flex-shrink: 0;
}

.navbar-nav .nav-link {
    color: var(--gray-700) !important;
    font-weight: 500;
    padding: 0.4rem 0.85rem !important;
    margin: 0 0.25rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary) !important;
    background-color: var(--primary-light);
}

.btn-gradient {
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.55rem 1.25rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.btn-gradient:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.navbar-enhanced {
    background: white;
    transition: all 0.3s ease;
}

.navbar-enhanced .navbar-brand {
    color: var(--primary) !important;
    font-size: 1.8rem;
    font-weight: 800;
}

.navbar-enhanced .nav-link {
    color: var(--gray-700) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
}

.navbar-enhanced.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.navbar-enhanced.scrolled .navbar-brand {
    color: #333 !important;
}

.navbar-enhanced.scrolled .nav-link {
    color: #333 !important;
}

.dropdown-menu {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1050;
    position: absolute;
}

.dropdown-item {
    padding: 0.7rem 1rem;
    transition: var(--transition);
}

.dropdown-item:hover,
.dropdown-item.active {
    background-color: var(--primary-light);
    color: var(--primary);
}

/* ========================================
   Hero Section - Enhanced Responsive Design
   ======================================== */

.hero-section {
    background: var(--gradient-primary);
    margin-top: -65px;
    padding: clamp(60px, 15vh, 120px) 0 clamp(40px, 10vh, 80px);
    color: white;
    min-height: clamp(500px, 80vh, 100vh);
    display: flex;
    align-items: center;
    position: relative;
    overflow: visible;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 40%;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: url('<?php echo get_site_logo(); ?>') center / contain no-repeat;
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    z-index: 0;
}

.hero-title {
    font-size: clamp(1.75rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.search-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-form input,
.search-form select,
.search-form button {
    min-height: clamp(44px, 8vw, 52px);
    border-radius: 8px;
    font-size: clamp(0.875rem, 2vw, 1rem);
}

@media (min-width: 768px) {
    .search-form {
        flex-direction: row;
        gap: 0.75rem;
    }
    
    .search-form input {
        flex: 2;
    }
    
    .search-form select {
        flex: 1;
    }
    
    .search-form button {
        flex: 1;
    }
}

/* ========================================
   Ad Cards - Enhanced Responsive Design
   ======================================== */

.ad-card-enhanced {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ad-card-enhanced:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.ad-card-enhanced .card-img-top {
    height: clamp(150px, 30vw, 200px);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ad-card-enhanced:hover .card-img-top {
    transform: scale(1.05);
}

.ad-card-enhanced .card-body {
    padding: clamp(1rem, 3vw, 1.5rem);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ad-card-enhanced .card-title {
    font-size: clamp(0.875rem, 2vw, 1.1rem);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price-tag {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.location-tag {
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Compact Ad Cards for Mobile */
.ad-card-compact {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    height: 100%;
}

.ad-card-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.ad-card-compact .position-relative {
    height: clamp(80px, 20vw, 100px);
}

.ad-card-compact img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-card-compact .p-2 {
    padding: clamp(0.5rem, 2vw, 0.75rem) !important;
}

.ad-card-compact .text-truncate {
    font-size: clamp(0.75rem, 2vw, 0.8rem);
    font-weight: 600;
    line-height: 1.3;
}

.ad-card-compact .text-primary {
    font-size: clamp(0.7rem, 1.5vw, 0.75rem);
    font-weight: 700;
}

.ad-card-compact .btn-xs {
    font-size: clamp(0.625rem, 1.5vw, 0.7rem);
    padding: clamp(2px, 1vw, 4px) clamp(4px, 2vw, 8px);
}

/* Badges */
.badge-urgent,
.trending-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
}

.badge-urgent {
    background: var(--danger);
    color: white;
}

/* ========================================
   Category Cards - Enhanced Responsive Design
   ======================================== */

.category-card-standard {
    background: white;
    border-radius: 12px;
    padding: clamp(1rem, 3vw, 1.5rem);
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid var(--gray-200);
    height: 100%;
}

.category-card-standard:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    border-color: var(--primary);
}

.category-icon-standard {
    width: clamp(40px, 8vw, 60px);
    height: clamp(40px, 8vw, 60px);
    border-radius: 12px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--primary);
    flex-shrink: 0;
}

.category-info {
    flex: 1;
    min-width: 0;
}

.category-info h6 {
    font-size: clamp(0.875rem, 2vw, 1.1rem);
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.category-info small {
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    color: var(--gray-600);
}

.category-arrow {
    color: var(--gray-400);
    font-size: clamp(0.875rem, 2vw, 1.25rem);
    transition: transform 0.3s ease;
}

.category-card-standard:hover .category-arrow {
    transform: translateX(4px);
    color: var(--primary);
}

/* ========================================
   Premium Professional Enhancements
   ======================================== */

/* Enhanced visual hierarchy */
.section-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: var(--gray-600);
    font-weight: 400;
    margin-bottom: 2rem;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Premium card enhancements */
.ad-card-enhanced {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

.ad-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.ad-card-enhanced:hover::before {
    transform: scaleX(1);
}

.ad-card-enhanced:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

/* Enhanced image containers */
.ad-card-enhanced .card-img-top {
    height: clamp(150px, 30vw, 220px);
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.ad-card-enhanced:hover .card-img-top {
    transform: scale(1.08);
}

.ad-card-enhanced .card-img-top::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ad-card-enhanced:hover .card-img-top::after {
    opacity: 1;
}

/* Premium category cards */
.category-card-standard {
    background: white;
    border-radius: 16px;
    padding: clamp(1.25rem, 3.5vw, 1.75rem);
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.category-card-standard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.category-card-standard:hover::before {
    opacity: 0.05;
}

.category-card-standard:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border-color: var(--primary);
}

.category-card-standard > * {
    position: relative;
    z-index: 1;
}

.category-icon-standard {
    width: clamp(48px, 10vw, 64px);
    height: clamp(48px, 10vw, 64px);
    border-radius: 16px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    color: var(--primary);
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,123,255,0.2);
}

.category-card-standard:hover .category-icon-standard {
    background: var(--primary);
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0,123,255,0.4);
}

/* Enhanced buttons with premium feel */
.btn-gradient {
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    padding: clamp(0.625rem, 2.5vw, 0.875rem) clamp(1.25rem, 3.5vw, 1.75rem);
    font-size: clamp(0.875rem, 2vw, 1rem);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    min-height: clamp(44px, 8vw, 52px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-gradient:hover::before {
    left: 100%;
}

.btn-gradient:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    color: white;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0,123,255,0.4);
}

.btn-gradient:active {
    transform: translateY(-1px) scale(1.01);
}

/* Enhanced search container */
.search-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: clamp(1.75rem, 4.5vw, 2.75rem);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}

.search-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
}

.search-form input,
.search-form select,
.search-form button {
    min-height: clamp(48px, 9vw, 56px);
    border-radius: 12px;
    font-size: clamp(0.9rem, 2.2vw, 1.1rem);
    transition: all 0.3s ease;
}

.search-form input:focus,
.search-form select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0,123,255,0.15);
    transform: translateY(-1px);
}

/* Premium stats cards */
.stat-card-enhanced {
    background: white;
    border-radius: 20px;
    padding: clamp(1.75rem, 4.5vw, 2.75rem);
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.stat-card-enhanced::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: rotate(45deg);
}

.stat-card-enhanced:hover::before {
    opacity: 0.03;
}

.stat-card-enhanced:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

.stat-number-enhanced {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    line-height: 1;
    position: relative;
}

/* Enhanced quick links */
.quick-link-item {
    background: white;
    border-radius: 16px;
    padding: clamp(1.25rem, 3.5vw, 1.75rem);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.quick-link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.quick-link-item:hover::before {
    opacity: 0.05;
}

.quick-link-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.quick-link-item > * {
    position: relative;
    z-index: 1;
}

.quick-link-icon {
    width: clamp(48px, 10vw, 60px);
    height: clamp(48px, 10vw, 60px);
    border-radius: 16px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    color: var(--primary);
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,123,255,0.2);
}

.quick-link-item:hover .quick-link-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 24px rgba(0,123,255,0.4);
}

/* Premium hero section enhancements */
.hero-section {
    background: var(--gradient-primary);
    margin-top: -65px;
    padding: clamp(80px, 20vh, 140px) 0 clamp(60px, 15vh, 100px);
    color: white;
    min-height: clamp(600px, 90vh, 100vh);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255,255,255,0.05) 0%, transparent 50%);
    animation: floatGradient 20s ease-in-out infinite;
}

@keyframes floatGradient {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(20px, -20px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.hero-title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.75rem;
    text-shadow: 0 4px 8px rgba(0,0,0,0.2);
    letter-spacing: -1px;
    animation: slideInDown 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 3vw, 1.375rem);
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
    animation: slideInUp 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s both;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-gradient {
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: clamp(0.5rem, 2vw, 0.75rem) clamp(1rem, 3vw, 1.5rem);
    font-size: clamp(0.875rem, 2vw, 1rem);
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: clamp(40px, 8vw, 48px);
}

.btn-gradient:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.btn-light {
    background: white;
    color: var(--gray-800);
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    padding: clamp(0.5rem, 2vw, 0.75rem) clamp(1rem, 3vw, 1.5rem);
    font-size: clamp(0.875rem, 2vw, 1rem);
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: clamp(40px, 8vw, 48px);
}

.btn-light:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
    color: var(--gray-800);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-outline-light {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.8);
    border-radius: 8px;
    padding: clamp(0.5rem, 2vw, 0.75rem) clamp(1rem, 3vw, 1.5rem);
    font-size: clamp(0.875rem, 2vw, 1rem);
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: clamp(40px, 8vw, 48px);
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.2);
    border-color: white;
    color: white;
    transform: translateY(-2px);
}

.btn-sm {
    padding: clamp(0.375rem, 1.5vw, 0.5rem) clamp(0.75rem, 2vw, 1rem);
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    min-height: clamp(32px, 6vw, 40px);
}

/* ========================================
   Statistics - Enhanced Responsive Design
   ======================================== */

.stat-card-enhanced {
    background: white;
    border-radius: 16px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    height: 100%;
}

.stat-card-enhanced:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.stat-number-enhanced {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-card-enhanced p {
    font-size: clamp(0.875rem, 2vw, 1rem);
    color: var(--gray-600);
    margin: 0;
    font-weight: 500;
}

/* ========================================
   Quick Links - Enhanced Responsive Design
   ======================================== */

.quick-link-item {
    background: white;
    border-radius: 12px;
    padding: clamp(1rem, 3vw, 1.5rem);
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid var(--gray-200);
    height: 100%;
}

.quick-link-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    border-color: var(--primary);
    color: var(--primary);
}

.quick-link-icon {
    width: clamp(40px, 8vw, 50px);
    height: clamp(40px, 8vw, 50px);
    border-radius: 12px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    color: var(--primary);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.quick-link-item:hover .quick-link-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.quick-link-item h6 {
    font-size: clamp(0.875rem, 2vw, 1rem);
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.quick-link-item small {
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    color: var(--gray-600);
    line-height: 1.3;
}

/* ========================================
   Footer - Enhanced Responsive Design
   ======================================== */

footer {
    background: var(--gray-900);
    color: white;
    padding: clamp(2rem, 5vw, 3rem) 0 clamp(1.5rem, 4vw, 2rem);
}

footer h5 {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

footer p {
    font-size: clamp(0.875rem, 2vw, 1rem);
    line-height: 1.6;
    color: var(--gray-300);
    margin-bottom: 1rem;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer ul li a {
    color: var(--gray-300);
    text-decoration: none;
    font-size: clamp(0.875rem, 2vw, 1rem);
    transition: color 0.3s ease;
}

footer ul li a:hover {
    color: white;
}

.social-links a {
    color: var(--gray-400);
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: white;
    transform: translateY(-2px);
}

/* ========================================
   Mobile Optimizations
   ======================================== */

@media (max-width: 768px) {
    /* Enhanced mobile logo in navbar */
    .site-logo-nav-link .site-logo {
        height: 36px !important;
        max-height: 36px !important;
        max-width: 150px !important;
    }
    
    .site-logo-nav-link {
        margin-right: 0.5rem;
        padding: 0.25rem 0.5rem !important;
    }
    
    /* Reduce spacing on mobile */
    .py-5 {
        padding-top: clamp(2rem, 5vw, 3rem) !important;
        padding-bottom: clamp(2rem, 5vw, 3rem) !important;
    }
    
    /* Better grid spacing */
    .g-2 {
        gap: clamp(0.5rem, 2vw, 0.75rem) !important;
    }
    
    .g-3 {
        gap: clamp(0.75rem, 2vw, 1rem) !important;
    }
    
    .g-4 {
        gap: clamp(1rem, 2.5vw, 1.5rem) !important;
    }
    
    /* Better text spacing */
    .mb-4 {
        margin-bottom: clamp(1rem, 3vw, 1.5rem) !important;
    }
    
    .mb-5 {
        margin-bottom: clamp(1.5rem, 4vw, 2rem) !important;
    }
    
    /* Container padding */
    .container {
        padding-left: clamp(1rem, 3vw, 1.5rem);
        padding-right: clamp(1rem, 3vw, 1.5rem);
    }
    
    /* Better button spacing */
    .d-flex.gap-3 {
        gap: clamp(0.75rem, 2vw, 1rem) !important;
        flex-direction: column;
    }
    
    .d-flex.gap-3 .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Category grid improvements */
    .col-lg-3.col-md-4.col-6 {
        flex: 0 0 calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
    }
    
    /* Featured ads grid */
    .col-lg-3.col-md-4.col-6 {
        flex: 0 0 calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
    }
    
    /* Quick links grid */
    .col-md-3.col-6 {
        flex: 0 0 calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
    }
    
    /* Stats grid */
    .col-lg-3.col-md-6 {
        flex: 0 0 calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
    }
    
    /* Footer grid */
    footer .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    footer .social-links {
        text-align: center;
        margin-top: 1rem;
    }
    
    /* Search form improvements */
    .search-container h5 {
        font-size: clamp(1rem, 3vw, 1.25rem);
        margin-bottom: 1rem;
        text-align: center;
    }
    
    /* Hero section improvements */
    .hero-section .row {
        gap: 2rem;
    }
    
    .hero-section .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ========================================
   Advanced Mobile & Desktop Optimizations
   ======================================== */

@media (max-width: 768px) {
    /* Premium mobile optimizations */
    .hero-section {
        padding: clamp(60px, 15vh, 100px) 0 clamp(40px, 10vh, 80px);
        min-height: clamp(500px, 80vh, 700px);
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
        font-weight: 900;
        text-shadow: 0 2px 6px rgba(0,0,0,0.3);
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 2.5vw, 1.125rem);
        margin-bottom: 2rem;
    }
    
    /* Enhanced mobile search */
    .search-container {
        padding: clamp(1.25rem, 3.5vw, 1.75rem);
        border-radius: 16px;
        box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    }
    
    .search-form {
        gap: 0.875rem;
    }
    
    .search-form input,
    .search-form select,
    .search-form button {
        min-height: clamp(44px, 8vw, 48px);
        border-radius: 10px;
        font-size: clamp(0.875rem, 2vw, 1rem);
    }
    
    /* Premium mobile cards */
    .ad-card-enhanced {
        border-radius: 12px;
        box-shadow: 0 3px 16px rgba(0,0,0,0.06);
    }
    
    .ad-card-enhanced:hover {
        transform: translateY(-4px) scale(1.01);
        box-shadow: 0 6px 24px rgba(0,0,0,0.1);
    }
    
    .ad-card-enhanced .card-img-top {
        height: clamp(120px, 25vw, 160px);
    }
    
    .ad-card-enhanced:hover .card-img-top {
        transform: scale(1.05);
    }
    
    /* Enhanced mobile category cards */
    .category-card-standard {
        padding: clamp(1rem, 2.5vw, 1.25rem);
        border-radius: 12px;
        gap: 0.875rem;
    }
    
    .category-card-standard:hover {
        transform: translateY(-3px) scale(1.01);
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    }
    
    .category-icon-standard {
        width: clamp(40px, 8vw, 48px);
        height: clamp(40px, 8vw, 48px);
        border-radius: 12px;
        font-size: clamp(1.25rem, 3vw, 1.5rem);
    }
    
    .category-card-standard:hover .category-icon-standard {
        transform: scale(1.05) rotate(3deg);
    }
    
    /* Enhanced mobile stats */
    .stat-card-enhanced {
        padding: clamp(1.25rem, 3.5vw, 1.75rem);
        border-radius: 16px;
    }
    
    .stat-card-enhanced:hover {
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    }
    
    .stat-number-enhanced {
        font-size: clamp(2rem, 5vw, 2.5rem);
    }
    
    /* Enhanced mobile quick links */
    .quick-link-item {
        padding: clamp(1rem, 2.5vw, 1.25rem);
        border-radius: 12px;
        gap: 0.875rem;
    }
    
    .quick-link-item:hover {
        transform: translateY(-3px) scale(1.01);
        box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    }
    
    .quick-link-icon {
        width: clamp(40px, 8vw, 48px);
        height: clamp(40px, 8vw, 48px);
        border-radius: 12px;
        font-size: clamp(1.25rem, 3vw, 1.5rem);
    }
    
    .quick-link-item:hover .quick-link-icon {
        transform: scale(1.05) rotate(-3deg);
    }
    
    /* Enhanced mobile buttons */
    .btn-gradient {
        border-radius: 10px;
        padding: clamp(0.5rem, 2vw, 0.625rem) clamp(1rem, 3vw, 1.25rem);
        min-height: clamp(40px, 7vw, 44px);
        font-size: clamp(0.8rem, 2vw, 0.9rem);
    }
    
    .btn-gradient:hover {
        transform: translateY(-2px) scale(1.01);
        box-shadow: 0 6px 20px rgba(0,123,255,0.3);
    }
    
    /* Better mobile spacing */
    .py-5 {
        padding-top: clamp(2.5rem, 6vw, 3.5rem) !important;
        padding-bottom: clamp(2.5rem, 6vw, 3.5rem) !important;
    }
    
    .g-2 {
        gap: clamp(0.5rem, 1.5vw, 0.75rem) !important;
    }
    
    .g-3 {
        gap: clamp(0.75rem, 2vw, 1rem) !important;
    }
    
    .g-4 {
        gap: clamp(1rem, 2.5vw, 1.5rem) !important;
    }
    
    /* Enhanced mobile grid */
    .col-lg-3.col-md-4.col-sm-6 {
        flex: 0 0 calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
    }
    
    .col-lg-2.col-md-3.col-6 {
        flex: 0 0 calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
    }
    
    /* Better mobile typography */
    .section-title {
        font-size: clamp(1.25rem, 4vw, 1.75rem);
        padding-bottom: 0.75rem;
    }
    
    .section-title::after {
        width: 40px;
        height: 3px;
    }
    
    .section-subtitle {
        font-size: clamp(0.9rem, 2.5vw, 1rem);
        margin-bottom: 1.5rem;
    }
    
    /* Enhanced mobile footer */
    footer {
        padding: clamp(2rem, 5vw, 2.5rem) 0 clamp(1.5rem, 4vw, 2rem);
    }
    
    footer h5 {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
        margin-bottom: 0.75rem;
    }
    
    footer p {
        font-size: clamp(0.8rem, 2vw, 0.9rem);
        margin-bottom: 0.75rem;
    }
    
    footer ul li a {
        font-size: clamp(0.8rem, 2vw, 0.9rem);
    }
    
    .social-links a {
        font-size: clamp(1.125rem, 3vw, 1.25rem);
        margin: 0 0.5rem;
    }
}

/* Extra small screens - Ultra mobile optimization */
@media (max-width: 480px) {
    /* Enhanced logo for very small screens */
    .site-logo-nav-link .site-logo {
        height: 32px !important;
        max-height: 32px !important;
        max-width: 130px !important;
    }
    
    .site-logo-nav-link {
        margin-right: 0.25rem;
        padding: 0.125rem 0.25rem !important;
    }
    
    /* Ultra premium mobile experience */
    .hero-section {
        padding: clamp(50px, 12vh, 80px) 0 clamp(30px, 8vh, 60px);
        min-height: clamp(450px, 70vh, 600px);
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 4.5vw, 2rem);
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: clamp(0.9rem, 2.5vw, 1rem);
        margin-bottom: 1.5rem;
    }
    
    /* Single column for better mobile UX */
    .row.g-3 > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Enhanced mobile buttons layout */
    .d-flex.gap-3 {
        flex-direction: column;
        gap: 0.875rem !important;
    }
    
    .d-flex.gap-3 .btn {
        width: 100%;
        justify-content: center;
        min-height: 48px;
        padding: 12px 20px;
    }
    
    /* Better mobile search */
    .search-container {
        padding: 1.25rem;
        border-radius: 12px;
    }
    
    .search-form {
        gap: 0.75rem;
    }
    
    /* Enhanced mobile cards */
    .ad-card-enhanced {
        margin-bottom: 1rem;
    }
    
    .category-card-standard {
        margin-bottom: 0.875rem;
    }
    
    .quick-link-item {
        margin-bottom: 0.875rem;
    }
    
    .stat-card-enhanced {
        margin-bottom: 0.875rem;
    }
    
    /* Better mobile touch targets */
    .btn {
        min-height: 48px;
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    /* Improved mobile readability */
    .hero-gradient h1,
    .hero-gradient h2,
    .hero-gradient h3,
    .hero-gradient h4,
    .hero-gradient h5,
    .hero-gradient h6 {
        text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    }
    
    /* Enhanced mobile animations */
    .shape {
        animation-duration: 12s;
    }
    
    /* Better mobile spacing */
    .container {
        padding-left: 0.875rem;
        padding-right: 0.875rem;
    }
    
    .mb-4 {
        margin-bottom: 1.25rem !important;
    }
    
    .mb-5 {
        margin-bottom: 1.75rem !important;
    }
}

/* Large desktop enhancements */
@media (min-width: 1400px) {
    /* Premium desktop experience */
    .hero-section {
        padding: clamp(100px, 20vh, 160px) 0 clamp(80px, 15vh, 120px);
        min-height: clamp(700px, 90vh, 100vh);
    }
    
    .hero-title {
        font-size: clamp(3rem, 6vw, 5rem);
        letter-spacing: -1.5px;
    }
    
    .hero-subtitle {
        font-size: clamp(1.25rem, 3vw, 1.5rem);
        margin-bottom: 3rem;
    }
    
    /* Enhanced desktop cards */
    .ad-card-enhanced:hover {
        transform: translateY(-12px) scale(1.03);
        box-shadow: 0 20px 60px rgba(0,0,0,0.18);
    }
    
    .category-card-standard:hover {
        transform: translateY(-8px) scale(1.03);
        box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    }
    
    .stat-card-enhanced:hover {
        transform: translateY(-12px) scale(1.06);
        box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    }
    
    .quick-link-item:hover {
        transform: translateY(-8px) scale(1.03);
        box-shadow: 0 16px 40px rgba(0,0,0,0.12);
    }
    
    /* Enhanced desktop buttons */
    .btn-gradient:hover {
        transform: translateY(-4px) scale(1.03);
        box-shadow: 0 12px 32px rgba(0,123,255,0.4);
    }
    
    /* Better desktop spacing */
    .container {
        max-width: 1320px;
    }
    
    /* Enhanced desktop typography */
    .section-title {
        font-size: clamp(2rem, 4vw, 3rem);
        margin-bottom: 1.25rem;
    }
    
    .section-title::after {
        width: 80px;
        height: 4px;
    }
    
    .section-subtitle {
        font-size: clamp(1.125rem, 2.5vw, 1.25rem);
        margin-bottom: 2.5rem;
    }
    
    /* Premium desktop search */
    .search-container {
        padding: clamp(2rem, 4.5vw, 3rem);
        border-radius: 24px;
        box-shadow: 0 24px 80px rgba(0,0,0,0.18);
    }
    
    .search-form input,
    .search-form select,
    .search-form button {
        min-height: clamp(52px, 9vw, 60px);
        border-radius: 14px;
        font-size: clamp(1rem, 2.2vw, 1.125rem);
    }
}

/* Ultra-wide desktop optimization */
@media (min-width: 1920px) {
    .container {
        max-width: 1440px;
    }
    
    /* Enhanced logo for ultra-wide screens */
    .site-logo-nav-link .site-logo {
        height: 48px !important;
        max-height: 48px !important;
        max-width: 200px !important;
    }
    
    .site-logo-nav-link {
        margin-right: 1.5rem;
        padding: 0.5rem 1rem !important;
    }
    
    .hero-section {
        padding: clamp(120px, 20vh, 180px) 0 clamp(100px, 15vh, 140px);
    }
    
    .hero-title {
        font-size: clamp(3.5rem, 6vw, 6rem);
    }
    
    .section-title {
        font-size: clamp(2.5rem, 4vw, 3.5rem);
    }
    
    /* Enhanced ultra-wide cards */
    .ad-card-enhanced:hover {
        transform: translateY(-16px) scale(1.04);
        box-shadow: 0 24px 80px rgba(0,0,0,0.2);
    }
}

.stat-card-enhanced {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.stat-card-enhanced:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.stat-number-enhanced {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* ========================================
   Cards
   ======================================== */

.card {
    border: none;
    border-radius: var(--radius-xl);
    background: white;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-img-top {
    transform: scale(1.08);
}

.card-body {
    padding: 1.5rem;
}

/* ========================================
   Ad Card - Enhanced
   ======================================== */

.ad-card-enhanced {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ad-card-enhanced:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

.ad-card-enhanced img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.ad-card-enhanced:hover img {
    transform: scale(1.08);
}

.price-tag {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0.5rem 0;
}

/* ========================================
   Ad Card - Compact
   ======================================== */

.ad-card-compact {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ad-card-compact:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--primary);
}

.ad-card-compact img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.ad-card-compact p {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* ========================================
   Categories
   ======================================== */

.category-card-standard {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.category-card-standard:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(4px);
    background: var(--primary-light);
}

.category-icon-standard {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
}

.category-card-standard:hover .category-icon-standard {
    background: var(--primary);
    color: white;
}

.category-info {
    flex: 1;
}

.category-info h6 {
    margin: 0;
    font-size: 1rem;
    color: var(--gray-900);
}

.category-arrow {
    color: var(--gray-300);
    transition: var(--transition);
}

.category-card-standard:hover .category-arrow {
    color: var(--primary);
    transform: translateX(4px);
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-xs {
    padding: 0.4rem 0.8rem;
    font-size: 0.7rem;
    border-radius: var(--radius-sm);
}

.btn-light {
    background: var(--gray-200);
    color: var(--gray-900);
}

.btn-light:hover {
    background: var(--gray-300);
    color: var(--gray-900);
}

/* ========================================
   Forms
   ======================================== */

.form-control,
.form-select {
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    transition: var(--transition);
    background: white;
    color: var(--gray-800);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

/* ========================================
   Sections
   ======================================== */

section {
    padding: 4rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.bg-light {
    background: var(--gray-100);
}

.bg-white {
    background: white;
}

.bg-gradient-light {
    background: linear-gradient(135deg, rgba(0,123,255,0.05) 0%, rgba(0,86,179,0.05) 100%);
}

/* ========================================
   Footer
   ======================================== */

footer {
    background: var(--gray-900);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

footer h5 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: white;
}

footer a {
    color: var(--gray-300);
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: var(--primary);
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 0.75rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    margin-right: 0.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* ========================================
   Animations
   ======================================== */

@keyframes slideInDown {
    from { 
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========================================
   RTL Support
   ======================================== */

[dir="rtl"] .navbar-brand {
    margin-left: 0;
    margin-right: 1rem;
}

[dir="rtl"] .category-card-standard {
    flex-direction: row-reverse;
}

[dir="rtl"] .category-arrow {
    transform: rotate(180deg);
}

/* ========================================
   Responsive Design
   ======================================== */

/* ========================================
   Responsive Design - MOBILE FIRST
   ======================================== */

/* Base - Mobile (xs): 0px - 575px */
@media (max-width: 575px) {
    * {
        box-sizing: border-box;
    }
    
    html {
        font-size: 13px;
    }

    .navbar-brand img,
    .navbar-logo {
        height: 12px !important;
        max-height: 12px !important;
        max-width: 80px !important;
    }
    
    body {
        padding-top: 0;
        font-size: 14px;
        line-height: 1.5;
    }
    
    /* Text visibility */
    h1, h2, h3, h4, h5, h6, p, label, span, a {
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    /* Header */
    .navbar {
        padding: 0.4rem 0;
        min-height: 52px;
        top: 28px;
    }

    .site-logo-bar {
        height: 28px;
        padding: 2px 0;
    }

    .site-logo-link {
        height: 28px;
    }

    .site-logo {
        height: 36px !important;
        max-height: 36px !important;
        max-width: 150px !important;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-nav {
        gap: 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.85rem;
        margin: 0;
    }
    
    /* Hero */
    .hero-section {
        padding: 60px 1rem 30px;
        margin-top: -52px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    /* Search */
    .search-container {
        padding: 0.75rem;
        border-radius: var(--radius-lg);
    }
    
    .search-form {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .search-form input,
    .search-form select,
    .search-form button {
        width: 100%;
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    /* Container */
    .container {
        padding: 0 0.75rem;
    }
    
    /* Sections */
    section {
        padding: 1.5rem 0;
    }
    
    .section-title {
        font-size: 1.35rem;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 0.85rem;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-img-top {
        height: 150px;
    }
    
    /* Buttons */
    .btn {
        width: 100%;
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
    
    .btn-sm {
        width: auto;
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    /* Forms */
    .form-control,
    .form-select {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    /* Stats */
    .stat-card-enhanced {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .stat-number-enhanced {
        font-size: 1.75rem;
    }
    
    /* Categories */
    .category-card-standard {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .category-icon-standard {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .category-info h6 {
        font-size: 0.9rem;
    }
    
    /* Grid */
    .row > [class*="col-"] {
        margin-bottom: 1rem;
    }
    
    /* Text utilities */
    .text-center { text-align: center; }
    .text-end { text-align: right; }
    .text-start { text-align: left; }
}

/* Small devices (sm): 576px - 767px */
@media (min-width: 576px) and (max-width: 767px) {
    html {
        font-size: 14px;
    }
    
    body {
        padding-top: 56px;
    }
    
    .navbar {
        padding: 0.5rem 0;
        min-height: 56px;
    }
    
    .navbar-brand {
        font-size: 1.4rem;
    }
    
    .hero-section {
        padding: 70px 1rem 40px;
        margin-top: -56px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-form input,
    .search-form select {
        width: 100%;
    }
}

/* Medium devices (md): 768px - 991px */
@media (min-width: 768px) and (max-width: 991px) {
    .navbar {
        padding: 0.75rem 0;
        min-height: 70px;
    }
    
    .hero-section {
        padding: 100px 0 60px;
        margin-top: -70px;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .search-form {
        flex-wrap: wrap;
    }
    
    .search-form input,
    .search-form select {
        flex: 1;
        min-width: 200px;
    }
}

/* Large devices (lg): 992px - 1199px */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

/* Extra large devices (xl): 1200px and above */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

/* ========================================
   Utilities
   ======================================== */

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--gray-600); }

.fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }

.text-truncate { 
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.rounded { border-radius: var(--radius-lg); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.position-relative { position: relative; }
.position-absolute { position: absolute; }

.overflow-hidden { overflow: hidden; }

.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }

/* ========================================
   Enhanced Login & Register Forms
   ======================================== */

.form-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--gray-600);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
    outline: none;
}

/* ========================================
   Search Page Styles
   ======================================== */

.search-sidebar {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 90px;
}

.search-sidebar h6 {
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gray-200);
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
    font-weight: 500;
}

.filter-group input[type="checkbox"],
.filter-group input[type="radio"] {
    margin-right: 0.5rem;
    cursor: pointer;
}

.filter-group input[type="checkbox"]:checked,
.filter-group input[type="radio"]:checked {
    border-color: var(--primary);
    background-color: var(--primary);
}

/* ========================================
   Profile Page Styles
   ======================================== */

.profile-header {
    background: var(--gradient-primary);
    color: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
    margin-bottom: 1rem;
}

.profile-info h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.profile-info p {
    color: rgba(255,255,255,0.9);
    margin: 0;
}

.profile-tabs {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.nav-tabs {
    background: var(--gray-100);
    border: none;
}

.nav-tabs .nav-link {
    color: var(--gray-700);
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 1rem 1.5rem;
    font-weight: 600;
}

.nav-tabs .nav-link:hover {
    color: var(--primary);
    background: white;
}

.nav-tabs .nav-link.active {
    color: var(--primary);
    background: white;
    border-bottom-color: var(--primary);
}

/* ========================================
   Product/Ad Details
   ======================================== */

.ad-page .card {
    margin-bottom: 1.25rem;
}

.ad-page .card-body {
    padding: 1.25rem;
}

.ad-detail-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

.ad-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.ad-detail-info {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.ad-detail-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
}

.ad-detail-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.ad-detail-seller {
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.seller-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}

/* ========================================
   Additional Components
   ======================================== */

.badge-primary {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
}

.badge-urgent {
    background: var(--danger);
    color: white;
}

.badge-featured {
    background: var(--success);
    color: white;
}

.alert {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.alert-primary {
    background: var(--primary-light);
    color: var(--primary);
    border-left: 4px solid var(--primary);
}

.alert-danger {
    background: #fde7e7;
    color: var(--danger);
    border-left: 4px solid var(--danger);
}

.alert-success {
    background: #d4edda;
    color: var(--success);
    border-left: 4px solid var(--success);
}

/* ========================================
   Breadcrumb
   ======================================== */

.breadcrumb {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.breadcrumb-item {
    color: var(--gray-700);
}

.breadcrumb-item.active {
    color: var(--primary);
    font-weight: 600;
}

.breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    color: var(--primary-dark);
}

/* ========================================
   Loading State
   ======================================== */

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--gray-300);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   Visibility Classes
   ======================================== */

.hidden { display: none !important; }
.visible { display: block !important; }

/* ========================================
   Image Upload Area Styles
   ======================================== */

.image-upload-area {
    border: 3px dashed #ccc;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    user-select: none;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.image-upload-area:hover {
    border-color: #007bff;
    background: linear-gradient(135deg, #e7f1ff 0%, #f8f9fa 100%);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.image-upload-area.dragover {
    border-color: #007bff;
    background: linear-gradient(135deg, #e7f1ff 0%, #f0f8ff 100%);
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.3);
    transform: scale(1.02);
}

.image-upload-area i {
    transition: all 0.3s ease;
}

.image-upload-area:hover i {
    color: #007bff;
    transform: scale(1.1);
}

.image-upload-area p {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

.image-upload-area .small {
    font-size: 13px;
    color: #6c757d;
}

#imageInput {
    display: none !important;
}

/* Package Selection Styles */
.package-card {
    cursor: pointer;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.package-card:hover {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
    transform: translateY(-2px);
}

.package-card input[type="radio"]:checked + .card-title:parent {
    border-color: #007bff !important;
}

.package-radio:checked ~ .card-title {
    color: #007bff;
    font-weight: 600;
}

.package-card input:checked ~ .card-title,
.package-card input:checked ~ .text-muted,
.package-card input:checked ~ .badge {
    color: #007bff;
}

.package-card.card.h-100:has(input:checked) {
    border-color: #007bff;
    background-color: #f0f8ff;
}

.package-card:has(input:checked) {
    border-color: #007bff !important;
    background-color: #f0f8ff;
}

.package-card:has(input:checked) .card-title {
    color: #007bff;
    font-weight: 600;
}

/* Image Preview Styles */
.image-preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.image-preview-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.image-preview-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.image-preview-item .remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 16px;
}

.image-preview-item:hover .remove-btn {
    opacity: 1;
}

.image-preview-item .remove-btn:hover {
    background: rgb(220, 53, 69);
    transform: scale(1.1);
}

.image-preview-item .primary-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(40, 167, 69, 0.9);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    body { padding-top: 0; }
    .navbar, footer, .btn, .search-container { display: none; }
}
