/*
Theme Name: TOP5VPN
Description: Lightweight editorial theme for TOP5VPN (VPN comparisons and reviews). Works with the TOP5VPN Core plugin.
Version: 1.0.0
Requires PHP: 8.0
Author: TOP5VPN
Text Domain: top5vpn
*/

:root {
	--navy: #0b1b33;
	--navy-2: #13294b;
	--blue: #1f6feb;
	--teal: #14b8a6;
	--teal-d: #0f8f82;
	--ink: #13202f;
	--muted: #5b6b7f;
	--line: #e3e8ef;
	--bg: #f5f7fa;
	--white: #fff;
	--good: #0f9d58;
	--bad: #d93025;
	--radius: 12px;
	--wrap: 1140px;
	--shadow: 0 1px 2px rgba(11, 27, 51, .06), 0 6px 20px rgba(11, 27, 51, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--navy-2); }
h1, h2, h3 { line-height: 1.25; color: var(--navy); }
h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: .2em 0 .4em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin: 1.6em 0 .5em; }
h3 { font-size: 1.15rem; margin: 1.2em 0 .4em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.screen-reader-text { position: absolute; left: -9999px; }
.skip-link:focus { left: 10px; top: 10px; z-index: 99; background: #fff; padding: 8px 12px; }

/* Header */
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: .02em; }
.brand img { width: 34px; height: 34px; }
.brand span b { color: var(--teal); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a { color: #dbe6f5; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: .95rem; font-weight: 600; display: block; }
.site-nav a:hover, .site-nav .current-menu-item > a { background: var(--navy-2); color: #fff; }
.site-nav__toggle { display: none; background: none; border: 1px solid #39507a; color: #fff; border-radius: 8px; padding: 8px 12px; font: inherit; cursor: pointer; }
@media (max-width: 960px) {
	.site-nav__toggle { display: block; }
	.site-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--navy); padding: 8px 20px 16px; border-top: 1px solid var(--navy-2); }
	.site-nav.is-open { display: block; }
	.site-nav ul { flex-direction: column; }
}

/* Hero */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #0e3b5c 100%); color: #e8eef7; padding: 56px 0 64px; }
.hero h1 { color: #fff; max-width: 820px; }
.hero p { max-width: 700px; font-size: 1.1rem; color: #c9d6e8; }
.hero .badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero .badges span { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); padding: 6px 12px; border-radius: 999px; font-size: .9rem; }

/* Layout */
.site-main { padding: 36px 0 56px; }
.page-head { background: var(--bg); border-bottom: 1px solid var(--line); padding: 28px 0 20px; }
.crumbs { font-size: .85rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.meta { font-size: .9rem; color: var(--muted); }
.entry-content > * + * { margin-top: 1em; }
.entry-content table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.entry-content th { background: var(--bg); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 20px 0; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(11, 27, 51, .1); }
.card h3 { margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Buttons */
.t5v-btn, .t5v-cta { display: inline-block; background: var(--teal); color: #fff !important; text-decoration: none; font-weight: 700; padding: 11px 18px; border-radius: 10px; border: 0; cursor: pointer; font: inherit; font-weight: 700; text-align: center; transition: background .15s ease; }
.t5v-btn:hover, .t5v-cta:hover { background: var(--teal-d); }
.t5v-btn--ghost { background: transparent; color: var(--navy) !important; border: 1px solid var(--line); }

/* Ranking list */
.t5v-rank__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.t5v-row { display: grid; grid-template-columns: 48px 220px 1fr 200px; gap: 18px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff; box-shadow: var(--shadow); }
.t5v-row:first-child { border: 2px solid var(--teal); }
.t5v-row__rank { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; }
.t5v-row__brand { display: flex; gap: 12px; align-items: center; }
.t5v-row__brand h3 { margin: 0; font-size: 1.1rem; }
.t5v-row__brand h3 a { color: var(--navy); text-decoration: none; }
.t5v-logo { width: 48px; height: 48px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.t5v-logo--text { display: grid; place-items: center; font-weight: 800; color: var(--navy); font-size: 1.3rem; }
.t5v-score { font-size: .9rem; color: var(--muted); }
.t5v-score b { font-size: 1.3rem; color: var(--navy); }
.t5v-row__body ul { margin: 0; padding: 0; list-style: none; font-size: .93rem; }
.t5v-feat li::before { content: "•"; color: var(--blue); margin-right: 6px; }
.t5v-pros li::before { content: "✓"; color: var(--good); font-weight: 700; margin-right: 6px; }
.t5v-cons li::before { content: "✕"; color: var(--bad); font-weight: 700; margin-right: 6px; }
.t5v-row__cta { display: grid; gap: 8px; text-align: center; }
.t5v-price { font-weight: 700; color: var(--navy); }
.t5v-more { font-size: .9rem; }
.t5v-ver { font-size: .78rem; color: var(--muted); }
@media (max-width: 900px) {
	.t5v-row { grid-template-columns: 40px 1fr; }
	.t5v-row__body, .t5v-row__cta { grid-column: 1 / -1; }
}
.t5v-empty, .t5v-disclosure, .notice-box { background: #eefaf8; border: 1px solid #bfe9e3; border-radius: var(--radius); padding: 14px 16px; font-size: .95rem; }
.t5v-disclosure { background: var(--bg); border-color: var(--line); color: var(--muted); }

/* Comparison table */
.t5v-filters { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 12px; font-size: .95rem; }
.t5v-filters select { font: inherit; padding: 4px 6px; border-radius: 6px; border: 1px solid var(--line); }
.t5v-table-wrap { overflow-x: auto; }
.t5v-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.t5v-table th, .t5v-table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; }
.t5v-table th { font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.t5v-table .t5v-cta { padding: 8px 12px; font-size: .9rem; }
.t5v-weights { max-width: 520px; }

/* Review page */
.review-box { display: grid; grid-template-columns: 1fr 280px; gap: 24px; }
.review-side { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff; box-shadow: var(--shadow); position: sticky; top: 84px; align-self: start; }
.review-side .big { font-size: 2.6rem; font-weight: 800; color: var(--navy); line-height: 1; }
.scorebars { list-style: none; padding: 0; margin: 12px 0; font-size: .9rem; }
.scorebars li { margin: 8px 0; }
.scorebars .bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.scorebars .bar i { display: block; height: 100%; background: var(--teal); }
.facts th { width: 40%; }
.src { font-size: .85rem; color: var(--muted); }
@media (max-width: 900px) { .review-box { grid-template-columns: 1fr; } .review-side { position: static; } }

/* Forms, consent */
.t5v-form input, .t5v-form textarea { width: 100%; max-width: 560px; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.t5v-hp { position: absolute; left: -9999px; }
.t5v-note { background: #eefaf8; padding: 10px 14px; border-radius: 8px; }
.t5v-note--err { background: #fdecea; }
.t5v-consent { position: fixed; bottom: 16px; left: 16px; right: 16px; max-width: 560px; margin: 0 auto; background: var(--navy); color: #fff; padding: 16px 18px; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); z-index: 100; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: .92rem; }
.t5v-consent p { margin: 0; flex: 1 1 240px; }
.t5v-consent .t5v-btn--ghost { color: #fff !important; border-color: #39507a; }

/* Footer */
.site-footer { background: var(--navy); color: #b8c6da; padding: 40px 0 28px; font-size: .92rem; }
.site-footer a { color: #dbe6f5; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer .small { margin-top: 24px; border-top: 1px solid var(--navy-2); padding-top: 16px; font-size: .82rem; }
@media (max-width: 760px) { .footer-cols { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
