/*
Theme Name: Review
Description: Tema leve para sites de review e comparação de produtos. Funciona com o plugin Review Engine. A cor principal fica em Aparência > Personalizar > Cor principal.
Version: 0.3.0
Author: Nelson
Text Domain: review
Requires PHP: 7.4
*/

:root {
	--re-primary: #2563eb;
	--re-primary-dark: color-mix(in srgb, var(--re-primary) 75%, #000);
	--re-primary-soft: color-mix(in srgb, var(--re-primary) 10%, #fff);
	--ink: #111827;
	--muted: #6b7280;
	--line: #e5e7eb;
	--bg: #f8fafc;
	--card: #ffffff;
	--wrap: 1160px;
	--text: 760px;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.7 var(--font); color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; }
input, textarea, select { max-width: 100%; box-sizing: border-box; }
a { color: var(--re-primary-dark); }
a:hover { color: var(--re-primary); }
h1, h2, h3, h4 { line-height: 1.25; margin: 1.8em 0 .6em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-top: 0; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.2rem; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 64px; }
.site-brand { font-weight: 800; font-size: 1.3rem; text-decoration: none; color: var(--ink); display: flex; align-items: center; gap: .5rem; }
.site-brand .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--re-primary); }
.site-brand img { max-height: 40px; width: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.2rem; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--re-primary); }
.main-nav ul ul { display: none; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: .4rem .7rem; font-size: 1.1rem; cursor: pointer; }
.header-search input { border: 1px solid var(--line); border-radius: 99px; padding: .45rem .9rem; font: inherit; font-size: .9rem; width: 200px; }

/* Layout */
.site-main { padding: 2rem 0 3rem; }
.content-area { max-width: var(--text); margin: 0 auto; }
.entry { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: clamp(1.2rem, 4vw, 2.5rem); }
.entry-meta { color: var(--muted); font-size: .9rem; display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-bottom: 1rem; }
.entry-thumb { margin: 1rem 0 1.5rem; }
.entry-thumb img { border-radius: 12px; width: 100%; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content blockquote { border-left: 4px solid var(--re-primary); margin: 1.5rem 0; padding: .2rem 1.2rem; color: #374151; }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: .8rem; }
.breadcrumbs a { color: var(--muted); }
.type-badge { display: inline-block; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--re-primary-dark); background: var(--re-primary-soft); padding: .2rem .6rem; border-radius: 99px; margin-bottom: .6rem; }
.author-box { display: flex; gap: 1rem; align-items: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .95rem; }
.author-box img { border-radius: 50%; }

/* Cards grid */
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 2.5rem 0 1rem; }
.section-title h2 { margin: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.07); transform: translateY(-2px); }
.card-thumb { aspect-ratio: 16 / 10; background: var(--re-primary-soft); display: block; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 1rem 1.1rem 1.2rem; }
.card-body h3 { margin: .2rem 0 .4rem; font-size: 1.08rem; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover { color: var(--re-primary); }
.card-body p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.card-type { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--re-primary-dark); }

/* Home hero */
.hero { background: linear-gradient(135deg, var(--re-primary), var(--re-primary-dark)); color: #fff; border-radius: 18px; padding: clamp(1.5rem, 5vw, 3rem); margin-bottom: 1rem; }
.hero h1 { color: #fff; margin: 0 0 .5rem; }
.hero p { margin: 0 0 1.2rem; opacity: .92; max-width: 640px; }
.hero form { display: flex; gap: .5rem; max-width: 520px; }
.hero input[type=search] { flex: 1; border: 0; border-radius: 10px; padding: .75rem 1rem; font: inherit; min-width: 0; }
.hero button { border: 0; border-radius: 10px; padding: .75rem 1.2rem; font: inherit; font-weight: 700; background: var(--ink); color: #fff; cursor: pointer; }
.cat-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.cat-chips a { background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: .4rem .9rem; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; }
.cat-chips a:hover { border-color: var(--re-primary); color: var(--re-primary); }

/* Archive */
.archive-head { margin-bottom: 1.5rem; }
.archive-head p { color: var(--muted); margin: 0; }
.pagination { margin: 2rem 0; display: flex; gap: .4rem; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers { padding: .45rem .8rem; border: 1px solid var(--line); border-radius: 8px; background: var(--card); text-decoration: none; color: var(--ink); }
.pagination .current { background: var(--re-primary); border-color: var(--re-primary); color: #fff; }

/* Product page */
.product-hero { display: grid; grid-template-columns: 280px 1fr; gap: 1.5rem; align-items: start; }
.product-hero .re-buttons { max-width: 320px; }
.mentions { list-style: none; padding: 0; }
.mentions li { padding: .5rem 0; border-bottom: 1px solid var(--line); }

/* Footer */
.site-footer { background: var(--ink); color: #d1d5db; padding: 2.5rem 0 1.5rem; font-size: .92rem; }
.site-footer a { color: #fff; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.footer-bottom { border-top: 1px solid #374151; margin-top: 2rem; padding-top: 1rem; color: #9ca3af; font-size: .85rem; }

@media (max-width: 860px) {
	.nav-toggle { display: block; }
	.header-search { display: none; }
	.main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--card); border-bottom: 1px solid var(--line); padding: 1rem 16px; }
	.main-nav.open { display: block; }
	.main-nav ul { flex-direction: column; gap: .8rem; }
	.product-hero { grid-template-columns: 1fr; }
	.product-hero .re-img { max-width: 260px; }
	.footer-cols { grid-template-columns: 1fr; }
}
