/*
Theme Name: ToolGuide
Theme URI: https://toolguide.online
Author: ToolGuide Team
Author URI: https://toolguide.online
Description: A clean, fast, minimal theme built for ToolGuide.online — reviews and guides for online tools, software and apps. Shows 4 articles per page on the homepage and archive pages.
Version: 1.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: toolguide
*/

:root {
  --tg-bg: #f7f8fa;
  --tg-card: #ffffff;
  --tg-text: #1c1e21;
  --tg-muted: #5f6570;
  --tg-accent: #2f6fed;
  --tg-border: #e6e8ec;
  --tg-radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--tg-bg);
  color: var(--tg-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
}

a { color: var(--tg-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.tg-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.tg-header {
  background: var(--tg-card);
  border-bottom: 1px solid var(--tg-border);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.tg-header .tg-container { display: flex; align-items: center; justify-content: space-between; }
.tg-logo { font-size: 22px; font-weight: 800; color: var(--tg-text); }
.tg-logo span { color: var(--tg-accent); }
.tg-nav ul { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; }
.tg-nav a { color: var(--tg-text); font-weight: 600; font-size: 15px; }

/* Hero */
.tg-hero {
  padding: 40px 0 10px;
}
.tg-hero h1 { font-size: 30px; margin: 0 0 6px; }
.tg-hero p { color: var(--tg-muted); margin: 0; }

/* Article grid: 4 per page (2 columns x 2 rows) */
.tg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 30px 0 10px;
}
@media (max-width: 760px) {
  .tg-grid { grid-template-columns: 1fr; }
}

.tg-card {
  background: var(--tg-card);
  border: 1px solid var(--tg-border);
  border-radius: var(--tg-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.tg-card .tg-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg,#eef2ff,#e6e8ec);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tg-muted);
  font-size: 13px;
}
.tg-card .tg-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tg-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.tg-card-cat { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--tg-accent); margin-bottom: 8px; }
.tg-card h2 { font-size: 19px; margin: 0 0 10px; line-height: 1.35; }
.tg-card h2 a { color: var(--tg-text); }
.tg-card p { color: var(--tg-muted); font-size: 14.5px; margin: 0 0 14px; flex: 1; }
.tg-card .tg-meta { font-size: 12.5px; color: var(--tg-muted); border-top: 1px solid var(--tg-border); padding-top: 10px; }

/* Pagination */
.tg-pagination { display: flex; gap: 10px; justify-content: center; padding: 30px 0 50px; }
.tg-pagination a, .tg-pagination span {
  padding: 8px 14px; border: 1px solid var(--tg-border); border-radius: 8px; color: var(--tg-text); font-size: 14px;
}
.tg-pagination .current { background: var(--tg-accent); color: #fff; border-color: var(--tg-accent); }

/* Single article */
.tg-single { padding: 40px 0 60px; max-width: 780px; margin: 0 auto; }
.tg-single h1 { font-size: 30px; margin-bottom: 10px; }
.tg-single .tg-meta { color: var(--tg-muted); font-size: 13.5px; margin-bottom: 24px; }
.tg-single .content h2 { font-size: 22px; margin-top: 32px; }
.tg-single .content p { margin-bottom: 16px; font-size: 16.5px; }
.tg-single .content ul { margin-bottom: 16px; }

/* Footer */
.tg-footer {
  border-top: 1px solid var(--tg-border);
  padding: 26px 0;
  margin-top: 30px;
  color: var(--tg-muted);
  font-size: 13.5px;
  text-align: center;
}
