/* =========================================
   GastroGuia — main.css
   Paleta: Preto / Laranja / Branco
   ========================================= */

:root {
    --black:        #0a0a0a;
    --orange:       #FF5C00;
    --orange-light: #FF7A2F;
    --orange-muted: rgba(255, 92, 0, 0.12);
    --white:        #FAFAF8;
    --gray:         #1a1a1a;
    --gray-mid:     #2e2e2e;
    --gray-light:   #888888;
    --border:       #2a2a2a;
    --success:      #22c55e;
    --error:        #ef4444;
}

/* ========= RESET & BASE ========= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.5;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 3px; }

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }

/* ========= NAVBAR ========= */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 48px;
    height: 70px;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.nav-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px; letter-spacing: 2px; color: var(--white);
}
.nav-logo span { color: var(--orange); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
    color: var(--gray-light); font-size: 12px;
    font-weight: 500; letter-spacing: 1px; text-transform: uppercase;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--orange); }
.nav-cta {
    background: var(--orange); color: var(--black);
    padding: 10px 24px; border: none;
    font-weight: 700; font-size: 13px; letter-spacing: 0.5px;
    transition: background 0.2s;
}
.nav-cta:hover { background: var(--orange-light); }

/* ========= HERO ========= */
.hero {
    min-height: 100vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 100px 48px 80px;
    text-align: center;
    position: relative; overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(255,92,0,.14) 0%, transparent 65%),
        repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(255,92,0,.025) 60px, rgba(255,92,0,.025) 61px),
        repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(255,92,0,.025) 60px, rgba(255,92,0,.025) 61px);
}
.hero-tag {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--orange-muted); border: 1px solid rgba(255,92,0,.3);
    padding: 6px 16px; margin-bottom: 32px;
    font-family: 'Space Mono', monospace;
    font-size: 10px; color: var(--orange); letter-spacing: 2px; text-transform: uppercase;
}
.hero-tag::before {
    content: ''; width: 6px; height: 6px; background: var(--orange);
    border-radius: 50%; animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .5; transform: scale(.7); }
}
.hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(64px, 10vw, 140px);
    line-height: .95; letter-spacing: -1px; margin-bottom: 24px;
}
.hero h1 .line-orange { color: var(--orange); }
.hero h1 .line-stroke { -webkit-text-stroke: 2px var(--white); color: transparent; }
.hero-desc {
    max-width: 520px; font-size: 17px; font-weight: 300;
    color: var(--gray-light); line-height: 1.7; margin-bottom: 48px;
}
.hero-search {
    display: flex; width: 100%; max-width: 560px;
    border: 1px solid var(--border);
}
.hero-search input {
    flex: 1; padding: 16px 24px;
    background: var(--gray); border: none; outline: none;
    color: var(--white); font-family: 'DM Sans', sans-serif; font-size: 15px;
}
.hero-search input::placeholder { color: var(--gray-light); }
.hero-search button {
    padding: 16px 28px;
    background: var(--orange); border: none;
    color: var(--black); font-weight: 700; font-size: 14px; letter-spacing: .5px;
    transition: background .2s;
}
.hero-search button:hover { background: var(--orange-light); }
.hero-stats { display: flex; gap: 48px; margin-top: 64px; }
.stat { text-align: center; }
.stat-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 48px; color: var(--orange); line-height: 1;
}
.stat-label {
    font-size: 11px; color: var(--gray-light);
    text-transform: uppercase; letter-spacing: 1.5px; margin-top: 4px;
}
.hero-scroll {
    position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    color: var(--gray-light); font-family: 'Space Mono', monospace;
    font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
    animation: bounce 2s infinite;
}
.hero-scroll::after { content: ''; width: 1px; height: 40px; background: var(--orange); }
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* ========= SECTION COMMONS ========= */
.section { padding: 80px 48px; }
.section-label {
    font-family: 'Space Mono', monospace;
    font-size: 11px; color: var(--orange);
    letter-spacing: 3px; text-transform: uppercase;
    margin-bottom: 14px;
    display: flex; align-items: center; gap: 12px;
}
.section-label::before { content: ''; width: 32px; height: 1px; background: var(--orange); }
.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1; margin-bottom: 48px;
}

