/* Your custom CSS here */

/* Global styles for a modern look */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    transition: box-shadow 0.3s ease-in-out; /* Smooth transition for hover effects if added later */
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

/* Logo styles with maximum specificity */
a.navbar-brand.logo.logo-title img.main-logo {
    width: 485px !important;
    height: 90px !important;
    image-rendering: auto;
    transform: translateZ(0); /* Force GPU acceleration */
    backface-visibility: hidden; /* Reduce blur on some browsers */
    -webkit-font-smoothing: subpixel-antialiased; /* Better text rendering */
}

/* Welcome card enhancement */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Category section enhancement */
.f-category {
    margin-bottom: 20px;
}

.f-category a {
    background: white;
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
}

.f-category a:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.f-category i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #ff5e84;
    transition: transform 0.3s ease;
}

.f-category:hover i {
    transform: scale(1.1);
}

.f-category h6 {
    color: #333;
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
}

/* Navigation bar enhancement */
.navbar .nav-item {
    margin: 0 5px;
}

.navbar .nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.navbar .nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #ff5e84;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar .nav-link:hover:after {
    width: 100%;
}

/* Post ad button enhancement */
.btn-listing {
    background: linear-gradient(45deg, #ff5e84, #ff8360);
    border: none;
    color: white !important;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 94, 132, 0.2);
}

.btn-listing:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 94, 132, 0.3);
}

/* City selection enhancement */
.cat-list {
    margin-bottom: 15px !important;
}

.cat-list a {
    background: white;
    border-radius: 10px;
    padding: 12px 20px;
    display: block;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 500;
}

.cat-list a:hover {
    background: linear-gradient(45deg, #ff5e84, #ff8360);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(255, 94, 132, 0.2);
    border-color: transparent;
}

/* Section titles enhancement */
.title-3 {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.title-3:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: linear-gradient(45deg, #ff5e84, #ff8360);
    bottom: -10px;
    left: 0;
    border-radius: 2px;
}

/* Search box enhancement */
.form-control {
    border-radius: 10px;
    padding: 12px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(255, 94, 132, 0.1);
    border-color: #ff5e84;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-brand img {
        max-width: 200px !important;
        height: auto !important;
    }
    
    .f-category a {
        padding: 15px 10px;
    }
    
    .f-category i {
        font-size: 2rem;
    }
}

/* Footer enhancement - Fixed version */
.main-footer {
    background: #f8f9fa;
    color: #333;
    padding: 40px 0 0;
    margin-top: 50px;
}

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

.footer-col {
    margin-bottom: 30px;
}

.footer-title {
    color: #ff5e84;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 12px;
}

.footer-nav a {
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-nav a:hover {
    color: #ff5e84;
    transform: translateX(5px);
}

/* Social media links fix */
.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-links a {
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
}

.social-links a:hover {
    color: #fff;
    background: #ff5e84;
    transform: translateY(-3px);
}

.social-links i {
    font-size: 18px;
}

/* Copyright section fix */
.copy-info {
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: #666;
    background: transparent;
}

/* Button enhancement */
.btn-listing, 
a.btn-listing,
.postadd a.btn-listing,
.navbar .postadd a.btn-listing {
    background: linear-gradient(45deg, #ff5e84, #ff8360);
    border: none;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 94, 132, 0.2);
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
}

.btn-listing:hover,
a.btn-listing:hover,
.postadd a.btn-listing:hover,
.navbar .postadd a.btn-listing:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 94, 132, 0.3);
    color: #fff !important;
    background: linear-gradient(45deg, #ff5e84, #ff8360);
}

/* Fix for any dark overlays */
.wrapper, #wrapper {
    background: #fff;
}

/* Ensure text colors are visible */
body {
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    color: #333;
}

p {
    color: #666;
}

/* Fade-in animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card,
.f-category,
.cat-list,
.title-3,
.footer-col {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.f-category:nth-child(2) { animation-delay: 0.2s; }
.f-category:nth-child(3) { animation-delay: 0.3s; }
.f-category:nth-child(4) { animation-delay: 0.4s; }

.cat-list:nth-child(2) { animation-delay: 0.1s; }
.cat-list:nth-child(3) { animation-delay: 0.2s; }
.cat-list:nth-child(4) { animation-delay: 0.3s; }
.cat-list:nth-child(5) { animation-delay: 0.4s; }

.footer-col:nth-child(2) { animation-delay: 0.2s; }
.footer-col:nth-child(3) { animation-delay: 0.3s; }
.footer-col:nth-child(4) { animation-delay: 0.4s; }

/* Modal enhancements */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: linear-gradient(45deg, #ff5e84, #ff8360);
    color: white;
    border-radius: 15px 15px 0 0;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

/* Dropdown menu enhancement */
.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 10px;
}

.dropdown-item {
    border-radius: 8px;
    padding: 8px 15px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: linear-gradient(45deg, #ff5e84, #ff8360);
    color: white;
    transform: translateX(5px);
}

.ui-autocomplete {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 9999 !important;
    border: 1px solid #e8e8e8;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ui-autocomplete .ui-menu-item {
    padding: 8px 12px;
    border-bottom: 1px solid #f4f4f4;
    cursor: pointer;
}

.ui-autocomplete .ui-menu-item:last-child {
    border-bottom: none;
}

.ui-autocomplete .ui-menu-item:hover {
    background-color: #f8f9fa;
}

.ui-helper-hidden-accessible {
    display: none;
}

.ui-autocomplete-loading {
    background: white url("/img/spinner.gif") right center no-repeat;
}

/* Dark theme support */
[theme="dark"] .ui-autocomplete {
    background-color: #2d3339;
    border-color: #404040;
}

[theme="dark"] .ui-autocomplete .ui-menu-item {
    border-color: #404040;
    color: #fff;
}

[theme="dark"] .ui-autocomplete .ui-menu-item:hover {
    background-color: #3a4147;
}

