/*
Theme Name: XQuizMe Theme
Theme URI: https://example.com/xquizme-theme
Author: Alon
Author URI: https://example.com
Description: ערכת עיצוב ייעודית לפלאגין XQuizMe — ממשק נקי, מותאם RTL, ללא תפריטי וורדפרס מיותרים.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: xquizme-theme
*/

/* ══════════════════════════════════════
   XQuizMe Theme — Base Styles
   ══════════════════════════════════════ */

:root {
  --xqmt-primary: #005ea5;
  --xqmt-primary-h: #004b84;
  --xqmt-text: #16324f;
  --xqmt-muted: #5d7187;
  --xqmt-bg: #f8fafc;
  --xqmt-surface: #ffffff;
  --xqmt-border: #d8e0e8;
  --xqmt-font: 'Assistant', 'Segoe UI', sans-serif;
  --xqmt-width: 1200px;
}

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

html {
  direction: rtl;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--xqmt-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--xqmt-text);
  background: var(--xqmt-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--xqmt-font);
  font-weight: 700;
  color: var(--xqmt-text);
  line-height: 1.3;
}

a {
  color: var(--xqmt-primary);
  text-decoration: none;
  transition: color .15s;
}
a:hover {
  color: var(--xqmt-primary-h);
}

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

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

.xqmt-main {
  flex: 1;
  width: 100%;
  max-width: var(--xqmt-width);
  margin: 0 auto;
  padding: 30px 20px 60px;
}

/* Full-width mode */
.xqmt-main.xqmt-full-width {
  max-width: 100%;
  padding-left: 40px;
  padding-right: 40px;
}

/* ── Page title ── */
.xqmt-page-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--xqmt-text);
  margin: 0 0 24px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--xqmt-primary);
  text-align: right;
}

/* Hidden title */
.xqmt-hide-title .xqmt-page-title {
  display: none !important;
}

/* ── Entry content ── */
.xqmt-content {
  font-size: 16px;
  line-height: 1.7;
  color: var(--xqmt-text);
}
.xqmt-content p { margin-bottom: 16px; }
.xqmt-content ul, .xqmt-content ol { margin: 0 20px 16px 0; }
.xqmt-content img { border-radius: 6px; }
.xqmt-content blockquote {
  border-right: 4px solid var(--xqmt-primary);
  padding: 12px 20px;
  margin: 16px 0;
  background: rgba(0,94,165,.04);
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: var(--xqmt-muted);
}

/* ── Footer ── */
.xqmt-footer {
  background: var(--xqmt-surface);
  border-top: 1px solid var(--xqmt-border);
  padding: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--xqmt-muted);
  font-family: var(--xqmt-font);
}

/* ── Hide WP nav menus ── */
.xqmt-hide-wp-menu .xqmt-wp-nav {
  display: none !important;
}

/* ── WP nav when visible ── */
.xqmt-wp-nav {
  background: var(--xqmt-surface);
  border-bottom: 1px solid var(--xqmt-border);
  padding: 10px 20px;
}
.xqmt-wp-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: var(--xqmt-width);
  margin: 0 auto;
}
.xqmt-wp-nav li a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--xqmt-text);
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.xqmt-wp-nav li a:hover,
.xqmt-wp-nav li.current-menu-item a {
  background: var(--xqmt-primary);
  color: #fff;
}

/* ── 404 ── */
.xqmt-404 {
  text-align: center;
  padding: 80px 20px;
}
.xqmt-404-code {
  font-size: 72px;
  font-weight: 800;
  color: var(--xqmt-primary);
  opacity: .3;
  line-height: 1;
}
.xqmt-404 h1 {
  font-size: 28px;
  margin: 16px 0 8px;
}
.xqmt-404 p {
  font-size: 16px;
  color: var(--xqmt-muted);
  margin-bottom: 24px;
}
.xqmt-404 a {
  display: inline-block;
  padding: 12px 28px;
  background: var(--xqmt-primary);
  color: #fff;
  border-radius: 6px;
  font-weight: 700;
  transition: background .15s;
}
.xqmt-404 a:hover { background: var(--xqmt-primary-h); color: #fff; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .xqmt-main {
    padding: 20px 14px 40px;
  }
  .xqmt-main.xqmt-full-width {
    padding-left: 14px;
    padding-right: 14px;
  }
  .xqmt-page-title {
    font-size: 22px;
  }
}
