/* Custom overrides for Bootstrap can go here. */

/* Example:
body {
    font-family: 'Your-Custom-Font', sans-serif;
}
*/ 

/* Modern Navbar Styles */
.navbar-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    backdrop-filter: blur(10px);
    border: none !important;
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-radius: 0 !important;
}

.navbar-modern:hover {
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3) !important;
}

/* Brand Styling */
.brand-text {
    color: #ffffff !important;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-radius: 6px;
}

.brand-text:hover {
    color: #f8f9fa !important;
    transform: translateY(-1px);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.brand-text i {
    color: #ffd700;
    font-size: 1.8rem;
}

/* Custom Toggle Button */
.custom-toggler {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.custom-toggler:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background-color: rgba(255, 255, 255, 0.1);
}

.custom-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Search Bar Styling */
.search-container {
    max-width: 500px;
    width: 100%;
}

.search-group {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.search-group:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.search-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 0.75rem 1rem;
}

.search-input {
    border: none;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    background-color: #ffffff;
    border-radius: 8px;
}

.search-input:focus {
    box-shadow: none;
    background-color: #f8f9fa;
}

.search-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 0.75rem 1.25rem;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    color: white;
    transform: translateX(2px);
}

/* User Dropdown Styling */
.user-dropdown {
    color: #ffffff !important;
    padding: 0.5rem 0.85rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-dropdown:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.user-avatar {
    position: relative;
    display: inline-block;
}

.avatar-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    border-radius: 8px;
}

.online-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #28a745;
    border-radius: 50%;
    border: 2px solid #ffffff;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.username-text {
    font-weight: 600;
    color: #ffffff;
}

/* Modern Dropdown Menu */
.modern-dropdown {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    min-width: 250px;
    overflow: hidden;
}

/* Fix user dropdown header alignment */
.modern-dropdown .dropdown-header {
    padding: 0.85rem 1.2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px 10px 0 0;
    margin: 0;
    /* Remove negative margins */
    box-shadow: none;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f1f1f1;
}

.modern-dropdown .dropdown-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px !important;
    object-fit: cover;
    border: 2px solid #dee2e6;
    flex-shrink: 0;
}

.modern-dropdown .dropdown-header .ms-2 {
    margin-left: 0.75rem !important;
}

.modern-dropdown .dropdown-header .fw-bold {
    font-size: 1rem;
    color: #333;
}

.modern-dropdown .dropdown-header small {
    color: #888;
    font-size: 0.85rem;
}

/* Make sure dropdown-header and dropdown-item have same width and border radius */
.modern-dropdown .dropdown-header,
.modern-dropdown .dropdown-item {
    width: 100%;
    box-sizing: border-box;
}

.modern-dropdown .dropdown-item {
    padding: 0.65rem 1.2rem;
    color: #495057;
    transition: all 0.3s ease;
    border-radius: 0 !important;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    background: transparent;
    font-size: 0.97rem;
}

.modern-dropdown .dropdown-item:hover, .modern-dropdown .dropdown-item:focus {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    transform: none;
    border-radius: 0 !important;
    box-shadow: none;
    z-index: 2;
    opacity: 0.95;
}

.modern-dropdown .dropdown-item i {
    width: 20px;
    text-align: center;
}

/* Login/Register Buttons */
.login-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.55rem 1.2rem;
    border-radius: 12px !important;
    transition: all 0.3s ease;
}

.login-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.register-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    border-radius: 12px !important;
    padding: 0.55rem 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.register-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Post Ad Button */
.post-ad-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    border: none;
    border-radius: 12px !important;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.post-ad-btn::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;
}

.post-ad-btn:hover::before {
    left: 100%;
}

