/*
Theme Name: Flavor Flavor
Theme URI: https://flavorflavor.com.br
Author: Flavor Dev
Author URI: https://flavorflavor.com.br
Description: Tema profissional para diretório de prestadores de serviço. Design moderno e responsivo com cards elegantes e sistema de avaliação.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flavor-flavor
Tags: directory, business, professional, one-column, custom-colors, custom-menu, featured-images
*/

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1f2937;
    background: #f8f9fc;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ==========================================================================
   HEADER - BARRA SUPERIOR
   ========================================================================== */

.top-bar {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    padding: 10px 16px;
    text-align: center;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.top-bar span {
    color: #fbbf24;
    font-weight: 700;
}

.site-header {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.35);
}

.header-back {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.25s ease;
    backdrop-filter: blur(10px);
}

.header-back:hover {
    background: rgba(255,255,255,0.22);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.header-back svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.header-menu {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.12);
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(10px);
}

.header-menu:hover {
    background: rgba(255,255,255,0.22);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.header-menu svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* ==========================================================================
   HERO / LOGO SECTION
   ========================================================================== */

.hero-section {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 35px 20px 25px;
    text-align: center;
    border-bottom: 1px solid rgba(99, 102, 241, 0.08);
}

.site-logo {
    margin-bottom: 8px;
}

.site-logo img {
    height: 60px;
    margin: 0 auto;
}

.site-logo-text {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.site-logo-text span {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.hero-icon {
    font-size: 22px;
}

.page-title-h1 {
    font-size: 28px;
    font-weight: 800;
    color: #4f46e5;
    margin: 0;
    text-align: center;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.hero-description {
    font-size: 15px;
    color: #64748b;
    margin: 6px 0 20px;
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.hero-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.location-badge:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    transform: translateY(-1px);
}

.location-badge svg {
    width: 18px;
    height: 18px;
    fill: #ef4444;
}

.location-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.location-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    fill: #ef4444;
    pointer-events: none;
    z-index: 1;
}

.location-arrow {
    position: absolute;
    right: 12px;
    width: 14px;
    height: 14px;
    fill: #9ca3af;
    pointer-events: none;
}

.city-select {
    padding: 12px 40px 12px 44px;
    background: #fff;
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: all 0.25s ease;
}

.city-select:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.city-select:focus {
    outline: none;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.3);
}

.city-select option {
    background: #fff;
    color: #1f2937;
    padding: 10px;
}

/* ==========================================================================
   SEARCH SECTION
   ========================================================================== */

.search-section {
    padding: 20px;
    text-align: center;
}

.search-title {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
}

.search-title span {
    color: #4f46e5;
}

.category-dropdown {
    position: relative;
    max-width: 500px;
    margin: 0 auto 12px;
}

.category-select {
    width: 100%;
    padding: 16px 50px 16px 50px;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.35);
    transition: all 0.25s ease;
}

.category-select:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.45);
}

.category-select option {
    background: #fff;
    color: #1f2937;
    padding: 12px;
}

.category-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    fill: #fff;
    pointer-events: none;
}

.category-arrow {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    fill: #fff;
    pointer-events: none;
}

.search-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 13px;
    color: #6b7280;
    max-width: 500px;
    margin: 0 auto;
}

.search-stats .count {
    display: flex;
    align-items: center;
    gap: 4px;
}

.search-stats .count svg {
    width: 14px;
    height: 14px;
    fill: #fbbf24;
}

.search-stats .register-link {
    background: #e5e7eb;
    padding: 4px 12px;
    border-radius: 12px;
    color: #374151;
    font-weight: 500;
    transition: all 0.2s ease;
}

.search-stats .register-link:hover {
    background: #d1d5db;
}

/* ==========================================================================
   PROMO BANNER
   ========================================================================== */

.promo-banner {
    max-width: 500px;
    margin: 0 auto 16px;
    padding: 0 20px;
}

.promo-card {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.35);
}

.promo-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.promo-icon {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-icon svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.promo-text h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}

.promo-text h4 span {
    color: #fde047;
}

.promo-text p {
    font-size: 11px;
    opacity: 0.9;
}

.promo-image {
    height: 60px;
}

.promo-image img {
    height: 100%;
    object-fit: contain;
}

/* ==========================================================================
   MAIN CONTAINER
   ========================================================================== */

