/*
Theme Name: ReviewKu
Theme URI: https://example.com/reviewku
Author: Your Name
Description: A simple theme for app and game review blogs. Uses standard posts with a Review Details box (score, platform, pros and cons).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: reviewku
*/

:root {
	--bg: #f5f6f8;
	--card: #ffffff;
	--text: #1d2330;
	--muted: #6b7280;
	--line: #e5e7eb;
	--accent: #4f46e5;
	--good: #16a34a;
	--mid: #f59e0b;
	--bad: #dc2626;
	--radius: 12px;
	--wrap: 1100px;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.site-title { font-size: 1.35rem; font-weight: 800; margin: 0; }
.site-title a { color: var(--text); }
.site-desc { margin: 0; color: var(--muted); font-size: .85rem; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; }
.main-nav a { color: var(--text); font-weight: 600; font-size: .95rem; }
.main-nav .current-menu-item > a { color: var(--accent); }

/* Layout */
.site-main { padding: 32px 0 48px; }
.page-head { margin-bottom: 24px; }
.page-head h1 { margin: 0; font-size: 1.6rem; }
.page-head p { margin: 4px 0 0; color: var(--muted); }

.layout { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; }
@media (max-width: 860px) { .layout { grid-template-columns: 1fr; } }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-thumb { position: relative; aspect-ratio: 16/9; background: var(--line); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-thumb .score { position: absolute; top: 10px; right: 10px; }
.card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.card-cat { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: var(--accent); }
.card-title { font-size: 1.1rem; line-height: 1.35; margin: 6px 0 8px; }
.card-title a { color: var(--text); }
.card-excerpt { color: var(--muted); font-size: .92rem; margin: 0 0 12px; }
.card-meta { margin-top: auto; font-size: .8rem; color: var(--muted); }

/* Score badge */
.score { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 46px; padding: 0 8px; border-radius: 10px; color: #fff; font-weight: 800; font-size: 1.1rem; background: var(--mid); box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.score.good { background: var(--good); }
.score.bad { background: var(--bad); }
.score.big { min-width: 72px; height: 72px; font-size: 1.8rem; border-radius: 14px; }

/* Single */
.entry { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
@media (max-width: 600px) { .entry { padding: 18px; } }
.entry-title { font-size: 2rem; line-height: 1.25; margin: 6px 0 10px; }
.entry-meta { color: var(--muted); font-size: .88rem; margin-bottom: 20px; }
.entry-thumb { margin: 0 -28px 24px; }
@media (max-width: 600px) { .entry-thumb { margin: 0 -18px 20px; } }
.entry-content h2, .entry-content h3 { line-height: 1.3; margin-top: 1.8em; }
.entry-content blockquote { margin: 1.5em 0; padding: 4px 20px; border-left: 4px solid var(--accent); color: var(--muted); }
.entry-content figure { margin: 1.5em 0; }
.entry-tags { margin-top: 24px; font-size: .88rem; }
.entry-tags a { display: inline-block; background: var(--bg); border: 1px solid var(--line); padding: 2px 10px; border-radius: 99px; margin: 0 4px 6px 0; color: var(--text); }

/* Review box */
.review-box { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0 0 28px; }
.review-head { display: flex; gap: 18px; align-items: center; padding: 18px; background: var(--bg); }
.review-head h3 { margin: 0 0 4px; font-size: 1.1rem; }
.review-head p { margin: 0; color: var(--muted); font-size: .92rem; }
.review-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 0; border-top: 1px solid var(--line); }
.review-specs div { padding: 12px 18px; border-bottom: 1px solid var(--line); }
.review-specs dt { font-size: .75rem; text-transform: uppercase; color: var(--muted); letter-spacing: .04em; }
.review-specs dd { margin: 0; font-weight: 600; }
.review-pc { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .review-pc { grid-template-columns: 1fr; } }
.review-pc > div { padding: 16px 18px; }
.review-pc h4 { margin: 0 0 8px; font-size: .95rem; }
.review-pc ul { margin: 0; padding-left: 0; list-style: none; font-size: .92rem; }
.review-pc li { padding-left: 22px; position: relative; margin-bottom: 4px; }
.pros li::before { content: "+"; color: var(--good); font-weight: 800; position: absolute; left: 4px; }
.cons li::before { content: "−"; color: var(--bad); font-weight: 800; position: absolute; left: 4px; }

/* Sidebar & widgets */
.sidebar .widget { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 24px; }
.sidebar .widget-title { margin: 0 0 10px; font-size: 1rem; }
.sidebar ul { margin: 0; padding-left: 18px; }

/* Search form */
.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] { flex: 1; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.search-form button { padding: 9px 14px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 700; cursor: pointer; }

/* Pagination */
.pagination { margin-top: 32px; }
.pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers { padding: 6px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; color: var(--text); }
.pagination .current { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Post nav & comments */
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 24px; font-size: .92rem; }
.comments-area { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 24px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { border-bottom: 1px solid var(--line); padding: 12px 0; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.comment-form .submit { background: var(--accent); color: #fff; border: 0; padding: 10px 20px; border-radius: 8px; font-weight: 700; cursor: pointer; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--card); padding: 20px 0; color: var(--muted); font-size: .88rem; text-align: center; }

/* WP core */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: .85rem; color: var(--muted); text-align: center; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.sticky .card { border-color: var(--accent); }