.post-ad-btn:hover {
    background: linear-gradient(135deg, #ff5252 0%, #d63031 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.post-ad-btn:active {
    transform: translateY(-1px);
}

/* Modern Footer Styles */
.footer-modern {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
    color: #ecf0f1;
    position: relative;
    overflow: hidden;
}

.footer-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.footer-main {
    padding: 4rem 0 2rem;
    position: relative;
    z-index: 1;
}

.footer-section {
    margin-bottom: 2rem;
}

/* Footer Brand */
.footer-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-brand i {
    color: #3498db;
    font-size: 2rem;
    margin-right: 0.75rem;
}

.brand-name {
    background: linear-gradient(135deg, #3498db, #9b59b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::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;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
    color: white;
}

.social-link:nth-child(2) {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.social-link:nth-child(3) {
    background: linear-gradient(135deg, #e4405f, #c13584);
}

.social-link:nth-child(4) {
    background: linear-gradient(135deg, #0077b5, #005885);
}

/* Footer Titles */
.footer-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(135deg, #3498db, #9b59b6);
    border-radius: 1px;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
    color: #3498db;
}

.footer-links a:hover {
    color: #3498db;
    transform: translateX(15px);
}

.footer-links a:hover::before {
    opacity: 1;
}

/* Newsletter Section */
.newsletter-text {
    color: #bdc3c7;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.newsletter-form .input-group {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.newsletter-input {
    border: none;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.newsletter-input::placeholder {
    color: #bdc3c7;
}

.newsletter-input:focus {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: none;
    color: #ffffff;
}

.newsletter-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    color: white;
    padding: 0.75rem 1.25rem;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    color: white;
    transform: translateX(2px);
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.copyright {
    color: #bdc3c7;
    font-size: 0.9rem;
}

.footer-stats {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.stat-item {
    color: #bdc3c7;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    color: #3498db;
    transform: translateY(-1px);
}

.stat-item i {
    color: #3498db;
    margin-right: 0.5rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.back-to-top i {
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .footer-main {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-stats {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .copyright {
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    .footer-main {
        padding: 2rem 0 1rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-stats {
        gap: 1rem;
    }
    
    .stat-item {
        font-size: 0.8rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Responsive Design for Navbar */
@media (max-width: 991.98px) {
    .navbar-modern {
        padding: 0.75rem 0;
    }
    
    .search-container {
        margin: 1rem 0;
        max-width: 100%;
    }
    
    .user-dropdown {
        margin: 0.5rem 0;
        justify-content: center;
    }
    
    .modern-dropdown {
        margin-top: 0.25rem;
        min-width: 200px;
    }
}

/* Mobile Enhancements */
@media (max-width: 575.98px) {
    .brand-text {
        font-size: 1.25rem;
    }
    
    .brand-text i {
        font-size: 1.5rem;
    }
    
    .post-ad-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Additional Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

/* Loading Animation for Buttons */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Focus States for Accessibility */
.navbar-modern .nav-link:focus,
.navbar-modern .btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
} 

:root {
    --navbar-item-height: 44px;
}

/* Navbar items uniform height */
.navbar-modern .navbar-nav .nav-link,
.navbar-modern .navbar-nav .btn,
.navbar-modern .navbar-nav .user-dropdown,
.navbar-modern .navbar-nav .register-btn,
.navbar-modern .navbar-nav .login-link,
.navbar-modern .navbar-nav .post-ad-btn {
    min-height: var(--navbar-item-height);
    height: var(--navbar-item-height);
    display: flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
    font-size: 1rem;
    box-sizing: border-box;
}

/* User dropdown items uniform height */
.modern-dropdown .dropdown-item {
    min-height: var(--navbar-item-height);
    height: var(--navbar-item-height);
    display: flex;
    align-items: center;
    font-size: 1rem;
    padding-top: 0;
    padding-bottom: 0;
}

/* User dropdown header uniform height */
.modern-dropdown .dropdown-header {
    min-height: var(--navbar-item-height);
    height: var(--navbar-item-height);
    display: flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}

/* Avatar and username alignment */
.user-avatar {
    height: 32px;
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.avatar-img, .dropdown-avatar {
    height: 32px !important;
    width: 32px !important;
    border-radius: 8px !important;
}
.username-text {
    line-height: 1;
    margin-left: 0.5rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

/* Search input uniform height */
.search-input {
    min-height: var(--navbar-item-height);
    height: var(--navbar-item-height);
    font-size: 1rem;
    padding-top: 0;
    padding-bottom: 0;
}

.search-btn, .search-icon {
    min-height: var(--navbar-item-height);
    height: var(--navbar-item-height);
    display: flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
} 