/* Business Directory Styles */

.portal-header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 1rem 0;
    border-bottom: 3px solid #34495e;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.logo-section h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: bold;
}

.tagline {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    font-style: italic;
}

.main-nav {
    background: #34495e;
    border-bottom: 2px solid #2c3e50;
    padding: 0;
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-tab {
    background: none;
    border: none;
    color: #ecf0f1;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-tab:hover {
    background: #2c3e50;
    color: #3498db;
}

.nav-tab.active {
    background: #3498db;
    color: white;
    border-bottom: 3px solid #2980b9;
}

.admin-link {
    margin-left: auto;
    background: #e74c3c !important;
}

.tab-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.search-section {
    background: #ecf0f1;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.search-bar {
    display: flex;
    flex: 1;
    min-width: 300px;
}

.search-bar input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #bdc3c7;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.search-bar button {
    padding: 0.75rem 1rem;
    background: #3498db;
    color: white;
    border: 2px solid #3498db;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 1rem;
}

.category-filter select {
    padding: 0.75rem;
    border: 2px solid #bdc3c7;
    border-radius: 4px;
    font-size: 1rem;
    background: white;
    min-width: 200px;
}

.featured-section {
    margin-bottom: 3rem;
}

.featured-section h2 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.featured-business {
    background: white;
    border: 2px solid #3498db;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.featured-business:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.categories-section {
    margin-bottom: 3rem;
}

.categories-section h2 {
    color: #2c3e50;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.category-card {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-card:hover {
    border-color: #3498db;
    background: #e8f4fd;
    transform: translateY(-2px);
}

.category-card h3 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
}

.category-count {
    font-size: 1.1rem;
    color: #7f8c8d;
    font-weight: bold;
}

.business-results {
    margin-top: 2rem;
}

.business-results h2 {
    color: #2c3e50;
    border-bottom: 2px solid #95a5a6;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.business-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.business-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.business-card:hover {
    border-color: #3498db;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.business-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
}

.business-category {
    color: #3498db;
    font-weight: 500;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.business-description {
    color: #7f8c8d;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.business-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #ecf0f1;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.contact-item a {
    color: #3498db;
    text-decoration: none;
}

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

.services-section {
    max-width: 800px;
    margin: 0 auto;
}

.service-card {
    background: white;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.service-card h3 {
    color: #2c3e50;
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
}

.service-card p {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature {
    background: #ecf0f1;
    color: #2c3e50;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.loading {
    text-align: center;
    padding: 3rem;
    color: #95a5a6;
    font-style: italic;
}

.error-message {
    background: #e74c3c;
    color: white;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .main-nav {
        flex-direction: column;
    }

    .nav-tab {
        justify-content: center;
    }

    .search-section {
        flex-direction: column;
        align-items: stretch;
    }

    .search-bar {
        min-width: auto;
    }

    .business-list {
        grid-template-columns: 1fr;
    }

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

    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Business Detail Modal */
.business-detail {
    padding: 1rem;
}

.business-detail h4 {
    color: #2c3e50;
    margin: 1rem 0 0.5rem 0;
}

.business-detail .detail-section {
    margin-bottom: 1.5rem;
}

.business-detail .contact-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.business-detail .contact-info a {
    color: #3498db;
    text-decoration: none;
}

.business-detail .contact-info a:hover {
    text-decoration: underline;
}