@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

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

:root {
    --red-dark:  #7A0A0A;
    --red-main:  #A01010;
    --red-light: #C0392B;
    --white:     #ffffff;
    --gray-100:  #f7f7f7;
    --gray-200:  #eeeeee;
    --gray-500:  #9e9e9e;
    --gray-700:  #444444;
    --green-wa:  #25D366;
    --green-wa-dark: #1ebe57;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.12);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.18);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.28);
    --radius:    16px;
    --radius-sm: 10px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', Arial, sans-serif;
    min-height: 100vh;
    background: linear-gradient(145deg, var(--red-dark) 0%, var(--red-main) 45%, var(--red-light) 100%);
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 24px 16px 48px;
    color: var(--gray-700);
}

/* ── Card principal ─────────────────────────── */

.card {
    width: 100%;
    max-width: 420px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: fadeUp .5s ease both;
}

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

/* ── Header ─────────────────────────────────── */

.card-header {
    background: linear-gradient(160deg, var(--red-dark) 0%, var(--red-light) 100%);
    padding: 36px 32px 28px;
    text-align: center;
    position: relative;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 28px;
    background: var(--white);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.avatar-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

.avatar-wrap img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.9);
    box-shadow: 0 4px 20px rgba(0,0,0,0.35);
    display: block;
    object-fit: cover;
}

.avatar-badge {
    position: absolute;
    bottom: 2px; right: 2px;
    width: 22px; height: 22px;
    background: var(--green-wa);
    border-radius: 50%;
    border: 2px solid var(--white);
    display: flex; align-items: center; justify-content: center;
}

.avatar-badge svg { width: 11px; height: 11px; fill: #fff; }

.card-header h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.3px;
    margin-bottom: 6px;
}

.card-header p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.82);
    font-weight: 400;
    line-height: 1.5;
    max-width: 280px;
    margin: 0 auto;
}

/* ── Body ───────────────────────────────────── */

.card-body {
    padding: 8px 24px 28px;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--gray-500);
    margin: 20px 0 14px;
}

.section-label::before,
.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

/* ── Botões de cidade ───────────────────────── */

.links { display: flex; flex-direction: column; gap: 10px; }

.link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: var(--gray-100);
    border: 1.5px solid var(--gray-200);
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all .2s ease;
    position: relative;
    overflow: hidden;
}

.link::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--red-main), var(--red-light));
    border-radius: 0 2px 2px 0;
}

.link:hover {
    background: var(--white);
    border-color: var(--red-light);
    box-shadow: var(--shadow-sm);
    transform: translateX(3px);
    color: var(--red-main);
}

.link:active { transform: translateX(1px) scale(0.99); }

.link-icon {
    width: 36px; height: 36px;
    background: var(--green-wa);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background .2s;
}

.link:hover .link-icon { background: var(--green-wa-dark); }

.link-icon svg { width: 18px; height: 18px; fill: #fff; }

.link-text { flex: 1; }
.link-city  { display: block; font-size: 0.875rem; font-weight: 600; }
.link-sub   { display: block; font-size: 0.7rem; color: var(--gray-500); font-weight: 400; margin-top: 1px; }

.link-arrow { color: var(--gray-500); transition: color .2s; }
.link:hover .link-arrow { color: var(--red-light); }

/* ── Mensagem vazia ─────────────────────────── */

.empty {
    text-align: center;
    padding: 32px 16px;
    color: var(--gray-500);
    font-size: 0.875rem;
    line-height: 1.6;
}

.empty svg { width: 40px; height: 40px; fill: var(--gray-200); margin-bottom: 12px; }

/* ── Footer ─────────────────────────────────── */

.card-footer {
    border-top: 1px solid var(--gray-200);
    padding: 14px 24px;
    text-align: center;
    font-size: 0.7rem;
    color: var(--gray-500);
}

.card-footer a { color: var(--red-main); text-decoration: none; font-weight: 500; }
.card-footer a:hover { text-decoration: underline; }

/* ── Responsivo ─────────────────────────────── */

@media (max-width: 480px) {
    body { padding: 16px 12px 40px; }
    .card-header { padding: 28px 20px 24px; }
    .card-body { padding: 8px 16px 24px; }
    .card-footer { padding: 12px 16px; }
}
