/* ============================================
   Index/Home Page Styles
   ============================================ */

.hero-section {
    text-align: center;
    padding: 1.5rem 0 1.5rem;
}

.hero-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section p {
    font-size: 1rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.search-box {
    max-width: 700px;
    margin: 0 auto;
    padding: 1.5rem;
    background: transparent;
    border-radius: var(--radius);
    border: none;
}

.search-form {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    transition: all 0.2s;
    font-family: inherit;
    color: var(--text-primary);
}

.search-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.search-input:hover {
    border-color: var(--border);
    box-shadow: var(--shadow);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    background: var(--card-bg);
}

.search-button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    font-family: inherit;
}

.search-button:hover {
    border-color: var(--border);
    box-shadow: var(--shadow);
}

.search-hint {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--secondary);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 2px solid var(--primary);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: var(--light);
}

.suggestion-item strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.25rem;
}

.suggestion-item small {
    color: var(--secondary);
    font-size: 0.85rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--secondary);
    font-size: 0.9rem;
}

.tag-section {
    margin-top: 2rem;
}

.tag-section h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Recent Business Cards */
.recent-business-card {
    display: block;
    text-decoration: none;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.2s;
    box-shadow: var(--shadow);
}

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

.recent-business-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

.recent-business-placeholder {
    width: 100%;
    height: 120px;
    background: var(--bg-secondary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 2rem;
}

.recent-business-title {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Tag Category Cards */
.tag-category-card {
    margin: 1.5rem 0;
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--card-border);
}

.tag-category-title {
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-transform: capitalize;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.tag-category-count {
    background: #e0f2fe;
    color: #0369a1;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.tag-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag-business-link {
    color: var(--primary);
    text-decoration: none;
    display: block;
    padding: 0.6rem;
    border: 1px solid var(--card-border);
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 0.9rem;
    background: var(--card-bg);
}

.tag-business-link:hover {
    background: var(--bg-secondary);
    border-color: var(--primary);
}

.tag-more-link {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    padding: 0.6rem;
    border: 1px dashed var(--border);
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 600;
    background: var(--card-bg);
}

.tag-more-link:hover {
    background: var(--bg-secondary);
    border-color: var(--text-secondary);
}

@media (max-width: 768px) {
    .hero-section {
        padding: 1rem 0 1rem;
    }

    .hero-section h2 {
        font-size: 1.5rem;
    }

    .hero-section p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .search-box {
        padding: 1rem;
    }

    .search-form {
        flex-direction: column;
        gap: 1rem;
    }

    .search-button {
        width: 100%;
    }
}