.main-container {
    max-width: 540px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

/* ==========================================================================
   CARDS DE PROFISSIONAIS
   ========================================================================== */

.cards-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pro-card {
    background: #fff;
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.25s ease;
    border: 1px solid #f3f4f6;
}

.pro-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    border-color: #e5e7eb;
}

.pro-info {
    flex: 1;
    min-width: 0;
}

.pro-name {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pro-name a {
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pro-verified {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pro-verified svg {
    width: 10px;
    height: 10px;
    fill: #fff;
}

.pro-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
}

.pro-stars {
    color: #fbbf24;
    letter-spacing: -1px;
}

.pro-score {
    font-weight: 600;
    color: #374151;
}

.pro-votes {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #4f46e5;
    font-weight: 500;
}

.pro-votes svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.pro-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
}

.pro-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.pro-btn svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}

.pro-btn-instagram {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 3px 10px rgba(225, 48, 108, 0.35);
}

.pro-btn-instagram:hover {
    transform: scale(1.08);
    box-shadow: 0 5px 15px rgba(225, 48, 108, 0.45);
}

.pro-btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.35);
}

.pro-btn-whatsapp:hover {
    transform: scale(1.08);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.45);
}

/* Card em Destaque */
.pro-card-destaque {
    background: linear-gradient(145deg, #fffbeb 0%, #fef3c7 100%);
    border: 2px solid #f59e0b;
    position: relative;
    overflow: hidden;
}

.pro-card-destaque::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
}

.pro-card-destaque:hover {
    border-color: #d97706;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.25);
}

/* ==========================================================================
   CARD DE CADASTRO
   ========================================================================== */

.register-card {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    margin-top: 16px;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.35);
    transition: all 0.25s ease;
}

.register-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.45);
}

.register-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.register-icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.register-icon svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.register-text h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

.register-text p {
    font-size: 12px;
    opacity: 0.9;
}

.register-btn {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.register-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.register-btn svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

/* ==========================================================================
   CONTEÚDO DE PÁGINAS E POSTS
   ========================================================================== */

.page-content,
.post-content {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 16px;
    border: 1px solid #f3f4f6;
}

.page-content h1,
.post-content h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
}

.page-content h2,
.post-content h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin: 24px 0 12px;
}

.page-content h3,
.post-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin: 20px 0 10px;
}

.page-content p,
.post-content p {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 16px;
}

.page-content a,
.post-content a {
    color: #4f46e5;
    text-decoration: underline;
}

.page-content img,
.post-content img {
    border-radius: 12px;
    margin: 20px 0;
}

.page-content ul,
.page-content ol,
.post-content ul,
.post-content ol {
    margin: 16px 0;
    padding-left: 24px;
    color: #4b5563;
}

.page-content li,
.post-content li {
    margin-bottom: 8px;
    list-style: disc;
}

.page-content ol li,
.post-content ol li {
    list-style: decimal;
}

.page-content blockquote,
.post-content blockquote {
    border-left: 4px solid #4f46e5;
    padding-left: 16px;
    margin: 20px 0;
    color: #6b7280;
    font-style: italic;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    padding: 35px 20px;
    text-align: center;
    color: #fff;
}

.footer-brand {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.footer-brand span {
    color: #fbbf24;
}

.footer-text {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-link {
    font-size: 13px;
    color: rgba(255,255,255,0.9);
    transition: all 0.2s ease;
}

.footer-link:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-copy {
    font-size: 12px;
    opacity: 0.7;
}

/* ==========================================================================
   EMPTY STATE
   ========================================================================== */

.empty-state {
    text-align: center;
    padding: 50px 20px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.empty-state-icon {
    font-size: 50px;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    color: #6b7280;
}

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */

@media (max-width: 480px) {
    .site-header {
        padding: 10px 16px;
    }
    
    .hero-section {
        padding: 24px 16px 16px;
    }
    
    .site-logo-text {
        font-size: 28px;
    }
    
    .search-section {
        padding: 16px;
    }
    
    .category-select {
        font-size: 15px;
        padding: 14px 45px;
    }
    
    .main-container {
        padding: 0 16px 30px;
    }
    
    .pro-card {
        padding: 14px 16px;
    }
    
    .pro-name {
        font-size: 14px;
    }
    
    .pro-btn {
        width: 40px;
        height: 40px;
    }
    
    .pro-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* ==========================================================================
   UTILITÁRIOS
   ========================================================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
