/* --- modern.css --- */

/* Import a modern, stylish font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
}

/* --- Hero Section --- */
.hero-section {
    height: 75vh;
    background: url('/img/george-washington-bridge-2098351_1920.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 2rem;
}

.hero-title {
    font-weight: 900;
    font-size: 3.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
}

/* --- Dashboard Backgrounds --- */
.user-dashboard-bg {
    background-color: #f0f7ff; /* A light, airy blue for users */
}

.biz-dashboard-bg {
    background-color: #f4f4f2; /* A professional, warm gray for businesses */
}

.search-form .form-control {
    border: none;
    border-radius: 50px;
    padding: 1.75rem 1.5rem;
}

.search-form .btn {
    border-radius: 50px;
    font-weight: bold;
    padding: 0.75rem 2rem;
}


/* --- Category Section --- */
.category-card {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 1rem;
    padding: 2rem 1rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: #212529;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #0d6efd;
}

.section-title {
    font-weight: 900;
    margin-bottom: 3rem;
}

.section-title .gradient-text {
    background: linear-gradient(45deg, #0d6efd, #6f42c1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* --- Deals Section --- */
.deal-card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease;
    text-decoration: none;
}
.deal-card:hover {
    transform: scale(1.05);
}
.deal-card .card-body {
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
}

/* --- Modern Dashboard --- */
.dashboard-nav .nav-link {
    color: #555;
    font-weight: bold;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.dashboard-nav .nav-link.active,
.dashboard-nav .nav-link:hover {
    color: #fff;
    background-color: #0d6efd;
}

.dashboard-nav .nav-link i {
    width: 25px;
    text-align: center;
}

.dashboard-card {
    background-color: #fff;
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.profile-header .avatar {
    width: 50px;
    height: 50px;
    background-color: #0d6efd;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 1rem;
}

.followed-list-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}
.followed-list-item:last-child {
    border-bottom: none;
}
.followed-list-item a {
    text-decoration: none;
    color: #212529;
    font-weight: bold;
}

/* --- Follower Display on Business Profile --- */
.follower-display {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 0.75rem;
}

.follower-avatars {
    display: flex;
}

.follower-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #0d6efd;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    border: 2px solid #ffffff;
    /* This makes the avatars overlap */
    margin-left: -15px; 
}
.follower-avatar:first-child {
    margin-left: 0;
}

.follower-text {
    margin-left: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
}
.follower-text strong {
    color: #212529;
}

/* --- Modern Business Profile Page --- */
.profile-header-card {
    display: flex;
    align-items: flex-start;
}
.profile-header-card .biz-logo-lg {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 1rem;
    margin-right: 1.5rem;
    border: 3px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.profile-header-card .biz-info h1 {
    margin-bottom: 0.25rem;
}

.profile-tabs .nav-link {
    font-weight: bold;
    color: #6c757d;
}
.profile-tabs .nav-link.active {
    color: #0d6efd;
    border-color: #dee2e6 #dee2e6 #fff !important;
    border-bottom: 3px solid #0d6efd !important;
    background-color: transparent;
}

.hours-list {
    list-style: none;
    padding: 0;
}
.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}
.hours-list li:last-child {
    border-bottom: none;
}
.hours-list .day {
    font-weight: bold;
}
.hours-list .time.closed {
    color: #dc3545;
    font-weight: bold;
}