@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #0f172a;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Desktop Header (visível apenas em desktop) */
.desktop-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.desktop-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.logo h1 a {
    color: #fff;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #fcd34d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo p {
    font-size: 0.7rem;
    color: #c7d2fe;
}

.desktop-header nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.desktop-header nav a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.desktop-header nav a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    transition: width 0.3s;
    border-radius: 2px;
}

.desktop-header nav a:hover::after {
    width: 100%;
}

.desktop-header nav a:hover {
    color: #fff;
}

.btn-adicionar {
    background: linear-gradient(135deg, #10b981, #059669);
    padding: 0.6rem 1.3rem;
    border-radius: 50px;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-adicionar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-adicionar::after {
    display: none;
}

/* Mobile Header (visível apenas em mobile) */
.mobile-header {
    display: none;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.75rem 1rem;
}

.mobile-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.mobile-logo span {
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
}

.mobile-menu-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu.show {
    display: flex;
}

.mobile-menu a {
    color: #e2e8f0;
    text-decoration: none;
    padding: 0.6rem 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    border-radius: 10px;
    transition: all 0.2s;
}

.mobile-menu a i {
    width: 20px;
    color: #f59e0b;
}

.mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Botão Flutuante FAB (Mobile) */
.fab-add {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    z-index: 99;
    transition: all 0.3s ease;
    display: none;
}

.fab-add:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    /* Esconde header desktop */
    .desktop-header {
        display: none;
    }
    
    /* Mostra header mobile */
    .mobile-header {
        display: block;
    }
    
    /* Mostra botão flutuante */
    .fab-add {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero {
        padding: 2rem 1rem;
        margin: 1rem 0;
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .search-bar {
        flex-direction: column;
    }
    
    .search-bar button {
        width: 100%;
    }
    
    .stats-bar {
        gap: 1rem;
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .category-card {
        padding: 1rem 0.5rem;
    }
    
    .category-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .category-card h3 {
        font-size: 0.75rem;
    }
    
    .category-count {
        font-size: 0.6rem;
    }
    
    .business-grid {
        grid-template-columns: 1fr;
    }
    
    .business-card h3 {
        font-size: 1rem;
    }
    
    .featured-header h2 {
        font-size: 1.3rem;
    }
    
    .weather-widget {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .weather-info {
        justify-content: center;
    }
    
    .weather-temp {
        font-size: 1.5rem;
    }
    
    .newsletter {
        padding: 1.5rem;
    }
    
    .newsletter h3 {
        font-size: 1.2rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form button {
        width: 100%;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .social-icons {
        margin-bottom: 1rem;
    }
    
    /* Ajustes para página de categorias */
    .subcategorias-lista {
        grid-template-columns: 1fr;
    }
    
    .categoria-grupo {
        padding: 1rem;
    }
    
    .categoria-header h2 {
        font-size: 1rem;
    }
    
    .categoria-icon {
        font-size: 1.3rem;
    }
    
    /* Ajustes para página da empresa */
    .empresa-header {
        padding: 1rem;
    }
    
    .empresa-header h1 {
        font-size: 1.3rem;
    }
    
    .empresa-info {
        padding: 1rem;
    }
    
    .empresa-acoes {
        padding: 1rem;
        flex-direction: column;
    }
    
    .btn-acao {
        justify-content: center;
    }
    
    .avaliacao-detalhe {
        flex-wrap: wrap;
    }
    
    .nota {
        font-size: 1.5rem;
    }
    
    .estrelas {
        font-size: 0.9rem;
    }
}

/* Desktop normal - mantém o header original */
@media (min-width: 769px) {
    .mobile-header {
        display: none;
    }
    
    .fab-add {
        display: none;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 24px;
    padding: 4rem 2rem;
    margin: 2rem 0;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 35px -10px rgba(102, 126, 234, 0.3);
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    animation: rotate 25s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.125rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

/* Search Bar */
.search-bar {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 60px;
    padding: 0.5rem;
}

.search-bar input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    background: #fff;
}

.search-bar button {
    padding: 1rem 2rem;
    background: #0f172a;
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.search-bar button:hover {
    background: #1e293b;
    transform: scale(1.02);
}

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #667eea;
}

.stat-label {
    font-size: 0.8rem;
    color: #64748b;
}

/* Categories Grid */
.section-header {
    text-align: center;
    margin: 2rem 0;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0f172a, #4f46e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.category-card {
    background: #fff;
    border-radius: 16px;
    padding: 1rem 0.5rem;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: #667eea;
    box-shadow: 0 10px 20px -5px rgba(102, 126, 234, 0.2);
}

.category-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea15, #764ba215);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin: 0 auto 0.75rem;
    color: #667eea;
}

.category-card h3 {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e293b;
}

.category-count {
    font-size: 0.65rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

/* Business Grid */
.featured-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin: 2rem 0 1rem;
}

.featured-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
}

.featured-header a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.business-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    display: block;
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -12px rgba(0, 0, 0, 0.1);
}

.business-card .card-content {
    padding: 1.2rem;
}

.business-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.business-category {
    display: inline-block;
    background: linear-gradient(135deg, #667eea15, #764ba215);
    color: #667eea;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    margin-bottom: 0.5rem;
}

.business-address {
    font-size: 0.75rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.business-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.stars {
    color: #f59e0b;
    font-size: 0.7rem;
    letter-spacing: 1px;
}

.rating-value {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.8rem;
}

.rating-count {
    color: #94a3b8;
    font-size: 0.65rem;
}

/* Weather Widget */
.weather-widget {
    background: linear-gradient(135deg, #0f172a, #1e1b4b);
    border-radius: 20px;
    padding: 1.2rem;
    margin: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    color: #fff;
}

.weather-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.weather-temp {
    font-size: 1.5rem;
    font-weight: 700;
}

.weather-desc {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Newsletter */
.newsletter {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
    color: #fff;
}

.newsletter h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.newsletter p {
    margin-bottom: 1.2rem;
    opacity: 0.9;
    font-size: 0.9rem;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    max-width: 450px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 50px;
    font-size: 0.85rem;
    outline: none;
    min-width: 200px;
}

.newsletter-form button {
    background: #0f172a;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter-form button:hover {
    background: #1e293b;
    transform: scale(1.02);
}

/* Footer */
footer {
    background: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.social-icons a {
    color: #64748b;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.social-icons a:hover {
    color: #fff;
    transform: translateY(-3px);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

/* Páginas de categoria e empresa - mantém o mesmo */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.15);
}

.card-content {
    padding: 1.2rem;
}

.card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.card h3 a {
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
}

.card h3 a:hover {
    color: #667eea;
}

.card .categoria {
    color: #667eea;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0.5rem 0;
}

.card .endereco {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.4;
}

.card .avaliacao {
    color: #f59e0b;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.card .telefone {
    color: #10b981;
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

/* Categorias page */
.categorias-page h1 {
    font-size: 1.8rem;
    margin: 1rem 0;
}

.categorias-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.categoria-grupo {
    background: #fff;
    border-radius: 16px;
    padding: 1rem;
    border: 1px solid #e2e8f0;
}

.categoria-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f1f5f9;
}

.categoria-icon {
    font-size: 1.5rem;
}

.categoria-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
}

.subcategorias-lista {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.subcategorias-lista li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    text-decoration: none;
    color: #334155;
    font-size: 0.85rem;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
}

.subcategorias-lista li a:hover {
    background: #667eea;
    color: #fff;
}

.subcategorias-lista .count {
    background: #e2e8f0;
    color: #475569;
    padding: 0.1rem 0.4rem;
    border-radius: 20px;
    font-size: 0.65rem;
}

/* Empresa page */
.empresa-detalhe {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    margin: 1rem 0;
}

.empresa-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 1.5rem;
    color: #fff;
}

.empresa-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.categoria-badge a {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.2rem 0.75rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.7rem;
}

.avaliacao-detalhe {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.nota {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fbbf24;
}

.estrelas {
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.empresa-info {
    padding: 1.2rem;
    display: grid;
    gap: 1rem;
}

.info-section h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.horario ul {
    list-style: none;
    margin-top: 0.3rem;
}

.horario li {
    padding: 0.2rem 0;
    font-size: 0.8rem;
}

.empresa-acoes {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.btn-acao {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-denunciar {
    background: #fef3c7;
    color: #d97706;
}

.btn-editar {
    background: #dbeafe;
    color: #2563eb;
}

.btn-remover {
    background: #fee2e2;
    color: #dc2626;
}

/* Busca page */
.search-page h1 {
    font-size: 1.5rem;
    margin: 1rem 0;
}

#busca-input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 0.9rem;
    outline: none;
}

#busca-input:focus {
    border-color: #667eea;
}

.legal-page {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.legal-page h1 {
    font-size: 1.5rem;
}

.legal-page h2 {
    font-size: 1.1rem;
    margin: 1rem 0 0.5rem;
}