/*
Theme Name: WordGenerator
Theme URI: https://wordgenerator.net
Description: Custom theme recreating the 2015 WordGenerator.net design
Version: 1.0.0
Author: WordGenerator
License: GPL-2.0-or-later
Text Domain: wordgenerator
*/

/* ── Reset & Base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  background: #f0f0f0;
}

a { color: #1a6496; text-decoration: none; }
a:hover { color: #0d3b5e; text-decoration: underline; }

h1,h2,h3,h4 { color: #222; font-weight: bold; }
h1 { font-size: 26px; margin-bottom: 12px; }
h2 { font-size: 20px; margin-bottom: 10px; }
h3 { font-size: 16px; margin-bottom: 8px; }

p { margin-bottom: 12px; }
ul, ol { margin: 0 0 12px 20px; }

/* ── Layout ─────────────────────────────────────────────────────────────── */
#wrapper {
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 8px rgba(0,0,0,.15);
}

#header {
  background: #1a4e7a;
  padding: 0;
}

#header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}

#site-title a {
  color: #fff;
  font-size: 26px;
  font-weight: bold;
  letter-spacing: 1px;
  text-decoration: none;
}

#site-title a:hover { color: #cce4f6; text-decoration: none; }

#site-description {
  color: #a8cde6;
  font-size: 12px;
  margin-top: 2px;
}

/* ── Navigation ─────────────────────────────────────────────────────────── */
#nav {
  background: #2a6496;
  border-top: 1px solid #1a4e7a;
}

#nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

#nav ul li a {
  display: block;
  color: #fff;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  border-right: 1px solid #1a4e7a;
  transition: background .15s;
}

#nav ul li a:hover,
#nav ul li.current-menu-item a {
  background: #1a4e7a;
  text-decoration: none;
}

/* ── Content + Sidebar ─────────────────────────────────────────────────── */
#content-wrapper {
  display: flex;
  gap: 0;
  padding: 20px;
}

#main-content {
  flex: 1 1 660px;
  min-width: 0;
  padding-right: 20px;
}

#sidebar {
  flex: 0 0 220px;
  width: 220px;
}

/* ── Generator Box ─────────────────────────────────────────────────────── */
.generator-box {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 24px;
}

.generator-box h2 {
  color: #1a4e7a;
  border-bottom: 2px solid #2a6496;
  padding-bottom: 8px;
  margin-bottom: 16px;
  font-size: 20px;
}

.generator-form { margin-bottom: 14px; }

.generator-form label {
  display: inline-block;
  min-width: 140px;
  font-weight: bold;
  font-size: 13px;
  color: #444;
}

.generator-form select,
.generator-form input[type="number"],
.generator-form input[type="text"] {
  padding: 5px 8px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 13px;
  background: #fff;
  min-width: 80px;
}

.generator-form .form-row {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-generate {
  background: #5cb85c;
  color: #fff;
  border: none;
  padding: 9px 22px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 6px;
  transition: background .15s;
}
.btn-generate:hover { background: #449d44; }

.generator-results {
  margin-top: 16px;
  padding: 14px;
  background: #fff;
  border: 1px solid #d0e8f0;
  border-radius: 4px;
  min-height: 60px;
  font-size: 15px;
  line-height: 1.8;
  color: #222;
  display: none;
}

.generator-results.has-results { display: block; }

.result-item {
  padding: 3px 0;
  border-bottom: 1px solid #f0f0f0;
}
.result-item:last-child { border-bottom: none; }

.result-word {
  color: #1a4e7a;
  font-weight: bold;
  font-size: 16px;
}

/* ── Homepage Category Boxes ─────────────────────────────────────────────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.category-card {
  background: #f0f6fb;
  border: 1px solid #c2d9ec;
  border-radius: 4px;
  padding: 14px;
  text-align: center;
  transition: background .15s;
}
.category-card:hover { background: #daeaf7; }

.category-card a {
  color: #1a4e7a;
  font-weight: bold;
  font-size: 14px;
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
}
.category-card a:hover { text-decoration: underline; }

.category-card p {
  font-size: 12px;
  color: #555;
  margin: 0;
}

/* ── Sidebar Widgets ─────────────────────────────────────────────────────── */
.widget {
  margin-bottom: 20px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.widget-title {
  background: #2a6496;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  padding: 8px 12px;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget ul li {
  border-bottom: 1px solid #e5e5e5;
}

.widget ul li:last-child { border-bottom: none; }

.widget ul li a {
  display: block;
  padding: 7px 12px;
  font-size: 13px;
  color: #1a6496;
}

.widget ul li a:hover {
  background: #eaf3fb;
  text-decoration: none;
}

/* ── Page Content ────────────────────────────────────────────────────────── */
.page-content {
  padding: 0;
}

.page-title {
  color: #1a4e7a;
  border-bottom: 2px solid #2a6496;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
#footer {
  background: #2a6496;
  color: #cce4f6;
  text-align: center;
  padding: 14px 20px;
  font-size: 12px;
  border-top: 3px solid #1a4e7a;
}

#footer a { color: #fff; }
#footer a:hover { color: #cce4f6; }
#footer .footer-links { margin-bottom: 6px; }
#footer .footer-links a { margin: 0 8px; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  #content-wrapper { flex-direction: column; padding: 12px; }
  #main-content { padding-right: 0; }
  #sidebar { width: 100%; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  #nav ul { flex-direction: column; }
  #nav ul li a { border-right: none; border-bottom: 1px solid #1a4e7a; }
}

@media (max-width: 480px) {
  .category-grid { grid-template-columns: 1fr; }
  .generator-form label { min-width: 100%; margin-bottom: 4px; }
}
