/* RestaurantDir - Main Stylesheet */
/* Masculine, Clean, Clinical Design */

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #2d2d2d;
    --accent-color: #4a90e2;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --dark-gray: #343a40;
    --white: #ffffff;
    --border-color: #dee2e6;
    --shadow-light: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-heavy: 0 8px 16px rgba(0,0,0,0.2);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Header Layout Styles */
.header-brand-row {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background-color: #212529 !important;
    padding: 0.75rem 0;
}

.header-nav-row {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    z-index: 1030;
    background-color: #6c757d !important;
}

/* Base Typography */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--primary-color);
    background-color: var(--light-gray);
    padding-top: 144px; /* Brand row (60px) + Nav row (55px) */
}

/* Mobile adjustments */
@media (max-width: 991.98px) {
    .header-nav-row {
        position: static;
        top: auto;
    }
    body {
        padding-top: 60px; /* Only brand row on mobile */
    }
    .mobile-nav-collapse {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        z-index: 1025;
        background-color: #212529 !important;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

/* Header & Navigation */
.main-header .navbar {
    box-shadow: var(--shadow-medium);
    border-bottom: 2px solid var(--secondary-color);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white) !important;
}

.navbar-brand:hover {
    color: var(--accent-color) !important;
}

.nav-link {
    font-weight: 500;
    transition: var(--transition);
    padding: 0.75rem 1rem !important;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

.nav-link.active {
    color: var(--accent-color) !important;
    font-weight: 600;
}

.search-input {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    width: 300px;
}

.search-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
}

.btn-suggest {
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 2px solid var(--accent-color);
    transition: var(--transition);
}

.btn-suggest:hover {
    background-color: transparent;
    color: var(--accent-color);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
}

/* Cards & Components */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    background-color: var(--white);
}

.card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.card-header {
    background-color: var(--white);
    border-bottom: 2px solid var(--light-gray);
    font-weight: 600;
    padding: 1.25rem;
}

.card-body {
    padding: 1.5rem;
}

/* Restaurant Cards */
.restaurant-card {
    height: 100%;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.restaurant-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-medium);
}

.restaurant-image {
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.restaurant-card .card-body {
    padding: 1.25rem;
}

.restaurant-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.restaurant-info {
    color: var(--medium-gray);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.restaurant-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feature-badge {
    background-color: var(--light-gray);
    color: var(--dark-gray);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.rating-stars {
    color: var(--warning-color);
    font-size: 1.1rem;
}

.price-range {
    color: var(--success-color);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    font-weight: 500;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    border-width: 2px;
}

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

.btn-primary:hover {
    background-color: #3a7bd5;
    border-color: #3a7bd5;
}

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

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

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

.btn-dark:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Forms */
.form-control {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.75rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
}

.form-select {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.75rem;
}

.form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Filters Sidebar */
.filters-sidebar {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

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

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-title {
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-gray);
    color: var(--primary-color);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-check {
    margin-bottom: 0.5rem;
}

.form-check-label {
    font-weight: 400;
    cursor: pointer;
}

/* Pagination */
.page-link {
    color: var(--accent-color);
    border-color: var(--border-color);
    padding: 0.75rem 1rem;
    font-weight: 500;
}

/* Pagination */
.pagination {
    color: #000;
    border-color: var(--border-color);
    padding: 0.75rem 1rem;
    font-weight: 500;
}



.pagination .page-link:hover {
    color: var(--white);
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
	color:#fff;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-search {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: var(--shadow-medium);
}

/* Featured Section */
.featured-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    color: var(--medium-gray);
    margin-bottom: 2rem;
}

/* Cuisine Categories */
.cuisine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.cuisine-card {
    background-color: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    text-decoration: none;
    color: var(--primary-color);
}

.cuisine-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-medium);
    color: var(--accent-color);
    text-decoration: none;
}

.cuisine-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.cuisine-name {
    font-weight: 600;
    font-size: 1rem;
}

/* Footer */
.site-footer {
    margin-top: 4rem;
    border-top: 3px solid var(--secondary-color);
}

.site-footer h5, .site-footer h6 {
    color: var(--white);
}

.social-links a {
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent-color) !important;
}

.newsletter-form .form-control {
    border-color: var(--border-color);
}

.ad-placeholder {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Stats Section */
.stat-card {
    padding: 1rem;
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .search-input {
        width: 100%;
    }
    
    .cuisine-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .filters-sidebar {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    
    .card-body {
        padding: 1rem;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-search {
        padding: 0.75rem;
    }
}

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

.spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 0.1em;
}

/* Alerts */
.alert {
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
}

/* Breadcrumbs */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item a {
    color: var(--accent-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--medium-gray);
}

/* Utility Classes */
.text-muted {
    color: var(--medium-gray) !important;
}

.border-light {
    border-color: var(--border-color) !important;
}

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

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}