/* ========= FILTER TYPE ========= */
.filter-type {
    display: flex; margin-bottom: 40px;
    border: 1px solid var(--border); width: fit-content;
}
.filter-type-btn {
    padding: 14px 36px;
    background: transparent; border: none; border-right: 1px solid var(--border);
    color: var(--gray-light);
    font-family: 'DM Sans', sans-serif; font-weight: 500;
    font-size: 13px; letter-spacing: .5px; text-transform: uppercase;
    transition: all .25s;
}
.filter-type-btn:last-child { border-right: none; }
.filter-type-btn.active { background: var(--orange); color: var(--black); font-weight: 700; }
.filter-type-btn:not(.active):hover { color: var(--orange); }

/* ========= SUB TABS ========= */
.sub-tabs-wrap { min-height: 56px; margin-bottom: 40px; }
.sub-tabs {
    display: flex; gap: 10px; flex-wrap: wrap;
    opacity: 0; transform: translateY(10px);
    transition: opacity .35s ease, transform .35s ease;
}
.sub-tabs.visible { opacity: 1; transform: translateY(0); }
.sub-tabs.hidden { display: none; }
.sub-tab {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 20px;
    background: transparent; border: 1px solid var(--border);
    color: var(--gray-light);
    font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 13px;
    transition: all .2s;
}
.sub-tab .emoji { font-size: 16px; }
.sub-tab:hover { border-color: var(--orange); color: var(--orange); }
.sub-tab.active { background: var(--orange); border-color: var(--orange); color: var(--black); font-weight: 700; }

/* ========= RESULTS BAR ========= */
.results-bar {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px; padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.results-count {
    font-family: 'Space Mono', monospace;
    font-size: 12px; color: var(--gray-light);
}
.results-count span { color: var(--orange); }
.sort-select {
    background: var(--gray); border: 1px solid var(--border);
    color: var(--white); padding: 8px 14px;
    font-family: 'DM Sans', sans-serif; font-size: 13px;
    outline: none; cursor: pointer;
}

/* ========= ESTAB GRID ========= */
.estab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.card-animate {
    animation: cardIn .45s ease both;
}
@keyframes cardIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ========= ESTAB CARD ========= */
.estab-card {
    background: var(--gray); border: 1px solid var(--border);
    cursor: pointer; transition: all .3s; overflow: hidden;
}
.estab-card:hover {
    border-color: var(--orange);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(255,92,0,.15);
}
.estab-card:hover .card-overlay { opacity: 1; }

.card-img-wrap { position: relative; }
.card-img-bg {
    width: 100%; height: 200px;
    background: linear-gradient(135deg, #1a1a1a, #2e2e2e);
    display: flex; align-items: center; justify-content: center;
    font-size: 60px; overflow: hidden;
}
.card-img-bg img { width: 100%; height: 100%; object-fit: cover; }
.card-overlay {
    position: absolute; inset: 0;
    background: rgba(255,92,0,.15);
    opacity: 0; transition: opacity .3s;
    display: flex; align-items: center; justify-content: center;
}
.card-overlay span {
    background: var(--orange); color: var(--black);
    font-weight: 700; font-size: 12px; padding: 10px 20px; letter-spacing: .5px;
}
.card-tag {
    position: absolute; top: 14px; left: 14px;
    background: var(--orange); color: var(--black);
    font-family: 'Space Mono', monospace;
    font-size: 9px; padding: 4px 10px; letter-spacing: 1px; text-transform: uppercase;
}
.card-badge-new {
    position: absolute; top: 14px; right: 14px;
    background: var(--black); border: 1px solid var(--orange);
    color: var(--orange);
    font-family: 'Space Mono', monospace;
    font-size: 9px; padding: 3px 8px; letter-spacing: 1px; text-transform: uppercase;
}
.card-body { padding: 20px 22px 16px; }
.card-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 26px; letter-spacing: .5px; margin-bottom: 10px;
}
.card-info { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.card-info-row {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: var(--gray-light);
}
.card-rating { display: flex; align-items: center; gap: 6px; }
.stars { color: var(--orange); font-size: 13px; }
.rating-val {
    font-family: 'Space Mono', monospace;
    font-size: 12px; color: var(--white);
}
.card-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 22px;
    background: rgba(255,92,0,.04);
    border-top: 1px solid var(--border);
}
.card-footer-label {
    font-size: 11px; color: var(--gray-light);
    font-family: 'Space Mono', monospace;
    text-transform: uppercase; letter-spacing: 1px;
}
.card-open {
    font-size: 10px; font-weight: 700;
    padding: 3px 9px;
    font-family: 'Space Mono', monospace; letter-spacing: .5px;
}
.card-open.open   { color: var(--success); border: 1px solid rgba(34,197,94,.3); }
.card-open.closed { color: var(--error);   border: 1px solid rgba(239,68,68,.3); }

/* ========= EMPTY STATE ========= */
.empty-state { text-align: center; padding: 80px 24px; }
.empty-emoji { font-size: 64px; margin-bottom: 16px; }
.empty-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px; color: var(--gray-light); margin-bottom: 8px;
}
.empty-desc { color: var(--gray-light); font-size: 15px; }

