/**
 * Huntington Business Directory Page Styles
 */

/* =====================================================
   HERO SECTION
   ===================================================== */

.business-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

.business-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.business-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.business-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 86, 49, 0.9) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.business-hero-content {
    position: relative;
    z-index: 1;
    padding: var(--space-2xl) var(--space-lg);
}

.business-hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.business-hero-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.hero-stats-row {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat .stat-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.hero-stat .stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =====================================================
   CATEGORY CARDS SECTION
   ===================================================== */

.categories-section {
    padding: var(--space-2xl) 0;
    background: var(--bg-light);
}

.categories-section .section-title {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-md);
}

.category-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    text-decoration: none;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.category-img {
    position: absolute;
    inset: 0;
}

.category-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

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

.category-info {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-md);
    color: white;
}

.category-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.category-info p {
    font-size: 0.8125rem;
    opacity: 0.8;
}

/* =====================================================
   DEALS HIGHLIGHT SECTION
   ===================================================== */

.deals-highlight-section {
    padding: var(--space-2xl) 0;
    background: linear-gradient(135deg, #fff 0%, #f0f9ff 100%);
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.section-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-xs);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1rem;
}

.empty-img {
    width: 150px;
    height: 150px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    opacity: 0.7;
    margin-bottom: var(--space-md);
}

/* =====================================================
   DIRECTORY SECTION
   ===================================================== */

.directory-section {
    padding: var(--space-2xl) 0;
    background: white;
}

.directory-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.directory-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.filter-tabs {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

.filter-tab {
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    background: white;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.search-box {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    background: white;
    min-width: 250px;
}

.search-box svg {
    color: var(--text-light);
    flex-shrink: 0;
}

.search-box input {
    border: none;
    outline: none;
    font-size: 0.875rem;
    width: 100%;
    background: transparent;
}

/* =====================================================
   CTA SECTION
   ===================================================== */

.cta-section {
    position: relative;
    padding: var(--space-3xl) 0;
    color: white;
    text-align: center;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
}

.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 86, 49, 0.95) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.cta-content p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: white;
    color: var(--primary);
    border: none;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* =====================================================
   BUSINESS CARDS - Enhanced for standalone page
   ===================================================== */

.businesses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.business-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 1px solid var(--border-light);
}

.business-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.business-card-header {
    position: relative;
    height: 120px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.business-card-header .category-bg {
    position: absolute;
    inset: 0;
    opacity: 0.15;
}

.business-logo {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 1;
}

/* =====================================================
   DEALS CARDS - Enhanced
   ===================================================== */

.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.deal-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.deal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
}

.deal-card.urgent::before {
    background: linear-gradient(90deg, var(--error) 0%, #ff6b6b 100%);
}

.deal-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 768px) {
    .business-hero {
        min-height: 350px;
    }

    .hero-stats-row {
        gap: var(--space-lg);
    }

    .hero-stat .stat-num {
        font-size: 2rem;
    }

    .category-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .directory-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-tabs {
        justify-content: center;
    }

    .search-box {
        min-width: 100%;
    }

    .directory-header {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-add-business {
        justify-content: center;
    }

    .businesses-grid {
        grid-template-columns: 1fr;
    }

    .deals-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .category-cards {
        grid-template-columns: 1fr;
    }
}
