/* =========================================================================
   Canal Bica Galo — front design system
   Layout lives mostly as inline styles ported 1:1 from the approved mockup;
   this file holds the reset, fonts, color tokens and the hover/utility classes
   that the design's `style-hover` attributes became.
   ========================================================================= */

:root {
	--accent: #E2121B;
	--ink: #16130F;
	--bg: #FBFAF7;
	--text: #211D18;
	--muted: #9A938A;
	--line: #E7E3DC;
	--surface: #F0ECE3;
	--font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	--serif: 'Spectral', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }
html, body { margin: 0; padding: 0; }
body.ubnf-body {
	overflow-x: hidden;
	font-family: var(--font);
	color: var(--text);
	background: var(--bg);
	min-height: 100vh;
	line-height: 1.5;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font-family: inherit; }

::-webkit-scrollbar { height: 8px; width: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d7d2c8; border-radius: 6px; }

@keyframes bgFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes ubnfPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
.ubnf-pulse { display: inline-block; animation: ubnfPulse 1.1s ease-in-out infinite; }
.hscroll { scrollbar-width: thin; }
.no-sb { scrollbar-width: none; -ms-overflow-style: none; }
.no-sb::-webkit-scrollbar { display: none; }

.ubnf-skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 1000; }
.ubnf-skip-link:focus { left: 8px; top: 8px; }

/* Push content below the external fixed menu (Unbox Menu) overlay. */
.ubnf-main--offset { padding-top: 100px; }

