/* ==========================================================================
   Bets Info — components used by the imported app records
   Loaded after style.css so it can reuse the existing custom properties.
   ========================================================================== */

/* ---------- search ---------- */
.bets-search {
	display: flex;
	gap: .5rem;
	margin: 1.2rem 0 0;
	max-width: 620px;
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 14px;
	padding: .45rem;
}
.bets-search input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	background: transparent;
	border: 0;
	color: #fff;
	font: inherit;
	padding: .55rem .7rem;
	outline: none;
}
.bets-search input[type="search"]::placeholder { color: #9fb3c8; }
.bets-search button {
	flex: 0 0 auto;
	border: 0;
	border-radius: 10px;
	padding: .6rem 1.05rem;
	background: var(--lime, #ffb224);
	color: #062a13;
	font-weight: 700;
	cursor: pointer;
}
.bets-search button:hover { filter: brightness(1.05); }

/* ---------- category strip ---------- */
.cat-strip {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: .8rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.cat-card a {
	display: flex;
	flex-direction: column;
	gap: .25rem;
	height: 100%;
	padding: 1rem 1.1rem;
	border: 1px solid var(--line, #d8e2ec);
	border-radius: 16px;
	background: var(--surface, #fff);
	text-decoration: none;
	color: inherit;
	transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.cat-card a:hover {
	transform: translateY(-2px);
	border-color: #9ec5c8;
	box-shadow: 0 14px 34px rgba(32, 59, 92, .12);
}
.cat-card-count {
	font-size: 1.55rem;
	font-weight: 800;
	letter-spacing: -.04em;
	color: var(--night, #013013);
	line-height: 1;
}
.cat-card-name { font-weight: 700; }
.cat-card-desc { font-size: .86rem; color: var(--muted, #4b5c70); }

/* ---------- rails ---------- */
.app-rail {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 1rem;
}
.app-rail-item { display: flex; }
.app-rail-item .app-card { width: 100%; }

/* ---------- app card ---------- */
.app-card {
	display: flex;
	flex-direction: column;
	gap: .75rem;
	padding: 1rem;
	border: 1px solid var(--line, #d8e2ec);
	border-radius: 18px;
	background: var(--surface, #fff);
	box-shadow: 0 8px 26px rgba(32, 59, 92, .06);
	height: 100%;
}
.app-card-media {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	background: #fff;
	border: 1px solid var(--line, #d5e3d2);
	border-radius: 14px;
	overflow: hidden;
	padding: 10px;
}
.app-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.app-card-body { display: flex; flex-direction: column; gap: .45rem; flex: 1 1 auto; }
.app-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.app-card-head h3 { margin: 0; font-size: 1.05rem; letter-spacing: -.02em; }
.app-card-head h3 a { text-decoration: none; color: inherit; }
.app-card-head h3 a:hover { text-decoration: underline; }
.app-card p { margin: 0; color: var(--muted, #4b5c70); font-size: .92rem; }
.app-card-cats { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; }
.app-card-cats a {
	font-size: .74rem;
	padding: .18rem .5rem;
	border-radius: 99px;
	background: #eef4f8;
	color: #28526b;
	text-decoration: none;
}
.app-card-flag { font-size: .74rem; color: #9a5b00; }

/* ---------- pills ---------- */
.status-pill {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	padding: .22rem .6rem;
	border-radius: 99px;
	background: #e8f5ef;
	color: #14606c;
	font-size: .74rem;
	font-weight: 700;
	white-space: nowrap;
}
.status-pill--weight { background: var(--night, #013013); color: var(--lime, #ffb224); }
.status-pill--warn { background: #fff3d6; color: #8a5a00; }

/* ---------- single app ---------- */
.app-hero { background: var(--night, #013013); color: #fff; padding: 2rem 0 2.4rem; }
.app-hero-grid { display: grid; gap: 1.6rem; }
.app-hero-main { display: grid; grid-template-columns: 1fr; gap: 1.2rem; align-items: start; }
.app-hero-logo { width: 100%; max-width: 400px; }
.app-hero-logo img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 400px;
	object-fit: contain;
	border-radius: 24px;
	background: #fff;
	padding: 16px;
	box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
}
.app-hero h1 { margin: .15rem 0 .4rem; font-size: clamp(1.9rem, 6vw, 3rem); letter-spacing: -.04em; }
.app-hero-intro { margin: 0 0 .7rem; color: #c3d2e1; max-width: 62ch; }
.app-hero-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.app-hero-cta .button-block { width: 100%; justify-content: center; }
.cta-note { font-size: .82rem; color: #aac0d4; margin: .5rem 0 0; }
.cta-note--empty { background: rgba(255, 255, 255, .07); border: 1px dashed rgba(255, 255, 255, .25); border-radius: 12px; padding: .8rem; }
.app-hero .notice { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); color: #dfe8f1; margin-top: .8rem; }
.app-hero .notice p { color: #b9c9d8; }

.shot-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: .7rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.shot-grid img {
	width: 100%;
	border-radius: 14px;
	border: 1px solid var(--line, #d8e2ec);
	background: #fff;
	object-fit: cover;
	aspect-ratio: 9 / 16;
}

.app-layout { display: grid; gap: 2rem; }
.fact-table { margin: 0 0 1.4rem; border: 1px solid var(--line, #d8e2ec); border-radius: 14px; overflow: hidden; }
.fact-row { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 1rem; padding: .7rem .9rem; border-top: 1px solid var(--line, #d8e2ec); }
.fact-row:first-child { border-top: 0; }
.fact-row dt { font-weight: 700; color: var(--night, #013013); font-size: .9rem; }
.fact-row dd { margin: 0; color: var(--muted, #4b5c70); font-size: .92rem; }
.fact-row:nth-child(odd) { background: #f7fafc; }

.app-body { font-size: 1.02rem; }
.app-body h2 { margin-top: 1.8rem; letter-spacing: -.02em; }
.app-body p, .app-body li { color: #33465c; }

.side-card { border: 1px solid var(--line, #d8e2ec); border-radius: 16px; padding: 1rem 1.1rem; background: var(--surface, #fff); margin-bottom: 1rem; }
.side-card h2 { margin: 0 0 .6rem; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; color: #6b7c90; }
.side-facts { margin: 0; display: grid; gap: .45rem; }
.side-facts > div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed #e2eaf1; padding-bottom: .4rem; }
.side-facts dt { color: #6b7c90; font-size: .86rem; }
.side-facts dd { margin: 0; font-weight: 600; font-size: .9rem; text-align: right; }
.side-card--notice p { font-size: .88rem; color: var(--muted, #4b5c70); }

/* ---------- archive ---------- */
.hero--compact .hero-inner { padding: 2.4rem 0 2rem; }
.hero--compact h1 { font-size: clamp(1.8rem, 5vw, 3rem); max-width: 20ch; }
.archive-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.2rem; color: var(--muted, #4b5c70); font-size: .9rem; }
.pagination { margin-top: 2rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 2.3rem; height: 2.3rem; padding: 0 .6rem;
	border: 1px solid var(--line, #d8e2ec); border-radius: 10px;
	text-decoration: none; color: inherit; font-weight: 600;
}
.pagination .current { background: var(--night, #013013); color: #fff; border-color: var(--night, #013013); }
.section-more { margin-top: 1.4rem; }

/* ---------- responsive ---------- */
@media (min-width: 720px) {
	.app-hero-main { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); }
	.app-hero-grid { grid-template-columns: minmax(0, 1.6fr) minmax(260px, .9fr); align-items: start; }
	.shot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 980px) {
	.app-layout { grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr); align-items: start; }
	.app-side { position: sticky; top: 1.5rem; }
}
@media (max-width: 520px) {
	.app-hero-main { grid-template-columns: 1fr; }
	.fact-row { grid-template-columns: 1fr; gap: .2rem; }
}


/* ---------- brand + download ---------- */
.brand-mark { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand-logo { width: 44px; height: 44px; object-fit: contain; border-radius: 12px; background: #fff; padding: 2px; }

.app-download {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .55rem;
	font-size: 1.02rem;
	padding: .95rem 1.2rem;
	background: var(--lime, #ffdf00);
	color: #00361c;
	border-radius: 14px;
	box-shadow: 0 10px 26px rgba(255, 223, 0, .28);
}
.app-download:hover { filter: brightness(.96); }
.app-download-icon { font-size: 1.15rem; line-height: 1; }

/* ---------- toque brasileiro ---------- */
.hero { border-bottom: 5px solid var(--lime, #ffdf00); }
.button-primary { background: var(--lime, #ffdf00); color: #00361c; }
.button-primary:hover { filter: brightness(.96); }
.status-pill { background: #e9f6ec; color: #00532c; }
.app-body h2 { border-left: 4px solid var(--cyan, #009739); padding-left: .6rem; }
.cat-card-count { color: var(--cyan, #009739); }


/* ---------- LGPD banner ---------- */
.cookie-banner {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 9999;
	background: #062a13;
	color: #eaf3ec;
	border-top: 3px solid var(--lime, #ffdf00);
	box-shadow: 0 -18px 40px rgba(0, 0, 0, .28);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner {
	width: min(1180px, calc(100% - 2rem));
	margin: 0 auto;
	padding: .9rem 0;
	display: flex;
	flex-wrap: wrap;
	gap: .9rem 1.4rem;
	align-items: center;
	justify-content: space-between;
}
.cookie-banner__text { flex: 1 1 420px; }
.cookie-banner__text strong { display: block; margin-bottom: .15rem; }
.cookie-banner__text p { margin: 0; font-size: .86rem; color: #b9cfc0; line-height: 1.45; }
.cookie-banner__text a { color: var(--lime, #ffdf00); }
.cookie-banner__actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.cookie-banner .button { padding: .55rem .9rem; font-size: .88rem; }
.cookie-banner .button-ghost { background: transparent; color: #eaf3ec; border: 1px solid rgba(255, 255, 255, .35); }

/* ---------- ranking table ---------- */
.rank-table { margin: 1.4rem 0 0; border: 1px solid var(--line, #d5e3d2); border-radius: 16px; overflow: hidden; background: var(--surface, #fff); }
.rank-row {
	display: grid;
	grid-template-columns: 44px minmax(0, 2fr) minmax(0, 1fr) 120px 120px;
	gap: .8rem;
	align-items: center;
	padding: .7rem .9rem;
	border-top: 1px solid var(--line, #d5e3d2);
	font-size: .92rem;
}
.rank-row:first-child { border-top: 0; }
.rank-row--head { background: #062a13; color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.rank-row--head span { color: #cfe3d5; }
.rank-pos { font-weight: 800; color: var(--cyan, #009739); font-size: 1.05rem; }
.rank-app { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.rank-app img { width: 40px; height: 40px; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid var(--line, #d5e3d2); padding: 3px; }
.rank-app a { font-weight: 700; color: inherit; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-app a:hover { text-decoration: underline; }
.button-small { padding: .42rem .8rem; font-size: .82rem; border-radius: 10px; }

@media (max-width: 720px) {
	.rank-row { grid-template-columns: 34px minmax(0, 1fr) 92px; row-gap: .35rem; }
	.rank-row > span:nth-child(3), .rank-row > span:nth-child(4) { display: none; }
	.rank-row--head > span:nth-child(3), .rank-row--head > span:nth-child(4) { display: none; }
}
