/* =========================================================================
   DESIGN SYSTEM - DELÍCIAS MINEIRAS (bio.css)
   ========================================================================= */

:root {
    /* Cores usadas no bio.html + botão cardápio (comentado) */
    --color-primary: #d35400;
    --color-primary-hover: #ba4a00;
    --color-primary-light: #fdf2e9;
    /* usado pelo btn-menu (comentado) */
    --color-white: #ffffff;
    --color-border: #ebdcd0;
    --font-main: 'Outfit', sans-serif;
}

/* =========================================================================
   RESETS E CONFIGURAÇÕES GERAIS
   ========================================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
}

body {
    background-color: #FAF8F5;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 32px 16px 40px 16px;
    font-family: var(--font-main, 'Outfit', sans-serif);
    color: #2c3e50;
    -webkit-font-smoothing: antialiased;
}

/* Container Principal Slim Mobile */
.links-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
    animation: fadeIn 0.4s ease-out forwards;
    will-change: opacity, transform;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Badge no Topo */
.top-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: rgba(211, 84, 0, 0.08);
    color: var(--color-primary, #d35400);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 14px;
    letter-spacing: 0.2px;
}

/* Foto de Perfil */
.profile-pic-wrapper {
    margin-bottom: 12px;
}

.profile-pic {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.store-name {
    font-size: 1.45rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 4px;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.store-desc {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 14px;
    font-weight: 400;
    line-height: 1.4;
    padding: 0 8px;
}

/* Barra de Prova Social */
.social-proof-bar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    background-color: #ffffff;
    border: 1px solid #ebdcd0;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.76rem;
    font-weight: 500;
    color: #4a5568;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    margin-bottom: 12px;
    max-width: 100%;
}

.social-proof-bar .stars {
    color: #f1c40f;
    font-size: 0.72rem;
}

/* Card de Horário de Atendimento */
.schedule-card {
    background-color: #ffffff;
    border: 1px solid #ebdcd0;
    border-radius: 16px;
    padding: 12px 16px;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(211, 84, 0, 0.04);
    text-align: left;
    width: 100%;
}

.schedule-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(235, 220, 208, 0.8);
}

.schedule-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #2c3e50;
}

.schedule-title i {
    color: var(--color-primary, #d35400);
    font-size: 0.88rem;
}

/* Pill de Status em Tempo Real */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.status-pill.open {
    background-color: rgba(39, 174, 96, 0.12);
    color: #1e8449;
    border: 1px solid rgba(39, 174, 96, 0.25);
}

.status-pill.delivery-only {
    background-color: rgba(211, 84, 0, 0.12);
    color: #ba4a00;
    border: 1px solid rgba(211, 84, 0, 0.25);
}

.status-pill.closed {
    background-color: rgba(149, 165, 166, 0.15);
    color: #5d6d7e;
    border: 1px solid rgba(149, 165, 166, 0.25);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.status-pill.open .status-dot {
    background-color: #27ae60;
    box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7);
    animation: pulse-green 1.8s infinite;
}

.status-pill.delivery-only .status-dot {
    background-color: #d35400;
    box-shadow: 0 0 0 0 rgba(211, 84, 0, 0.7);
    animation: pulse-orange 1.8s infinite;
}

.status-pill.closed .status-dot {
    background-color: #95a5a6;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.6);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(39, 174, 96, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0);
    }
}

@keyframes pulse-orange {
    0% {
        box-shadow: 0 0 0 0 rgba(211, 84, 0, 0.6);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(211, 84, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(211, 84, 0, 0);
    }
}

/* Lista de Dias e Horários */
.schedule-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.schedule-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.76rem;
    color: #4a5568;
    line-height: 1.4;
}

.schedule-row .day-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.schedule-row .hours-val {
    font-weight: 600;
    color: #2c3e50;
}

.schedule-row.sunday .badge-delivery {
    background-color: rgba(211, 84, 0, 0.08);
    color: #d35400;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 4px;
}

.schedule-row.saturday .hours-val {
    color: #e74c3c;
    font-weight: 600;
}

/* Wrapper dos Links */
.links-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

/* Botões com Área de Toque Padrão Mobile (56px) */
.link-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 56px;
    padding: 12px 16px;
    border-radius: 14px;
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
}

.link-btn:active {
    transform: scale(0.98);
}

@media (hover: hover) {
    .link-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    }
}

.btn-left {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    flex: 1;
    min-width: 0;
}

.btn-icon {
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.btn-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.btn-title {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-subtitle {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.88;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-arrow {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-left: 8px;
    flex-shrink: 0;
}

/* Botões Específicos */
.btn-whatsapp {
    background-color: #25D366;
    animation: pulseSubtle 2.5s infinite;
    will-change: box-shadow;
    /* isola em layer GPU para evitar repaint global */
}

@keyframes pulseSubtle {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.btn-menu {
    background-color: var(--color-primary, #d35400);
}

.btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.btn-facebook {
    background-color: #1877F2;
}

.btn-maps {
    background-color: #34A853;
}

.btn-ifood {
    background-color: #EA1D2C;
}

/* Rodapé Mobile */
.footer-info {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    width: 100%;
}

/* Container do Mapa no Rodapé */
.map-container {
    width: 100%;
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #ebdcd0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin: 6px 0 4px 0;
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Placeholder do mapa antes do lazy load */
.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #f0ece8;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.map-placeholder:hover {
    background-color: #e8e3de;
}

.map-placeholder-icon {
    font-size: 2rem;
    color: #34A853;
}

.map-placeholder-text {
    font-size: 0.82rem;
    font-weight: 500;
    color: #6c757d;
}

.location-info {
    font-size: 0.78rem;
    font-weight: 500;
    color: #6c757d;
}

.footer-logo {
    font-size: 0.75rem;
    color: #a0aec0;
    font-weight: 400;
}

/* Telas muito pequenas (< 360px) */
@media (max-width: 360px) {
    body {
        padding: 24px 12px 32px 12px;
    }

    .store-name {
        font-size: 1.3rem;
    }

    .btn-title {
        font-size: 0.86rem;
    }

    .btn-subtitle {
        font-size: 0.7rem;
    }

    .link-btn {
        padding: 10px 12px;
        min-height: 52px;
    }
}
