/*
Theme Name: Wahl-o-Mat Quiz Theme
Theme URI: https://example.com/wahl-o-mat-quiz
Author: Lovable
Author URI: https://lovable.dev
Description: A minimal WordPress theme designed to embed and showcase the Wahl-o-Mat style quiz application via iframe integration.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
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: wahlquiz
Tags: one-column, custom-background, custom-logo, featured-images
*/

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

:root {
  --wq-primary: hsl(222, 60%, 22%);
  --wq-primary-light: hsl(222, 60%, 32%);
  --wq-accent: hsl(38, 92%, 50%);
  --wq-bg: hsl(220, 20%, 97%);
  --wq-text: hsl(222, 47%, 11%);
  --wq-muted: hsl(220, 10%, 46%);
  --wq-border: hsl(220, 13%, 87%);
  --wq-radius: 0.75rem;
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--wq-bg);
  color: var(--wq-text);
  line-height: 1.6;
}

a {
  color: var(--wq-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* ── Layout ─────────────────────────────────── */
.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-content {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ── Header ─────────────────────────────────── */
.site-header {
  background: linear-gradient(135deg, var(--wq-primary), var(--wq-primary-light));
  color: white;
  padding: 1.25rem 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-title a {
  color: white;
  text-decoration: none;
}

.site-description {
  font-size: 0.875rem;
  opacity: 0.8;
  margin-top: 0.25rem;
}

/* ── Navigation ─────────────────────────────── */
.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.main-navigation a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
  color: var(--wq-accent);
  text-decoration: none;
}

/* ── Quiz Embed ─────────────────────────────── */
.quiz-embed {
  width: 100%;
  max-width: 800px;
  margin: 2rem auto;
  border-radius: var(--wq-radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.quiz-embed iframe {
  width: 100%;
  height: 700px;
  border: none;
  display: block;
}

@media (max-width: 640px) {
  .quiz-embed iframe {
    height: 85vh;
  }
}

/* ── Footer ─────────────────────────────────── */
.site-footer {
  background: var(--wq-primary);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 1.5rem 2rem;
  font-size: 0.8125rem;
}

.site-footer a {
  color: var(--wq-accent);
}

/* ── Post / Page Content ────────────────────── */
.entry-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.entry-content {
  font-size: 1.0625rem;
  line-height: 1.8;
}

.entry-content p {
  margin-bottom: 1.25rem;
}
