/*
Theme Name: Quotes Engine Theme
Description: Minimal, mobile-first theme built for the quotes-engine plugin. No block-library bloat, no widgets/comments overhead - just the styles the plugin templates need.
Author: SMS4Smile
Version: 1.0.0
*/

:root {
  --qe-bg: #FBF8F3;
  --qe-bg-alt: #F3ECE1;
  --qe-text: #333333;
  --qe-heading: #4A2545;
  --qe-accent: #E8604C;
  --qe-accent-dark: #C94633;
  --qe-teal: #2A9D8F;
  --qe-border: #E6DDD0;
  --qe-max-width: 800px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--qe-bg);
  color: var(--qe-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  color: var(--qe-heading);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 12px;
}
h1 { font-size: 1.9rem; }
h2 { font-size: 1.3rem; margin-top: 32px; }

.qe-site-header {
  background: var(--qe-heading);
  padding: 16px 20px;
}
.qe-site-header a.qe-logo {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.qe-site-header a.qe-logo:hover { color: var(--qe-accent); text-decoration: none; }
.qe-site-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.qe-site-nav {
  margin-top: 8px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.qe-site-nav a { color: #E9DCE3; font-size: 0.92rem; }
.qe-site-nav a:hover { color: #fff; }

.qe-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.qe-nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
}

@media (max-width: 600px) {
  .qe-nav-toggle { display: flex; }
  .qe-site-nav {
    display: none;
    flex-direction: column;
    gap: 0;
    margin-top: 10px;
  }
  .qe-site-nav.qe-nav-open { display: flex; }
  .qe-site-nav a { padding: 10px 0; border-top: 1px solid rgba(255,255,255,0.15); }
  .qe-site-nav a:first-child { border-top: none; }
}

.qe-layout {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}
.qe-layout .qe-wrap {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 24px 0 60px;
}
.qe-sidebar {
  flex: 0 0 260px;
  padding: 24px 0 40px;
}
.qe-sidebar-section { margin-bottom: 28px; }
.qe-sidebar-section h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--qe-accent);
}
.qe-sidebar-list { list-style: none; margin: 0; padding: 0; }
.qe-sidebar-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--qe-border);
  font-size: 0.92rem;
}
.qe-sidebar-list a { color: var(--qe-text); }
.qe-sidebar-list a:hover { color: var(--qe-accent-dark); }
.qe-sidebar-count { color: #999; font-size: 0.82rem; white-space: nowrap; }

@media (max-width: 800px) {
  .qe-layout { flex-direction: column; gap: 0; }
  .qe-sidebar { flex: none; width: 100%; padding-top: 8px; }
}

.qe-wrap {
  max-width: var(--qe-max-width);
  margin: 0 auto;
  padding: 24px 18px 60px;
}

.qe-meta { color: #6b6b6b; font-size: 0.95rem; }

.qe-quote-list { list-style: none; padding: 0; margin: 0; }
.qe-quote-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--qe-border);
}
.qe-quote-list li a { color: var(--qe-text); font-size: 1.05rem; }
.qe-quote-list li a:hover { color: var(--qe-accent-dark); }

.qe-tag-link, .qe-author-categories a, .qe-category-authors a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--qe-bg-alt);
  border: 1px solid var(--qe-border);
  color: var(--qe-heading);
  font-size: 0.88rem;
}
.qe-tag-link:hover, .qe-author-categories a:hover, .qe-category-authors a:hover {
  background: var(--qe-teal);
  border-color: var(--qe-teal);
  color: #fff;
  text-decoration: none;
}

.qe-pagination {
  margin: 28px 0;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.95rem;
}
.qe-pagination a {
  padding: 4px 9px;
  border-radius: 4px;
}
.qe-pagination a:hover { background: var(--qe-bg-alt); text-decoration: none; }
.qe-pagination strong {
  background: var(--qe-accent);
  color: #fff;
  border-radius: 4px;
  padding: 4px 9px;
}

.qe-quote-card {
  background: #fff;
  border: 1px solid var(--qe-border);
  border-radius: 10px;
  padding: 28px 24px;
  margin: 16px 0;
}
.qe-quote-card blockquote {
  font-size: 1.4rem;
  color: var(--qe-heading);
  margin: 0 0 14px;
  line-height: 1.45;
}
.qe-quote-card .qe-quote-author { font-weight: 700; color: var(--qe-accent-dark); }

form input[type="text"] {
  border: 1px solid var(--qe-border);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 1rem;
}
form button {
  background: var(--qe-accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 1rem;
  cursor: pointer;
}
form button:hover { background: var(--qe-accent-dark); }

@media (max-width: 600px) {
  h1 { font-size: 1.5rem; }
  .qe-quote-card blockquote { font-size: 1.15rem; }
  .qe-wrap { padding: 16px 14px 40px; }
}
