/* ── Variáveis ── */
:root {
    --primary-color: #0056b3;
    --primary-hover: #004494;
    --bg-color: #f4f7f6;
    --surface-color: #ffffff;
    --text-color: #2c3e50;
    --border-color: #d1d8e0;
    --accent-gradient: linear-gradient(135deg, #0056b3 0%, #00a8ff 100%);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 20px rgba(0, 86, 179, 0.18);
}

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

body {
    font-family: 'DM Sans', Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

/* ── Fundo com textura sutil ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 10%, rgba(0, 86, 179, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 90%, rgba(0, 168, 255, 0.07) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}

/* ── Wrapper Central ── */
.page-wrapper {
    position: relative;
    z-index: 1;
    max-width: 480px;
    margin: 0 auto;
    padding: 48px 20px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* ── Logo / Avatar ── */
.logo-wrapper {
    width: auto;
    height: auto;
}

.logo-image {
    width: 80px !important;
    height: 80px !important;
    display: block;
    object-fit: contain;
    margin: 0 auto;
}

.logo-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 3px solid var(--surface-color);
}

/* Placeholder para quando não há imagem real */
.logo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8f0fb 0%, #cfe0f8 100%);
    border: 3px solid var(--surface-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -1px;
}

/* ── Informações do Estabelecimento ── */
.info-block {
    text-align: center;
    margin-bottom: 36px;
    animation: fadeDown 0.6s 0.1s ease both;
}

.info-block .estabelecimento-nome {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.3px;
    line-height: 1.2;
    margin-bottom: 6px;
}

.info-block .estabelecimento-tipo {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.info-block .estabelecimento-desc {
    font-size: 14px;
    font-weight: 300;
    color: #5a6a7a;
    max-width: 320px;
    margin: 0 auto 14px;
}

/* Linha divisória fina */
.divider {
    width: 40px;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 2px;
    margin: 0 auto;
}

/* ── Detalhes (endereço, horário) ── */
.detail-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #7a8a9a;
    margin-top: 14px;
}

.detail-row + .detail-row {
    margin-top: 6px;
}

.detail-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.7;
}

/* ── Links ── */
.links-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px 20px;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
    animation: fadeUp 0.5s ease both;
}

.link-card:nth-child(1) { animation-delay: 0.15s; }
.link-card:nth-child(2) { animation-delay: 0.22s; }
.link-card:nth-child(3) { animation-delay: 0.29s; }
.link-card:nth-child(4) { animation-delay: 0.36s; }

.link-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 8px 0 0 8px;
    background: var(--card-accent, var(--accent-gradient));
    opacity: 0;
    transition: opacity 0.2s ease;
}

.link-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 86, 179, 0.2);
}

.link-card:hover::before {
    opacity: 1;
}

/* Ícone do link */
.link-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--icon-bg, #eaf4ff);
}

.link-icon-wrap svg {
    width: 22px;
    height: 22px;
}

/* Texto do link */
.link-text {
    flex: 1;
}

.link-label {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
    display: block;
    line-height: 1.3;
}

.link-sub {
    font-size: 12px;
    color: #8a9bae;
    font-weight: 300;
}

/* Seta */
.link-arrow {
    color: var(--border-color);
    flex-shrink: 0;
    transition: color 0.2s, transform 0.2s;
}

.link-card:hover .link-arrow {
    color: var(--primary-color);
    transform: translateX(3px);
}

/* ── Variantes de cor por rede ── */
.link-card--instagram {
    --icon-bg: #fde8f5;
    --card-accent: linear-gradient(135deg, #c13584, #e1306c);
}
.link-card--instagram .link-icon-wrap svg { color: #c13584; }

.link-card--whatsapp {
    --icon-bg: #e6f9ee;
    --card-accent: linear-gradient(135deg, #128c7e, #25d366);
}
.link-card--whatsapp .link-icon-wrap svg { color: #128c7e; }

.link-card--ifood {
    --icon-bg: #ffeae8;
    --card-accent: linear-gradient(135deg, #ea1d2c, #ff6b6b);
}
.link-card--ifood .link-icon-wrap svg { color: #ea1d2c; }

.link-card--cardapio {
    --icon-bg: #eaf4ff;
    --card-accent: var(--accent-gradient);
}
.link-card--cardapio .link-icon-wrap svg { color: var(--primary-color); }

/* ── Rodapé ── */
.page-footer {
    margin-top: 44px;
    font-size: 12px;
    color: #b0bec8;
    text-align: center;
    letter-spacing: 0.5px;
}

/* ── Animações ── */
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

/* ── Mobile ── */
@media screen and (max-width: 520px) {
    .page-wrapper {
        padding: 36px 16px 48px;
    }
    .info-block .estabelecimento-nome {
        font-size: 22px;
    }
}