/* ========= MODAL ========= */
.modal-overlay {
    position: fixed; inset: 0; z-index: 500;
    background: rgba(0,0,0,.87);
    backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    opacity: 0; pointer-events: none;
    transition: opacity .3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
    background: var(--gray); border: 1px solid var(--border);
    width: 100%; max-width: 760px; max-height: 90vh; overflow-y: auto;
    transform: translateY(30px) scale(.97);
    transition: transform .4s cubic-bezier(.34, 1.56, .64, 1);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }

.modal-header { height: 240px; position: relative; overflow: hidden; }
.modal-img-bg {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    display: flex; align-items: center; justify-content: center;
    font-size: 80px;
}
.modal-img-bg img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.modal-img-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent 30%, var(--gray) 100%);
}
.modal-close {
    position: absolute; top: 16px; right: 16px; z-index: 2;
    width: 40px; height: 40px;
    background: rgba(10,10,10,.8); border: 1px solid var(--border);
    color: var(--white); font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    transition: all .2s;
}
.modal-close:hover { background: var(--orange); border-color: var(--orange); color: var(--black); }

.modal-body { padding: 0 32px 32px; }
.modal-top {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 16px; margin-top: -16px; position: relative; margin-bottom: 20px;
}
.modal-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 44px; line-height: 1;
}
.modal-category {
    display: inline-block; margin-top: 6px;
    background: var(--orange); color: var(--black);
    font-family: 'Space Mono', monospace;
    font-size: 10px; padding: 4px 12px; letter-spacing: 1.5px; text-transform: uppercase;
}
.modal-rating-big {
    flex-shrink: 0;
    background: var(--black); border: 1px solid var(--orange);
    padding: 12px 18px; text-align: center;
}
.modal-rating-big .num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 40px; color: var(--orange); line-height: 1;
}
.modal-rating-big .stars-sm { color: var(--orange); font-size: 11px; }
.modal-rating-big .label-sm {
    font-size: 9px; color: var(--gray-light);
    font-family: 'Space Mono', monospace; letter-spacing: .5px;
}
.modal-divider { height: 1px; background: var(--border); margin: 0 0 20px; }

