/* ===== DIADIEM24H THEME STYLES ===== */

/* Import Bootstrap and FontAwesome if needed */
@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

/* ===== GLOBAL STYLES ===== */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --white-color: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== HEADER STYLES ===== */
.header-area {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-top {
    background: var(--light-color);
    padding: 8px 0;
    font-size: 14px;
}

.header-main {
    padding: 15px 0;
}

.logo img {
    max-height: 50px;
}

/* Search Bar Styles */
.search-bar {
    position: relative;
}

.search-form .input-group {
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    background: white;
}

.search-form .form-control {
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    background: transparent;
}

.search-form .form-control:focus {
    box-shadow: none;
    border: none;
}

.search-filters {
    display: flex;
    align-items: center;
    padding: 5px 15px;
    background: var(--light-color);
    border-left: 1px solid #dee2e6;
    gap: 15px;
}

.search-filters .form-select {
    border: none;
    background: transparent;
    font-size: 14px;
    min-width: 120px;
}

.search-filters .form-check {
    margin: 0;
    white-space: nowrap;
}

.search-form .btn {
    border-radius: 0 50px 50px 0;
    padding: 12px 25px;
    border: none;
}

/* Navigation Styles */
.navbar {
    border-top: 1px solid #dee2e6;
    padding: 0;
}

.navbar-nav .nav-link {
    padding: 15px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    border-bottom-color: var(--primary-color);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 10px 0;
}

.dropdown-item {
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--light-color);
    color: var(--primary-color);
    transform: translateX(5px);
}

/* ===== HERO SECTION ===== */
.hero-section {
    margin-top: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-map {
    position: relative;
}

.map-placeholder {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
    margin: 20px;
    height: calc(100% - 40px) !important;
}

.hero-categories {
    background: white !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 500px;
}

/* Category Cards */
.category-card {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #e9ecef;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    border-color: var(--primary-color);
}

.category-link {
    text-decoration: none !important;
    color: inherit !important;
}

.category-icon i {
    transition: all 0.3s ease;
}

.category-card:hover .category-icon i {
    transform: scale(1.2);
}

/* ===== SECTIONS ===== */
.section-header {
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--secondary-color);
}

/* Place Cards */
.place-card {
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
}

.place-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}

.place-image {
    overflow: hidden;
    height: 200px;
}

.place-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.place-card:hover .place-image img {
    transform: scale(1.05);
}

.place-badge .badge {
    font-size: 12px;
    padding: 5px 10px;
}

.place-rating .badge {
    background: rgba(0,0,0,0.7) !important;
}

.place-title a:hover {
    color: var(--primary-color) !important;
}

.stars i {
    color: #ffc107;
    font-size: 14px;
}

/* Quick Categories */
.quick-category-card {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #e9ecef;
}

.quick-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

/* Articles */
.featured-article {
    border: none;
}

.article-image {
    height: 250px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-item:hover {
    transform: translateX(5px);
    transition: all 0.3s ease;
}

/* Deals Section */
.deals-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.deal-card {
    border: none;
    transition: all 0.3s ease;
}

.deal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2) !important;
}

.deal-image {
    height: 150px;
    overflow: hidden;
}

.deal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Business CTA */
.business-cta-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%) !important;
}

.cta-features li {
    padding: 5px 0;
    font-size: 16px;
}

/* ===== FOOTER STYLES ===== */
.footer-area {
    margin-top: auto;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%) !important;
}

.footer-main {
    padding: 60px 0 40px;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.widget-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

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

.footer-links li {
    margin-bottom: 10px;
}

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

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.social-links {
    margin-top: 20px;
}

.social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.contact-item {
    color: #bdc3c7;
    margin-bottom: 10px;
}

.contact-item i {
    width: 20px;
    color: var(--primary-color);
}

.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1199.98px) {
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 991.98px) {
    .header-main {
        text-align: center;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .search-bar {
        margin-bottom: 15px;
    }
    
    .hero-categories {
        min-height: auto !important;
        padding: 30px 20px !important;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .search-filters {
        flex-direction: column;
        align-items: flex-start !important;
        padding: 15px;
        gap: 10px;
    }
    
    .search-filters .form-select {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .category-card {
        margin-bottom: 20px;
    }
    
    .hero-section .col-lg-8,
    .hero-section .col-lg-4 {
        order: 2;
    }
    
    .hero-section .col-lg-4 {
        order: 1;
        margin-bottom: 20px;
    }
    
    .hero-map {
        height: 300px !important;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .navbar-toggler {
        border: none;
        font-size: 1.2rem;
    }
    
    .top-right,
    .top-left {
        text-align: center;
        margin-bottom: 10px;
    }
}

@media (max-width: 575.98px) {
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .hero-categories h3 {
        font-size: 1.4rem;
    }
    
    .category-card {
        padding: 20px !important;
    }
    
    .footer-main {
        padding: 40px 0 20px;
    }
    
    .widget-title {
        font-size: 1.1rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.shadow-sm {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
}

.shadow-lg {
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px); 
    }
    to { 
        opacity: 1;
        transform: translateY(0); 
    }
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}
