/* =============================================
   BizLink Local - Custom Styles
   Search Engine Style Business Directory
   ============================================= */

/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* =============================================
   General Reset & Base
   ============================================= */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Museo Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =============================================
   Search Hero (Homepage)
   ============================================= */
.search-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.search-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

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

.search-logo {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 1px;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.logo-biz {
    color: #4285f4;
    background: #fff;
    padding: 0 6px;
    border-radius: 4px 0 0 4px;
    font-size: inherit;
    line-height: 1.2;
}

.logo-link {
    color: #ea4335;
    background: #fff;
    padding: 0 6px;
    margin-left: -1px;
    font-size: inherit;
    line-height: 1.2;
}

.logo-local {
    color: #34a853;
    background: #fff;
    padding: 0 6px;
    margin-left: -1px;
    border-radius: 0 4px 4px 0;
    font-size: inherit;
    line-height: 1.2;
}

.search-tagline {
    color: rgba(255,255,255,0.9);
    font-size: 18px;
    margin-bottom: 30px;
    font-weight: 300;
}

/* Search Box */
.search-box-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #dfe1e5;
    border-radius: 28px;
    padding: 8px 8px 8px 20px;
    box-shadow: 0 1px 6px rgba(32,33,36,.28);
    transition: box-shadow 0.2s;
}

.search-box:hover,
.search-box:focus-within {
    box-shadow: 0 2px 12px rgba(32,33,36,.35);
}

.search-icon {
    flex-shrink: 0;
    margin-right: 12px;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 8px 0;
    background: transparent;
    font-family: inherit;
    color: #202124;
}

.search-input::placeholder {
    color: #9aa0a6;
}

.search-submit {
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
    white-space: nowrap;
}

.search-submit:hover {
    background: #1557b0;
}

/* Popular Categories */
.popular-categories {
    margin-top: 24px;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
}

.categories-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.category-tag {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: #fff;
    padding: 6px 14px;
    border-radius: 16px;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.2s;
    backdrop-filter: blur(4px);
}

.category-tag:hover {
    background: rgba(255,255,255,0.25);
    text-decoration: none;
}

/* =============================================
   Featured Business Section
   ============================================= */
.featured-section {
    padding: 48px 20px;
    background: #fff;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #202124;
    margin: 0 0 24px;
    text-align: center;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.business-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.business-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: transparent;
    transform: translateY(-2px);
    text-decoration: none;
}

.card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f0fe;
    border-radius: 50%;
    margin-bottom: 12px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #202124;
    margin: 0 0 4px;
    line-height: 1.3;
}

.card-category {
    font-size: 12px;
    color: #1a73e8;
    background: #e8f0fe;
    padding: 2px 8px;
    border-radius: 10px;
    margin-bottom: 6px;
}

.card-location {
    font-size: 13px;
    color: #70757a;
    margin: 0;
}

/* =============================================
   Info Section (How It Works)
   ============================================= */
.info-section {
    background: #f8f9fa;
    padding: 48px 20px;
    border-top: 1px solid #e8eaed;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.info-card {
    text-align: center;
    padding: 24px;
}

.info-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f0fe;
    border-radius: 50%;
    margin: 0 auto 16px;
}

.info-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #202124;
    margin: 0 0 8px;
}

.info-card p {
    font-size: 14px;
    color: #70757a;
    line-height: 1.6;
    margin: 0;
}

/* =============================================
   Footer
   ============================================= */
.site-footer {
    background: #202124;
    color: #9aa0a6;
    padding: 24px 0;
    font-size: 14px;
}

.site-footer .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.site-footer .footer-links a {
    color: #9aa0a6;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.2s;
}

.site-footer .footer-links a:hover {
    color: #fff;
}

.site-footer .footer-brand strong {
    color: #e8eaed;
}

.site-footer .footer-bottom {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #3c4043;
    font-size: 12px;
    text-align: center;
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 768px) {
    .search-hero {
        padding: 60px 16px 40px;
    }
    
    .search-logo {
        font-size: 36px;
    }
    
    .search-tagline {
        font-size: 16px;
    }
    
    .search-box {
        flex-direction: column;
        border-radius: 16px;
        padding: 12px;
    }
    
    .search-input {
        width: 100%;
        padding: 8px 0;
        margin-bottom: 8px;
    }
    
    .search-submit {
        width: 100%;
        border-radius: 8px;
    }
    
    .business-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    
    .featured-section,
    .info-section {
        padding: 32px 16px;
    }
}

@media (max-width: 480px) {
    .search-logo {
        font-size: 28px;
    }
    
    .business-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .business-card {
        padding: 16px 10px;
    }
    
    .card-title {
        font-size: 14px;
    }
}
