/*
 * Ocioso — nova home (header, Top 3, lista "Todos os links", rodapés).
 * Especificação: PROMPT-Claude-Code-Ocioso-Home.md. Só a home (home.php) carrega este
 * arquivo; permalink e /termos continuam em oc-redesign.css.
 *
 * Cor de destaque: tudo que é azul usa as variáveis --oc-a*, trocadas por dia da semana
 * (classe day-1..day-7 no <html>, calculada no servidor em America/Sao_Paulo).
 * Desktop >= 768px; mobile < 768px; Top 3 empilha abaixo de 1100px.
 */

:root {
    --oc-a: #3B82F6;
    --oc-a-rgb: 59, 130, 246;
    --oc-a-dark: #2563EB;
    --oc-a-light: #60A5FA;
    --oc-a-light-rgb: 96, 165, 250;
}

html.day-2 { --oc-a: #8B5CF6; --oc-a-rgb: 139, 92, 246;  --oc-a-dark: #7C3AED; --oc-a-light: #A78BFA; --oc-a-light-rgb: 167, 139, 250; }
html.day-3 { --oc-a: #EC4899; --oc-a-rgb: 236, 72, 153;  --oc-a-dark: #DB2777; --oc-a-light: #F472B6; --oc-a-light-rgb: 244, 114, 182; }
html.day-4 { --oc-a: #F97316; --oc-a-rgb: 249, 115, 22;  --oc-a-dark: #EA580C; --oc-a-light: #FB923C; --oc-a-light-rgb: 251, 146, 60; }
html.day-5 { --oc-a: #10B981; --oc-a-rgb: 16, 185, 129;  --oc-a-dark: #059669; --oc-a-light: #34D399; --oc-a-light-rgb: 52, 211, 153; }
html.day-6 { --oc-a: #06B6D4; --oc-a-rgb: 6, 182, 212;   --oc-a-dark: #0891B2; --oc-a-light: #22D3EE; --oc-a-light-rgb: 34, 211, 238; }
html.day-7 { --oc-a: #EF4444; --oc-a-rgb: 239, 68, 68;   --oc-a-dark: #DC2626; --oc-a-light: #F87171; --oc-a-light-rgb: 248, 113, 113; }

/* ---------- base ---------- */

/* Fora da moldura: quase preto com um brilho da cor do dia no canto superior esquerdo
   (valores medidos na imagem de referência). */
body.oc-home {
    margin: 0;
    background: radial-gradient(ellipse 1000px 350px at 380px 0, rgba(var(--oc-a-light-rgb), .07) 0%, rgba(var(--oc-a-light-rgb), .066) 13%, rgba(var(--oc-a-light-rgb), .062) 22%, rgba(var(--oc-a-light-rgb), .045) 37%, rgba(var(--oc-a-light-rgb), .037) 42%, rgba(var(--oc-a-light-rgb), .008) 62%, rgba(var(--oc-a-light-rgb), .002) 75%, transparent 100%) no-repeat, #06060C;
    color: #fff;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Moldura: a página inteira (header, feed e rodapés) fica num cartão de até 1440px, centralizado.
   overflow:clip (e não hidden) recorta nos cantos arredondados sem quebrar o header sticky. */
.oc-frame {
    width: min(1440px, calc(100% - 32px));
    margin: 25px auto;
    background: #0B0B16;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 22px;
    overflow: clip;
}

.oc-home *,
.oc-home *::before,
.oc-home *::after { box-sizing: border-box; }

.oc-home a { color: inherit; text-decoration: none; }
.oc-home img { display: block; }
.oc-home button { font-family: inherit; }
.oc-home :focus-visible { outline: 2px solid rgba(var(--oc-a-rgb), .9); outline-offset: 2px; }

.oc-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* números (ranking e contador) */
.oc-num { font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif; font-weight: 900; }

/* ---------- header ---------- */

.oc-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 34px;
    background: rgba(11, 11, 22, .82);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.oc-logo { display: flex; align-items: center; gap: 10px; color: #fff; }

.oc-logo-dot {
    flex: none;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--oc-a);
    box-shadow: 0 0 16px 2px rgba(var(--oc-a-rgb), .8);
}

.oc-logo-txt { font: 800 25px/1 'Plus Jakarta Sans', sans-serif; letter-spacing: -.03em; }

.oc-header-right { display: flex; align-items: center; gap: 22px; }

.oc-count {
    height: 40px;
    padding: 0 16px 0 14px;
    border-radius: 11px;
    background: rgba(var(--oc-a-rgb), .08);
    border: 1px solid rgba(var(--oc-a-rgb), .22);
    display: flex;
    align-items: center;
    gap: 12px;
}

.oc-count-lbl { font: 500 13px/1 'Plus Jakarta Sans', sans-serif; color: #9CA3AF; white-space: nowrap; }

.oc-count-pt {
    flex: none;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--oc-a);
    box-shadow: 0 0 8px rgba(var(--oc-a-rgb), .9);
}

.oc-count-val { display: flex; align-items: baseline; gap: 6px; }

.oc-count-n {
    font: 900 26px/1 'Outfit', 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -.03em;
    color: var(--oc-a);
    text-shadow: 0 0 16px rgba(var(--oc-a-rgb), .75);
}

.oc-count-u { font: 600 13px/1 'Plus Jakarta Sans', sans-serif; color: #E5E7EB; white-space: nowrap; }
.oc-count-u--m { display: none; }

.oc-cta {
    height: 40px;
    padding: 0 20px;
    border-radius: 11px;
    background: var(--oc-a);
    color: #fff;
    font: 700 14px/1 'Plus Jakarta Sans', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 8px 24px -8px rgba(var(--oc-a-rgb), .9);
    transition: background .15s;
}

.oc-home .oc-cta:hover { background: var(--oc-a-dark); color: #fff; }
.oc-cta svg { flex: none; width: 16px; height: 16px; }
.oc-cta-txt--m { display: none; }

/* ---------- títulos de seção ---------- */

.oc-sec-title {
    margin: 0;
    font: 700 13px 'Plus Jakarta Sans', sans-serif;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #9CA3AF;
}

/* ---------- play (overlay de vídeo) ---------- */

.oc-play {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.oc-play span {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    border: 1.5px solid rgba(255, 255, 255, .55);
}

.oc-play svg { width: 26px; height: 26px; margin-left: 3px; color: #fff; }

/* ---------- Top 3 ---------- */

.oc-top { padding: 40px 44px 0 60px; }
.oc-top .oc-sec-title { margin-bottom: 22px; }

.oc-top-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 52px;
}

.oc-t { position: relative; }

.oc-t-glow {
    position: absolute;
    left: -6px;
    top: 8%;
    width: 78%;
    height: 84%;
    z-index: 0;
    border-radius: 60px;
    background: radial-gradient(circle at 30% 45%, rgba(var(--oc-a-rgb), .45), rgba(var(--oc-a-light-rgb), .22) 45%, transparent 72%);
    filter: blur(30px);
    pointer-events: none;
}

.oc-t-num {
    position: absolute;
    left: -30px;
    top: 44%;
    transform: translateY(-50%);
    z-index: 3;
    pointer-events: none;
    font-size: 150px;
    line-height: .8;
    letter-spacing: -.06em;
    color: var(--oc-a);
    text-shadow: 0 0 26px rgba(var(--oc-a-rgb), .85), 0 0 8px rgba(var(--oc-a-light-rgb), .6);
}

.oc-t-card {
    position: relative;
    z-index: 2;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(18, 18, 31, .85);
    border: 1px solid rgba(255, 255, 255, .10);
    box-shadow: 0 20px 48px -24px rgba(0, 0, 0, .8);
}

.oc-t-media { position: relative; aspect-ratio: 16 / 9; background: #12121F; overflow: hidden; }

.oc-t-media > a:first-child { position: absolute; inset: 0; display: block; }

.oc-t-media img.oc-t-img { width: 100%; height: 100%; object-fit: cover; }

.oc-t-media::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(8, 8, 15, .3) 0%, transparent 35%, transparent 60%, rgba(8, 8, 15, .6) 100%);
}

.oc-t-blog-av {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, .85);
    background: #12121F;
}

.oc-t-blog-av img { width: 100%; height: 100%; object-fit: cover; }

.oc-t-body { padding: 16px 16px 12px 40px; }

.oc-t-title {
    margin: 0;
    min-height: 40px;
    font: 600 15px/1.36 'Plus Jakarta Sans', sans-serif;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-wrap: pretty;
}

.oc-t-foot { margin-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }

.oc-t-blog {
    min-width: 0;
    font: 500 12px/1.2 'Plus Jakarta Sans', sans-serif;
    color: #9CA3AF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oc-t-share { flex: none; display: flex; align-items: center; gap: 2px; }

.oc-sbtn {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: #8A93B0;
    transition: background .15s, color .15s;
}

.oc-sbtn:hover { background: rgba(255, 255, 255, .08); }
.oc-sbtn img { width: 17px; height: 17px; object-fit: contain; }
.oc-sbtn svg { width: 17px; height: 17px; }
.oc-sbtn.is-ok { color: #4ADE80; }

.oc-ic-link { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }

/* ---------- Todos os links (lista) ---------- */

.oc-all { padding: 52px 44px 44px; }
.oc-all .oc-sec-title { margin-bottom: 14px; padding-left: 4px; }

.oc-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(560px, 1fr));
    column-gap: 28px;
}

.oc-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 44px 12px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    border-radius: 12px;
}

.oc-row:hover { background: rgba(255, 255, 255, .035); }

.oc-r-num {
    flex: none;
    width: 44px;
    text-align: right;
    font-size: 30px;
    line-height: 1;
    letter-spacing: -.05em;
    color: var(--oc-a);
    text-shadow: 0 0 14px rgba(var(--oc-a-rgb), .6);
}

/* numeração vai até o final da lista; só encolhe a partir de 4 dígitos (1000+, histórico de blog grande) */
.oc-r-num--xl { font-size: 22px; }

.oc-r-thumb {
    position: relative;
    flex: none;
    width: 128px;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    background: #12121F;
}

.oc-r-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.oc-r-thumb.is-video::after { content: ''; position: absolute; inset: 0; background: rgba(8, 8, 15, .2); pointer-events: none; }
.oc-r-thumb .oc-play span { width: 28px; height: 28px; background: rgba(255, 255, 255, .18); border-width: 1px; }
.oc-r-thumb .oc-play svg { width: 13px; height: 13px; margin-left: 2px; }

.oc-r-blog {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    border: 1.5px solid rgba(255, 255, 255, .7);
    background: #12121F;
}

.oc-r-blog img { width: 100%; height: 100%; object-fit: cover; }

.oc-r-title {
    flex: 1;
    min-width: 0;
    margin: 0;
    font: 500 14px/1.4 'Plus Jakarta Sans', sans-serif;
    color: #F3F4F6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* botão de pontinhos + menu de compartilhar */

.oc-more { position: absolute; right: 6px; bottom: 6px; }

.oc-dots {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #5E6785;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.oc-dots:hover { background: rgba(255, 255, 255, .06); color: #8A93B0; }
.oc-dots[aria-expanded="true"] { background: rgba(var(--oc-a-rgb), .14); color: #8A93B0; }
.oc-dots svg { width: 14px; height: 10px; }

.oc-menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 6px);
    z-index: 40;
    width: 196px;
    padding: 6px;
    border-radius: 14px;
    background: rgba(22, 22, 38, .97);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, .10);
    box-shadow: 0 18px 44px -12px rgba(0, 0, 0, .85);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.oc-menu[hidden] { display: none; }
.oc-menu.is-down { bottom: auto; top: calc(100% + 6px); }

.oc-home .oc-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    font: 500 13px/1 'Plus Jakarta Sans', sans-serif;
    color: #E5E7EB;
    text-align: left;
    cursor: pointer;
}

.oc-home .oc-menu-item:hover,
.oc-home .oc-menu-item:focus-visible { background: rgba(255, 255, 255, .06); }
.oc-menu-item img { width: 17px; height: 17px; object-fit: contain; flex: none; }
.oc-menu-item svg { width: 17px; height: 17px; flex: none; }
.oc-menu-item .oc-ic-link { stroke-width: 2.2; }
.oc-home .oc-menu-item.is-ok { color: #4ADE80; }

.oc-menu-sep { height: 1px; margin: 3px 4px; background: rgba(255, 255, 255, .08); }

.oc-empty { grid-column: 1 / -1; margin: 24px 4px; font: 500 14px/1.5 'Plus Jakarta Sans', sans-serif; color: #9CA3AF; }

/* ---------- rodapé de parceiros ---------- */

.oc-partners {
    padding: 30px 44px;
    border-top: 1px solid rgba(255, 255, 255, .06);
    background: rgba(255, 255, 255, .015);
}

.oc-partners-label {
    margin: 0 0 16px;
    font: 600 11px/1 'Plus Jakarta Sans', sans-serif;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #4b5563;
}

.oc-partners-grid { display: flex; flex-wrap: wrap; gap: 16px; }

.oc-home .oc-partner-box {
    flex: none;
    width: 150px;
    height: 52px;
    padding: 0 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .03);
    display: grid;
    place-items: center;
    text-align: center;
    font: 700 12px/1.2 'Plus Jakarta Sans', sans-serif;
    letter-spacing: .02em;
    color: #6b7280;
    transition: background .15s, color .15s, border-color .15s;
}

.oc-home .oc-partner-box:hover {
    background: rgba(var(--oc-a-rgb), .14);
    border-color: rgba(var(--oc-a-rgb), .5);
    color: #fff;
}

/* ---------- rodapé institucional ---------- */

.oc-footer {
    padding: 26px 44px 34px;
    border-top: 1px solid rgba(255, 255, 255, .06);
    background: #090912;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.oc-footer-brand { display: flex; align-items: center; gap: 9px; }
.oc-footer-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--oc-a); }
.oc-footer-name { font: 800 16px/1 'Plus Jakarta Sans', sans-serif; letter-spacing: -.02em; color: #fff; }
.oc-footer-copy { margin-left: 8px; font: 400 12px/1 'Plus Jakarta Sans', sans-serif; color: #4b5563; }

.oc-footer-nav { display: flex; flex-wrap: wrap; gap: 24px; }
.oc-home .oc-footer-nav a { color: var(--oc-a); font: 500 13px/1.2 'Plus Jakarta Sans', sans-serif; }
.oc-home .oc-footer-nav a:hover { color: var(--oc-a-light); }

/* ======================================================================
   Entre 768px e 1099px: Top 3 empilhado, no estilo de card do mobile
   ====================================================================== */

@media (max-width: 1099.98px) {
    .oc-top { padding: 32px 44px 0 60px; }
    .oc-top-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; max-width: 560px; }
    .oc-t-glow { display: none; }

    .oc-t-num {
        left: -18px;
        top: 40%;
        font-size: 96px;
        text-shadow: 0 0 18px rgba(var(--oc-a-rgb), .85);
    }

    .oc-t-card { border-radius: 16px; }
    .oc-t-blog-av { top: 10px; right: 10px; width: 28px; height: 28px; }
    .oc-t-media .oc-play span { width: 46px; height: 46px; }
    .oc-t-media .oc-play svg { width: 20px; height: 20px; }
    .oc-t-body { padding: 12px 12px 8px 30px; }
    .oc-t-title { min-height: 0; font-size: 14px; line-height: 1.34; }
    .oc-t-blog { font-size: 11px; }
    .oc-t-foot { margin-top: 6px; }
}

/* ======================================================================
   Mobile (< 768px)
   ====================================================================== */

@media (max-width: 767.98px) {
    /* no celular não tem moldura: a página ocupa a tela toda */
    body.oc-home { background: #0B0B16; }
    .oc-frame { width: auto; margin: 0; border: 0; border-radius: 0; }

    .oc-header { padding: 22px 18px 12px; background: rgba(11, 11, 22, .92); }

    .oc-logo { gap: 8px; }
    .oc-logo-dot { width: 9px; height: 9px; box-shadow: 0 0 12px 2px rgba(var(--oc-a-rgb), .8); }
    .oc-logo-txt { font-size: 20px; }

    .oc-header-right { gap: 10px; }

    .oc-count { height: 34px; padding: 0 10px; border-radius: 10px; gap: 0; }
    .oc-count-lbl,
    .oc-count-pt { display: none; }
    .oc-count-val { gap: 4px; }
    .oc-count-n { font-size: 18px; }
    .oc-count-u { font: 500 10px/1 'Plus Jakarta Sans', sans-serif; color: #9CA3AF; }
    .oc-count-u--d { display: none; }
    .oc-count-u--m { display: inline; }

    .oc-cta { height: 34px; padding: 0 13px; border-radius: 10px; font-size: 12px; gap: 6px; }
    .oc-cta svg { width: 13px; height: 13px; }
    .oc-cta-txt--d { display: none; }
    .oc-cta-txt--m { display: inline; }

    .oc-sec-title { font-size: 11px; }

    .oc-top { padding: 20px 16px 0 30px; }
    .oc-top .oc-sec-title { margin-bottom: 16px; }
    .oc-top-grid { max-width: none; }

    .oc-all { padding: 30px 10px 24px; }
    .oc-all .oc-sec-title { margin: 0 0 6px 8px; padding-left: 0; }

    .oc-list { grid-template-columns: minmax(0, 1fr); }

    .oc-row {
        display: grid;
        grid-template-columns: 24px 92px minmax(0, 1fr);
        column-gap: 10px;
        row-gap: 4px;
        align-items: center;
        padding: 12px 6px;
        border-radius: 0;
    }

    .oc-row:hover { background: transparent; }

    .oc-r-num { grid-column: 1; grid-row: 1 / span 2; width: auto; font-size: 19px; text-shadow: 0 0 10px rgba(var(--oc-a-rgb), .6); }
    .oc-r-num.oc-r-num--xl { font-size: 13px; }
    .oc-r-thumb { grid-column: 2; grid-row: 1 / span 2; width: 92px; border-radius: 8px; }
    .oc-r-thumb .oc-play span { width: 22px; height: 22px; }
    .oc-r-thumb .oc-play svg { width: 10px; height: 10px; margin-left: 1px; }

    .oc-r-title { grid-column: 3; grid-row: 1; font-size: 12.5px; line-height: 1.36; }

    /* linha do logo com 28px de altura (20px + 4px de folga em cima e embaixo) */
    .oc-r-blog { grid-column: 3; grid-row: 2; width: 20px; height: 20px; margin: 4px 0; border-width: 1px; }

    .oc-more { right: 2px; bottom: 10px; }
    .oc-dots { width: 28px; height: 28px; }

    .oc-partners { padding: 24px 18px; }
    .oc-partners-grid { gap: 12px; }

    .oc-footer { padding: 22px 18px 28px; flex-direction: column; align-items: flex-start; }
    .oc-footer-nav { gap: 12px 22px; }
}
