/* =============================================
   TEMA — edite só aqui para mudar as cores
   ============================================= */
:root {
    --bg: #b4b4b4;
    --main-card-bg: #ffffff;
    --card-border: #e0e0e0;
    --project-bg: #394043;
    --project-text: #ffffff;
    --text-primary: #111111;
    --text-muted: #555555;
    --link-hover: #000000;
    --avatar-size: 96px;
}

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

body {
    background: var(--bg);
    font-family: "DM Sans", system-ui, sans-serif;
    color: var(--text-primary);
    min-height: 100vh;
}

/* =============================================
   PAGE WRAPPER — posiciona card e QR
   ============================================= */
.page-wrapper {
    max-width: 576px;
    margin: 0 auto;
    padding: 2rem 1rem 0;
    position: relative;
}

/* =============================================
   CARD PRINCIPAL
   ============================================= */
.container {
    background: var(--main-card-bg);
    border-radius: 20px 20px 0 0;
    padding: 2rem 1.5rem 4rem;
    min-height: calc(100vh - 2rem);
}

/* =============================================
   PERFIL
   ============================================= */
.profile {
    text-align: center;
    margin-bottom: 1.5rem;
}

.avatar {
    width: var(--avatar-size);
    height: var(--avatar-size);
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.75rem;
    border: 3px solid var(--card-border);
}

.profile h1 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.profile p {
    font-size: 1rem;
    color: var(--text-muted);
}

/* =============================================
   ÍCONES SOCIAIS
   ============================================= */
.socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.socials a {
    color: var(--text-primary);
    font-size: 1.6rem;
    transition:
        color 0.2s,
        transform 0.2s;
    text-decoration: none;
}

.socials a:hover {
    color: var(--link-hover);
    transform: scale(1.15);
}

/* =============================================
   SEÇÃO DE PROJETOS
   ============================================= */
.section-title {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.projects {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* =============================================
   CARD — VARIANTE GRANDE (thumb larga, em cima)
   ============================================= */
.card {
    background: var(--project-bg);
    color: var(--project-text);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    transition:
        opacity 0.2s,
        transform 0.2s;
}

.card:hover {
    opacity: 0.9;
}

.card-thumb-large {
    width: calc(100% - 28px);
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    margin: 14px 14px 0;
    border-radius: 6px;
}

.card-body {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 600;
    text-align: center;
}

/* Large card overrides */
.card:not(.card-small) .card-body {
    padding: 1.1rem 1.5rem;
}

.card:not(.card-small) .card-title {
    font-size: 1.26rem;
}

/* =============================================
   CARD — VARIANTE PEQUENA (thumb lateral)
   ============================================= */
.card-small .card-body {
    padding: 0;
}

.card-small-inner {
    display: grid;
    grid-template-columns: 72px 1fr;
    align-items: center;
    width: 100%;
}

@media (max-width: 480px) {
    .card-small-inner {
        grid-template-columns: 52px 1fr;
    }

    .card-thumb-small-wrap {
        padding: 6px 0 6px 6px;
    }
}

.card-thumb-small {
    width: 56px;
    height: 56px;
    object-fit: cover;
    object-position: center;
    border-radius: 4px;
    display: block;
}

.card-thumb-small-wrap {
    padding: 8px 0 8px 8px;
}

.card-small-text {
    padding: 0 1rem;
    flex: 1;
    text-align: center;
}

/* =============================================
   QR CODE
   ============================================= */
.qr-wrapper {
    position: fixed;
    bottom: -250px;
    right: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.3s;
}

@media (min-width: 1022px) {
    .qr-wrapper {
        bottom: 2rem;
        opacity: 1;
    }
}

.qr-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.03em;
}

.qr-code {
    width: 140px;
    height: 140px;
    border-radius: 0;
    opacity: 0.85;
}

/* =============================================
   RODAPÉ
   ============================================= */
.footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}
