:root {
    /* Identidade reformulada: Gastronomia Vibrante + Glassmorphism (Vidro) */
    --brand-dark: transparent;   /* Transparente para o vídeo reinar */
    --brand-medium: rgba(30, 15, 10, 0.5); /* Fundo Secundário Translúcido */
    --card-bg: rgba(20, 10, 5, 0.65);      /* Cards tipo "vidro" escuro e quente */
    --card-border: rgba(255, 255, 255, 0.1);  /* Bordas suaves */
    
    --brand-accent: #FF5A36; /* Tom vibrante de Laranja/Tomate (Apelativo para Comida) */
    --brand-beige: #FFF1E6;  /* Bege super quente para as fichas */
    --brand-light: #FFFFFF;  /* Texto Claro */
    
    --text-primary: #FFFFFF;
    --text-secondary: #FFD6C2; /* Cinza foi substituído por um tom pêssego/salmão suave */
    
    --font-title: 'Montserrat', sans-serif;
    --font-inter: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-inter);
    background-color: var(--brand-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* --- FUNDO DE VÍDEO (GLASSMORPHISM) --- */
.bg-video {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw; height: 100vh;
    object-fit: cover;
    z-index: -2;
    filter: blur(8px) saturate(1.2); /* Desfocado pra virar vitral dinâmico */
}

.bg-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw; height: 100vh;
    background: rgba(10, 5, 0, 0.7); /* Película escura com leve tom marrom para proteger a leitura */
    z-index: -1;
}

.app-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px; 
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
}

/* --- HEADER / PERFIL ESTILO INSTAGRAM --- */
.header {
    text-align: center;
    margin-bottom: 24px;
    animation: fadeInDown 0.8s ease;
}

.profile-pic-container {
    position: relative;
    display: inline-block;
    margin-bottom: 12px;
}

.brand-logo-img {
    height: 96px; 
    width: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--brand-dark);
    box-shadow: 0 0 0 2px var(--card-border);
}

.header h1 {
    font-family: var(--font-inter);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* Verificado estilo IG */
.verified-badge {
    color: var(--brand-accent);
    width: 16px;
    height: 16px;
}

.brand-bio {
    font-family: var(--font-inter);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* --- SOCIAL ICONS --- */
.social-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 16px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08); 
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* --- BARRA DE PESQUISA --- */
.search-container {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.2s both;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    backdrop-filter: blur(12px); /* Efeito Vidro */
    -webkit-backdrop-filter: blur(12px);
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.search-header h3 { 
    font-size: 15px;
    font-weight: 600;
    color: var(--brand-beige); /* Toque do Linktree */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-title);
    margin-bottom: 0;
}

.search-input-wrapper {
    display: flex; align-items: center;
    background-color: #262626; /* Input padrão dark mode */
    border-radius: 8px; 
    padding: 12px;
}

.search-input-wrapper input {
    background: transparent; border: none; color: white;
    width: 100%; margin-left: 10px; font-family: var(--font-inter);
    outline: none; font-size: 14px;
}
.search-input-wrapper input::placeholder { color: var(--text-secondary); }

/* Filtros Rápidos / Pills */
.quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    justify-content: center;
}

.filter-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: 20px;
    font-family: var(--font-inter);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-pill:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.filter-pill.surprise-btn {
    background: rgba(255, 90, 54, 0.15);
    border-color: rgba(255, 90, 54, 0.3);
    color: var(--brand-accent);
    font-weight: 600;
}

.filter-pill.surprise-btn:hover {
    background: rgba(255, 90, 54, 0.25);
    transform: translateY(-2px) scale(1.05);
}

/* --- LISTA DE RESTAURANTES ESTILO LINKTREE / BENTO GRID --- */
.bento-grid-cortesias {
    margin-top: 12px; 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    grid-auto-rows: 120px; /* Altura base da grade */
    gap: 12px;
}

/* Encaixes do Bento Grid (Mosaico) para os 7 itens */
.bento-grid-cortesias .restaurant-item:nth-child(1) { grid-column: span 2; grid-row: span 1; } /* Largo */
.bento-grid-cortesias .restaurant-item:nth-child(2) { grid-column: span 1; grid-row: span 2; } /* Alto */
.bento-grid-cortesias .restaurant-item:nth-child(3) { grid-column: span 1; grid-row: span 1; } /* Quadrado */
.bento-grid-cortesias .restaurant-item:nth-child(4) { grid-column: span 1; grid-row: span 1; } /* Quadrado */
.bento-grid-cortesias .restaurant-item:nth-child(5) { grid-column: span 2; grid-row: span 1; } /* Largo */
.bento-grid-cortesias .restaurant-item:nth-child(6) { grid-column: span 1; grid-row: span 1; } /* Quadrado */
.bento-grid-cortesias .restaurant-item:nth-child(7) { grid-column: span 1; grid-row: span 1; } /* Quadrado */