/* ----- hover utilities (were `style-hover` in the mockup) ----------------- */
.bg-navbtn:hover { background: var(--surface); color: var(--ink) !important; }
.bg-link:hover { color: var(--ink) !important; }
.bg-redbtn { transition: background .15s; }
.bg-redbtn:hover { background: #C30E15 !important; }
.bg-ghost { transition: all .15s; }
.bg-ghost:hover { background: var(--ink) !important; color: #fff !important; }
.bg-social { transition: background .15s; }
.bg-social:hover { background: var(--accent) !important; }
.bg-social:hover span, .bg-social:hover svg { color: #fff; fill: #fff; }
.bg-arrow { transition: background .15s, color .15s; }
.bg-arrow:hover { background: var(--accent) !important; color: #fff !important; }

.bg-card { animation: bgFade .5s ease both; }
.bg-card img.zoom { transition: transform .4s; }
.bg-card:hover img.zoom { transform: scale(1.04); }

.bg-colcard { transition: transform .18s, box-shadow .18s, border-color .18s; }
.bg-colcard:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(22,19,15,.1); border-color: var(--ink); }

.bg-vidcard { transition: border-color .18s, transform .18s; }
.bg-vidcard:hover { border-color: rgba(226,18,27,.65); transform: translateY(-2px); }

.bg-fade:hover { opacity: .78; }
.bg-catbtn { transition: background .15s; }
.bg-catbtn:hover { background: #F4F0E8; }

@keyframes ubnfPlayPulse { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.06); } }
.ubnf-playpulse { animation: ubnfPlayPulse 2.4s ease-in-out infinite; }

/* ----- Seja um Parceiro: plans grid stacks on small screens -------------- */
@media (max-width: 760px) { .ubnf-plans { grid-template-columns: 1fr !important; } }

/* ----- Quem Somos ------------------------------------------------------- */
.ubnf-about__body p { margin: 0 0 18px; }
.ubnf-about__body p:last-child { margin-bottom: 0; }
.ubnf-about__body strong, .ubnf-about__body b { font-family: var(--font); font-weight: 800; color: var(--ink); }

/* ----- single video: collapsible description ----------------------------- */
.ubnf-desc__text { max-height: 116px; overflow: hidden; transition: max-height .3s ease; }
.ubnf-desc.is-expanded .ubnf-desc__text { max-height: 4000px; }

/* ----- video embed facade ------------------------------------------------ */
.ubnf-embed { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: #000; cursor: pointer; }
.ubnf-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ----- WordPress pagination (paginate_links) ----------------------------- */
.ubnf-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding: 30px 0 8px; }
.ubnf-pagination .page-numbers {
	min-width: 40px; height: 40px; padding: 0 12px; border-radius: 9px;
	display: inline-flex; align-items: center; justify-content: center;
	background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 800; font-size: 14px;
	transition: border-color .15s;
}
.ubnf-pagination .page-numbers:hover { border-color: var(--ink); }
.ubnf-pagination .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ----- the_content typography (single article body) ---------------------- */
.ubnf-prose { font-family: var(--serif); color: #2A2620; font-size: 18px; line-height: 1.66; }
.ubnf-prose p { margin: 0 0 22px; }
.ubnf-prose h2, .ubnf-prose h3 { font-family: var(--font); color: var(--ink); letter-spacing: -.01em; margin: 1.4em 0 .5em; }
.ubnf-prose a { color: var(--accent); text-decoration: underline; }
.ubnf-prose img { border-radius: 12px; margin: 1em 0; }
.ubnf-prose blockquote { margin: 30px 0; padding: 22px 24px; background: var(--surface); border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; font-size: 20px; line-height: 1.45; font-weight: 600; font-style: italic; color: var(--ink); }
.ubnf-prose ul, .ubnf-prose ol { padding-left: 1.2em; margin: 0 0 22px; }
.ubnf-prose li { margin-bottom: .4em; }

/* ----- mobile drawer ----------------------------------------------------- */
.ubnf-scrim { position: fixed; inset: 0; background: rgba(22,19,15,.45); z-index: 60; display: none; }
.ubnf-scrim.is-open { display: block; }
.ubnf-mobile-menu {
	position: fixed; top: 0; right: 0; bottom: 0; width: min(82vw, 340px);
	background: var(--bg); z-index: 61; transform: translateX(100%);
	transition: transform .25s ease; box-shadow: -12px 0 40px rgba(0,0,0,.25);
	padding: 22px; overflow-y: auto;
}
.ubnf-mobile-menu.is-open { transform: translateX(0); }

/* ----- responsive header bits (desktop nav vs mobile burger) ------------- */
.ubnf-desktop { display: flex; }
.ubnf-mobile { display: none; }
@media (max-width: 939px) {
	.ubnf-desktop { display: none !important; }
	.ubnf-mobile { display: flex !important; }
}

/* ----- Galo Stats modal (evolution chart) -------------------------------- */
.ubnf-stats-modal { display: none; position: fixed; inset: 0; z-index: 2147483000; padding: 22px; align-items: center; justify-content: center; overscroll-behavior: contain; }
.ubnf-stats-modal.is-open { display: flex; }
.ubnf-stats-modal__backdrop { position: absolute; inset: 0; background: rgba(10, 8, 6, .5); backdrop-filter: blur(2px); }
.ubnf-stats-modal__box { position: relative; z-index: 1; width: min(940px, 100%); max-height: 88vh; display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 30px 90px rgba(0, 0, 0, .42); animation: bgFade .22s ease both; }
.ubnf-stats-modal__body { flex: 1; padding: 18px 22px 24px; overflow-y: auto; }
.ubnf-stats-modal__inner { width: 100%; }
.ubnf-stats-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: 11.5px; font-weight: 800; }
.ubnf-stats-tip { position: absolute; z-index: 5; pointer-events: none; min-width: 180px; max-width: 260px; padding: 11px 13px; border-radius: 14px; border: 1px solid var(--line); background: #fff; box-shadow: 0 16px 40px rgba(22, 19, 15, .18); transform: translate(-50%, calc(-100% - 14px)); opacity: 0; transition: opacity .14s ease; }
.ubnf-stats-tip.show { opacity: 1; }
.ubnf-stats-tip b { display: block; font-size: 13.5px; font-weight: 900; color: var(--ink); margin-bottom: 3px; }
.ubnf-stats-tip span { display: block; font-size: 12px; color: var(--muted); line-height: 1.45; }
.ubnf-stats-tip__st { margin-top: 7px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink) !important; }
@media (max-width: 600px) { .ubnf-stats-modal { padding: 10px; } .ubnf-stats-modal__box { max-height: 94vh; } }

/* ----- "Leia também" related grid (single row, responsive) --------------- */
@media (max-width: 820px) { .ubnf-related-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 540px) { .ubnf-related-grid { grid-template-columns: 1fr !important; } }

/* ----- Clickable standings rows (team stats) ----------------------------- */
.ubnf-team-row { transition: background .14s ease; }
.ubnf-team-row:hover { background: rgba(22, 19, 15, .045) !important; }
.ubnf-team-row:focus-visible { outline: 2px solid var(--accent, #E2121B); outline-offset: -2px; }

/* ----- Instagram post modal ---------------------------------------------- */
.ubnf-ig-modal { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: 22px; overscroll-behavior: contain; }
.ubnf-ig-modal[hidden] { display: none; }
.ubnf-ig-modal__backdrop { position: absolute; inset: 0; background: rgba(8, 6, 5, .72); backdrop-filter: blur(2px); }
.ubnf-ig-modal__card { position: relative; z-index: 1; display: flex; width: min(940px, 100%); max-height: 90vh; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 90px rgba(0, 0, 0, .5); animation: bgFade .2s ease both; }
.ubnf-ig-modal__media { flex: 1 1 56%; min-width: 0; background: #16130F; display: flex; align-items: center; justify-content: center; }
.ubnf-ig-modal__media img { width: 100%; height: 100%; max-height: 90vh; object-fit: contain; display: block; }
.ubnf-ig-modal__media video { width: 100%; height: 100%; max-height: 90vh; object-fit: contain; display: block; background: #000; cursor: pointer; }
.ubnf-ig-modal__media video::-webkit-media-controls { display: none !important; }
.ubnf-ig-modal__media img[hidden], .ubnf-ig-modal__media video[hidden] { display: none; }

/* Botão de play central nos cards de vídeo */
.ubnf-ig-card__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; backdrop-filter: blur(2px); box-shadow: 0 4px 16px rgba(0, 0, 0, .4); transition: transform .16s ease, background .16s ease; pointer-events: none; }
.ubnf-ig-card:hover .ubnf-ig-card__play { transform: translate(-50%, -50%) scale(1.08); background: var(--accent, #E2121B); }
.ubnf-ig-modal__side { flex: 1 1 44%; min-width: 280px; max-width: 380px; display: flex; flex-direction: column; }
.ubnf-ig-modal__head { display: flex; align-items: center; gap: 11px; padding: 16px 18px; border-bottom: 1px solid var(--line, #E7E3DC); }
.ubnf-ig-modal__avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; overflow: hidden; background: #F0ECE3; display: flex; align-items: center; justify-content: center; }
.ubnf-ig-modal__avatar img { width: 100%; height: 100%; object-fit: cover; }
.ubnf-ig-modal__x { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line, #E7E3DC); background: #fff; color: var(--ink, #16130F); cursor: pointer; }
.ubnf-ig-modal__x:hover { background: #F0ECE3; }
.ubnf-ig-modal__body { flex: 1; overflow-y: auto; padding: 16px 18px; font-size: 14px; line-height: 1.55; color: #2C2924; white-space: pre-wrap; word-break: break-word; }
.ubnf-ig-modal__foot { border-top: 1px solid var(--line, #E7E3DC); padding: 14px 18px; }
.ubnf-ig-modal__stats { font-size: 12.5px; font-weight: 700; color: #6B6862; margin-bottom: 11px; }
.ubnf-ig-modal__btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px; border-radius: 11px; background: var(--accent, #E2121B); color: #fff; font-size: 13.5px; font-weight: 800; }
.ubnf-ig-modal__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: #16130F; cursor: pointer; box-shadow: 0 8px 22px rgba(0, 0, 0, .4); transition: transform .14s ease, background .14s ease; }
.ubnf-ig-modal__nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.ubnf-ig-modal__nav--prev { left: 18px; }
.ubnf-ig-modal__nav--next { right: 18px; }
@media (max-width: 1040px) { .ubnf-ig-modal__nav--prev { left: 10px; } .ubnf-ig-modal__nav--next { right: 10px; } .ubnf-ig-modal__nav { width: 42px; height: 42px; } }
@media (max-width: 720px) {
	.ubnf-ig-modal__card { flex-direction: column; width: 100%; max-height: 92vh; overflow-y: auto; }
	.ubnf-ig-modal__media { flex: none; max-height: 50vh; }
	.ubnf-ig-modal__media img, .ubnf-ig-modal__media video { max-height: 50vh; }
	.ubnf-ig-modal__side { flex: 1; max-width: none; }
}

/* ----- Columnist contact modal ------------------------------------------- */
.ubnf-contact-modal { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: 22px; overscroll-behavior: contain; }
.ubnf-contact-modal[hidden] { display: none; }
.ubnf-contact-modal__backdrop { position: absolute; inset: 0; background: rgba(10, 8, 6, .5); backdrop-filter: blur(2px); }
.ubnf-contact-modal__card { position: relative; z-index: 1; width: min(480px, 100%); max-height: 92vh; overflow-y: auto; background: var(--bg, #FBFAF7); border: 1px solid var(--line, #E7E3DC); border-radius: 22px; box-shadow: 0 30px 90px rgba(0, 0, 0, .42); animation: bgFade .2s ease both; }
.ubnf-contact-modal__head { display: flex; align-items: center; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line, #E7E3DC); }
.ubnf-contact-modal__x { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line, #E7E3DC); background: #fff; color: var(--ink, #16130F); cursor: pointer; }
.ubnf-contact-modal__x:hover { background: #F0ECE3; }
.ubnf-contact-modal__form { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 13px; }
.ubnf-field { display: flex; flex-direction: column; gap: 6px; }
.ubnf-field > span { font-size: 11.5px; font-weight: 800; letter-spacing: .03em; color: #6B6862; text-transform: uppercase; }
.ubnf-field > span em { font-style: normal; font-weight: 600; color: #9A938A; text-transform: none; letter-spacing: 0; }
.ubnf-field input, .ubnf-field textarea { width: 100%; border: 1px solid #DCD6CB; border-radius: 11px; padding: 11px 13px; font-size: 14px; color: var(--ink, #16130F); background: #fff; outline: none; font-family: inherit; }
.ubnf-field input:focus, .ubnf-field textarea:focus { border-color: var(--accent, #E2121B); }
.ubnf-field textarea { resize: vertical; min-height: 96px; }
.ubnf-contact-modal__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 2px; }
.ubnf-contact-modal__msg { font-size: 12.5px; font-weight: 700; }
.ubnf-contact-modal__msg.is-ok { color: #1F8A4C; }
.ubnf-contact-modal__msg.is-err { color: var(--accent, #E2121B); }
@media (max-width: 640px) { .ubnf-col-actions, .ubnf-col-back { position: static !important; } .ubnf-col-actions { margin: 6px 30px 22px; justify-content: flex-start !important; } .ubnf-col-back { display: inline-flex !important; margin: 22px 0 0 30px; } }

/* ----- Share modal ------------------------------------------------------- */
.ubnf-share-modal { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: 22px; overscroll-behavior: contain; }
.ubnf-share-modal[hidden] { display: none; }
.ubnf-share-modal__backdrop { position: absolute; inset: 0; background: rgba(10, 8, 6, .5); backdrop-filter: blur(2px); }
.ubnf-share-modal__card { position: relative; z-index: 1; width: min(440px, 100%); background: var(--bg); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 30px 90px rgba(0, 0, 0, .42); animation: bgFade .2s ease both; }
.ubnf-share-modal__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 4px; }
.ubnf-share-modal__title { margin: 0; font-size: 17px; font-weight: 900; letter-spacing: -.01em; color: var(--ink); }
.ubnf-share-modal__x { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: background .14s ease; }
.ubnf-share-modal__x:hover { background: #F0ECE3; }
.ubnf-share-modal__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 14px 16px 4px; }
.ubnf-share-modal__net { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 4px; border-radius: 14px; text-decoration: none; transition: background .14s ease; }
.ubnf-share-modal__net:hover { background: #F0ECE3; }
.ubnf-share-modal__ico { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; color: #fff; }
.ubnf-share-modal__net-label { font-size: 12px; font-weight: 800; color: var(--ink); }
.ubnf-share-modal__copy { display: flex; align-items: center; gap: 10px; margin: 12px 18px 20px; padding: 6px 6px 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.ubnf-share-modal__url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.ubnf-share-modal__copy-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 800; cursor: pointer; }
.ubnf-share-modal__copy-btn:hover { background: #000; }

/* ----- Video modal (featured YouTube players) ---------------------------- */
.ubnf-video-modal { display: none; position: fixed; inset: 0; z-index: 9999; align-items: center; justify-content: center; padding: 24px; }
.ubnf-video-modal.is-open { display: flex; }
.ubnf-video-modal__backdrop { position: absolute; inset: 0; background: rgba(10, 8, 6, .82); backdrop-filter: blur(2px); }
.ubnf-video-modal__box { position: relative; z-index: 1; width: min(960px, 100%); }
.ubnf-video-modal__player { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; box-shadow: 0 24px 80px rgba(0, 0, 0, .6); }
.ubnf-video-modal__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ubnf-video-modal__close { position: absolute; top: -44px; right: 0; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 26px; line-height: 1; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.ubnf-video-modal__close:hover { background: rgba(255, 255, 255, .28); }
@media (max-width: 600px) {
	.ubnf-video-modal__close { top: -40px; }
}