.modal-info-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 14px; margin-bottom: 22px;
}
.info-item {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px; background: rgba(255,255,255,.025);
    border: 1px solid var(--border);
}
.info-icon {
    width: 34px; height: 34px; flex-shrink: 0;
    background: var(--orange-muted); border: 1px solid rgba(255,92,0,.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
}
.info-label {
    font-family: 'Space Mono', monospace;
    font-size: 9px; color: var(--orange);
    text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 4px;
}
.info-value { font-size: 13px; color: var(--white); font-weight: 500; }

.modal-actions {
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    gap: 10px; margin-bottom: 24px;
}
.action-btn {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 14px 10px;
    border: 1px solid var(--border); background: transparent;
    color: var(--gray-light);
    font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 500;
    transition: all .2s;
}
.action-btn .action-icon { font-size: 20px; }
.action-btn:hover { border-color: var(--orange); color: var(--orange); }
.action-btn.primary {
    background: var(--orange); border-color: var(--orange);
    color: var(--black); font-weight: 700;
}
.action-btn.primary:hover { background: var(--orange-light); }

/* ========= QR SECTION ========= */
.qr-section {
    background: var(--black); border: 1px solid var(--border);
    padding: 22px; display: flex; align-items: center; gap: 22px;
}
.qr-code-wrap {
    flex-shrink: 0; width: 108px; height: 108px;
    background: var(--white); padding: 6px;
    display: flex; align-items: center; justify-content: center;
}
.qr-code-wrap img { width: 96px; height: 96px; }
.qr-promo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px; color: var(--orange); margin-bottom: 6px;
}
.qr-desc { font-size: 13px; color: var(--gray-light); line-height: 1.55; }
.qr-badge {
    display: inline-block; margin-top: 10px;
    background: rgba(255,92,0,.12); border: 1px solid rgba(255,92,0,.3);
    color: var(--orange);
    font-family: 'Space Mono', monospace;
    font-size: 12px; padding: 4px 12px; letter-spacing: 1.5px;
}

/* ========= LOADING ========= */
.loading-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.skeleton-card {
    background: var(--gray); border: 1px solid var(--border);
    overflow: hidden;
}
.skeleton-img {
    width: 100%; height: 200px;
    background: linear-gradient(90deg, var(--gray) 25%, var(--gray-mid) 50%, var(--gray) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
}
.skeleton-body { padding: 20px 22px 16px; }
.skeleton-line {
    height: 14px; background: var(--gray-mid); margin-bottom: 10px;
    background: linear-gradient(90deg, var(--gray) 25%, var(--gray-mid) 50%, var(--gray) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
}
.skeleton-line.lg { height: 26px; width: 70%; }
.skeleton-line.sm { width: 50%; }
@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========= FOOTER ========= */
footer {
    padding: 40px 48px;
    border-top: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
}
.footer-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px; letter-spacing: 2px;
}
.footer-logo span { color: var(--orange); }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a {
    font-size: 11px; color: var(--gray-light);
    font-family: 'Space Mono', monospace;
    transition: color .2s;
}
.footer-links a:hover { color: var(--orange); }
.footer-copy {
    font-size: 11px; color: var(--gray-light);
    font-family: 'Space Mono', monospace;
}

/* ========= UTILITY ========= */
.hidden { display: none !important; }

/* ========= RESPONSIVE ========= */
@media (max-width: 900px) {
    nav { padding: 0 20px; }
    .nav-links { display: none; }
    .hero { padding: 90px 20px 60px; }
    .hero-stats { gap: 20px; flex-wrap: wrap; justify-content: center; }
    .section { padding: 60px 20px; }
    .filter-type { flex-wrap: wrap; }
    .modal-info-grid { grid-template-columns: 1fr; }
    .modal-actions { grid-template-columns: 1fr 1fr; }
    .modal-top { flex-direction: column; }
    .qr-section { flex-direction: column; }
    footer { flex-direction: column; gap: 24px; text-align: center; }
}