.search-results-list {
    margin-top: 16px; 
    display: flex; 
    flex-direction: column; 
    gap: 12px;
}

/* Opcional: no celular pode manter assim, pois 2 colunas no bento fica bom, ou podemos colapsar
   mas como você quer bento, a tela com 2 colunas encaixa a estética Bento até no mobile!
*/

.restaurant-item {
    background-color: var(--card-bg);
    border-radius: 16px; 
    text-decoration: none; 
    color: var(--text-primary); 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-inter);
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--card-border);
}

.bento-grid-cortesias .restaurant-item {
    height: 100%;
}

.search-results-list .restaurant-item {
    border-radius: 12px; 
    height: auto;
}

.restaurant-item.active {
    grid-column: 1 / -1; 
}

/* Capa estilo Bento */
.bento-capa {
    position: relative;
    height: 100%;
    min-height: 120px;
    width: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    flex: 1;
}

.bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

.bento-info {
    position: relative;
    z-index: 2;
    padding: 12px;
    color: white;
}

.bento-info h4 {
    font-family: var(--font-title);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.2;
}

.badge {
    display: inline-block;
    background-color: var(--brand-beige);
    color: #000;
    font-family: var(--font-inter);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
}

.restaurant-item:hover:not(.active) { 
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(244, 235, 227, 0.2);
}

.restaurant-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

/* O chevron que gira quando abre */
.chevron-icon {
    width: 20px;
    opacity: 0.4;
    transition: transform 0.4s ease;
    margin-right: 8px;
}

.restaurant-item.active .chevron-icon {
    transform: rotate(180deg);
}

/* Ocultar conteúdo do acordeão por padrão */
.restaurant-content {
    max-height: 0;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.restaurant-item.active .restaurant-content {
    max-height: 400px;
    opacity: 1;
}

.content-inner {
    padding: 0 16px 16px 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.content-inner p {
    margin-bottom: 8px;
    line-height: 1.4;
}

.highlight-box {
    background-color: rgba(0, 0, 0, 0.25); /* Fundo escuro sutil para aumentar o contraste */
    border: 1px solid rgba(255, 90, 54, 0.2); /* Borda laranja bem fraquinha */
    border-radius: 8px;
    padding: 12px;
    margin-top: 10px;
    font-size: 13px;
    color: var(--brand-light); /* Garante que o texto seja branco perfeitamente legível */
}

.contact-btn {
    display: inline-block;
    width: 100%;
    margin-top: 12px;
    background-color: var(--brand-accent);
    color: #FFF;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.contact-btn:hover {
    background-color: #D63D13; /* Laranja/Vermelho quebrado mais escuro ao passar o mouse */
    transform: translateY(-2px);
}

.restaurant-img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 12px;
}

.restaurant-info {
    flex-grow: 1;
}

.restaurant-info h4 { 
    font-size: 15px; 
    font-weight: 600;
    margin-bottom: 2px; 
}
.restaurant-info p { 
    font-size: 12px; 
    opacity: 0.7; 
    font-weight: 500;
}

/* Ocultar inicialmente o search results geral e mostrar apenas quando pesquisa. Mas o Linktree mostra todos. Vamos mostrar todos e filtrar! */
.restaurant-item.hidden {
    display: none;
}

/* --- FOOTER --- */
.footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 40px;
    padding-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- LISTA DE SERVIÇOS TIPO ACORDEÃO (SAIBA MAIS / FAQ) --- */
.list-item-wrapper {
    background-color: transparent;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    cursor: pointer;
}

.list-item-wrapper:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}

.list-item-wrapper.active {
    background-color: var(--card-bg);
    border-color: var(--card-border);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    margin: 8px 0;
}

.list-item-header {
    display: flex;
    align-items: center;
    padding: 12px;
}

.item-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin-right: 16px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    background-color: var(--brand-medium);
    color: var(--brand-accent);
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.list-item-wrapper.active .item-avatar {
    background-color: var(--brand-accent);
    color: var(--brand-medium);
}

.item-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.item-info h4 {
    font-family: var(--font-title);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.item-info p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.action-text {
    font-family: var(--font-title);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--brand-accent);
    margin-top: 6px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.list-item-wrapper:hover .action-text { opacity: 1; }

.action-text svg { transition: transform 0.4s ease; }
.list-item-wrapper.active .action-text svg { transform: rotate(180deg); }

.list-item-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.list-item-wrapper.active .list-item-content {
    max-height: 300px;
    opacity: 1;
}

.list-item-content .content-inner {
    padding: 0 16px 20px 72px; /* Alinhado com o texto de cima, ignorando o circulo */
    color: var(--text-secondary);
}
