/*
Theme Name: Quiz With Floris
Version: 1.0.0
Text Domain: quizwithfloris
*/

:root {
  --green: #2EECC7;
  --pink: #FF5BA0;
  --yellow: #F4E87C;
  --purple: #6B2D9E;
  --dark: #1a1a2e;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #fff;
  color: #000;
  font-family: 'articulat-cf', sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
}

a { color: #000; text-decoration: underline; }
a:hover { text-decoration: none; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Twemoji */
img.emoji {
  height: 1em;
  width: 1em;
  vertical-align: -0.1em;
  display: inline;
  max-width: none;
}

/* ── Header ─────────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding-top: 0;
  padding-bottom: 0;
  max-width: none;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* ── Logo column (logo + instagram stacked) ─────────────────────────────────── */
.header-logo-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
  order: 1;
}
.site-logo { outline: none; text-decoration: none; display: block; }
.site-logo:focus { outline: none; }
.site-logo img {
  height: 75px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-top: 8px;
}

/* Instagram — absolutely positioned, hangs below the header into white page area */
.site-header { position: relative; }
.header-instagram {
  position: absolute;
  left: 2rem;
  top: calc(100% + 6px);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  color: #ff2a3f;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.22rem 0.65rem 0.22rem 0.45rem;
  border-radius: 0 0 5px 5px;
  transform: rotate(-2deg);
  transform-origin: top left;
  transition: opacity 0.15s;
  white-space: nowrap;
  z-index: 10;
}
.header-instagram svg { flex-shrink: 0; color: #ff2a3f; width: 16px; height: 16px; }
.header-instagram span {
  font-family: "itc-bradley-hand-std", sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
}
.header-instagram:hover { opacity: 0.6; text-decoration: none; }
@media (max-width: 900px) { .header-instagram span { display: none; } }
@media (max-width: 700px) { .header-instagram { display: none; } }

/* ── Nav (inside header) ────────────────────────────────────────────────────── */
.main-nav { background: transparent; border: none; order: 2; }

/* ── User menu column — right of header ─────────────────────────────────────── */
.header-user-col {
  order: 3;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.header-user-default {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.header-user-link {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 3px;
  transition: all 0.15s;
}
.header-user-link:hover { color: #fff; border-color: rgba(255,255,255,0.6); text-decoration: none; }
.header-user-link--signup {
  background: #fff;
  color: var(--dark);
  border-color: #fff;
  font-weight: 700;
}
.header-user-link--signup:hover { background: rgba(255,255,255,0.88); color: var(--dark); border-color: #fff; }

/* Logged-in user dropdown */
.header-user-loggedin { position: relative; }
.header-user-trigger {
  background: none;
  border: none;
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  font-family: inherit;
  font-weight: 600;
  padding: 0.35rem 0.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.15s;
  white-space: nowrap;
}
.header-user-trigger:hover { color: #fff; }
.header-user-chevron { opacity: 0.5; transition: transform 0.15s; flex-shrink: 0; }
.header-user-loggedin.is-open .header-user-chevron { transform: rotate(180deg); }
.header-user-dropdown {
  display: none;
  position: absolute;
  right: 0; top: calc(100% + 6px);
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  min-width: 140px;
  z-index: 300;
  overflow: hidden;
}
.header-user-loggedin.is-open .header-user-dropdown { display: block; }
.header-user-dropdown-item {
  display: block;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: #222;
  text-decoration: none;
  transition: background 0.1s;
}
.header-user-dropdown-item:hover { background: #f5f5f5; color: #000; text-decoration: none; }
.header-user-dropdown-item--logout { border-top: 1px solid #eee; color: #888; }
.header-user-dropdown-item--logout:hover { color: #000; }

/* User menu nav (when assigned in Menus) */
.user-menu ul { list-style: none; display: flex; gap: 0; align-items: center; }
.user-menu > ul > li > a {
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.4rem 0.65rem;
  display: block;
  letter-spacing: 0.03em;
  transition: color 0.15s;
}
.user-menu > ul > li > a:hover { color: #fff; }
.user-menu li { position: relative; }
.user-menu li ul {
  display: none;
  position: absolute;
  right: 0; top: 100%;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
  min-width: 160px;
  z-index: 200;
}
.user-menu li ul li { display: block; }
.user-menu li ul a { color: #222; font-size: 0.88rem; font-weight: 500; padding: 0.55rem 1rem; display: block; }
.user-menu li ul a:hover { background: #f5f5f5; color: #000; }
.user-menu li:hover > ul,
.user-menu li:focus-within > ul { display: block; }

.nav-instagram { display: none; }
.main-nav ul { list-style: none; display: flex; gap: 0; flex-wrap: wrap; align-items: center; }

.main-nav > ul > li > a {
  display: block;
  padding: 0.6rem 1.1rem;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
  font-family: 'articulat-cf', sans-serif;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  transition: color 0.15s;
}
.main-nav > ul > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1.1rem;
  right: 1.1rem;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform 0.2s ease;
  transform-origin: left;
}
.main-nav > ul > li > a:hover { color: #fff; text-decoration: none; }
.main-nav > ul > li > a:hover::after,
.main-nav > ul > li:focus-within > a::after { transform: scaleX(1); }

.main-nav li { position: relative; }
.main-nav li ul {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #fff;
  min-width: 200px;
  list-style: none;
  z-index: 100;
  padding: 0.4rem;
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
  border-radius: 6px;
}
.main-nav li ul li { display: block; }
.main-nav li ul a {
  display: block;
  padding: 0.55rem 0.85rem;
  white-space: nowrap;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: 'articulat-cf', sans-serif;
  color: #222;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.12s, color 0.12s;
}
.main-nav li ul a:hover { background: #f0f0f0; color: #000; text-decoration: none; }
.main-nav li:hover > ul,
.main-nav li:focus-within > ul { display: block; }
.main-nav a, .main-nav a:hover { text-decoration: none; }

@media (max-width: 900px) { .site-logo img { height: 72px; } }
@media (max-width: 700px) {
  .main-nav { display: none; }
  .site-logo img { height: 60px; }
}

/* ── Main ────────────────────────────────────────────────────────────────────── */
.site-content { padding: 1.5rem 0; }

/* ── Homepage ────────────────────────────────────────────────────────────────── */
.homepage-hero { padding-top: 0.6rem; padding-bottom: 0; }

.section-band { padding: 0; margin-bottom: 1.5rem; }

.homepage-headline {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 0.6rem;
  color: #000;
  max-width: 700px;
}

/* Section headings — no border */
.section-heading {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
  display: inline-block;
  color: #000;
}

/* ── Quiz grid ───────────────────────────────────────────────────────────────── */
.quiz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 0.75rem;
}

/* Compact horizontal card layout */
.quiz-card {
  border: none;
  border-radius: 8px;
  padding: 0.6rem;
  text-decoration: none;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.7rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  background: #fff;
}
.quiz-card:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.11);
}

.quiz-card-thumb {
  width: 120px;
  height: 90px;
  min-width: 120px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  margin: 0;
}

.quiz-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding-top: 0.3rem;
}

.quiz-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: #000;
}

.quiz-card-excerpt {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
  margin-top: 0.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.quiz-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.3rem;
  font-size: 0.82rem;
  color: #bbb;
}

.quiz-card-plays { font-size: 0.82rem; color: #bbb; }

/* Remove category badges entirely */
.quiz-card-category { display: none; }

/* ── Layout: 3/4 + 1/4 ───────────────────────────────────────────────────────── */
.content-sidebar-layout {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 3rem;
  align-items: start;
}
.content-main .quiz-grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .content-main .quiz-grid { grid-template-columns: 1fr; } }

/* ── Quiz page layout (shared across all quiz pages) ─────────────────────────── */
.quiz-page-layout {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 3rem;
  align-items: start;
  margin: 2.5rem 0 4rem;
}
.quiz-page-layout > *:first-child { min-width: 0; }
.quiz-page-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 20px;
}

/* ── Sidebar ─────────────────────────────────────────────────────────────────── */
.content-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.sidebar-widget {
  border-radius: 14px;
  padding: 1.1rem 1.25rem 1.35rem;
  background: #F5EFFA;
}
.sidebar-widget--plays {
  background: var(--dark);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sidebar-plays-count {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin: 0 0 0.3rem;
  min-height: 3rem;
}
.sidebar-plays-count.is-loading { opacity: 0.2; }
.sidebar-plays-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
  margin: 0;
}
.sidebar-widget:nth-child(2) { background: #E8FCFA; }
.sidebar-widget:nth-child(3) { background: #FFF0F6; }
.sidebar-widget:nth-child(4) { background: #FFFBE6; }

.sidebar-widget-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  color: #333;
}
.sidebar-widget p { font-size: 1rem; line-height: 1.55; }
.sidebar-widget a { color: #000; }

.sidebar-popular {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.sidebar-popular li { border-bottom: 1px solid rgba(0,0,0,0.07); }
.sidebar-popular li:last-child { border-bottom: none; }
.sidebar-popular a {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.45rem 0;
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--dark);
  text-decoration: none;
  transition: color 0.15s;
}
.sidebar-popular a:hover { color: var(--green); text-decoration: none; }
.sidebar-popular .sb-emoji {
  flex-shrink: 0;
  width: 1.1rem;
  display: flex;
  align-items: center;
  padding-top: 0.05rem;
}
.sidebar-popular .sb-emoji img {
  width: 0.9rem !important;
  height: 0.9rem !important;
}

.sidebar-cta {
  display: inline-block;
  margin-top: 1rem;
  padding: 10px 22px;
  background: var(--green);
  color: #000;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 8px;
}
.sidebar-cta:hover { background: #1dd4b0; color: #000; text-decoration: none; }

/* Newsletter */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.newsletter-form input[type="email"] {
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 6px;
  padding: 0.5rem 0.7rem;
  font-family: inherit;
  font-size: 0.9rem;
  width: 100%;
  outline: none;
  background: rgba(255,255,255,0.7);
}
.newsletter-form input[type="email"]:focus { border-color: #555; }
.newsletter-form button {
  background: var(--green);
  color: #000;
  border: none;
  padding: 10px 22px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  width: 100%;
  border-radius: 8px;
}
.newsletter-form button:hover { background: #1dd4b0; }

/* ── Footer ──────────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  color: #fff;
  padding: 3.5rem 0 0;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;

}
.footer-logo img {
  height: 150px;
  object-fit: contain;
  margin-bottom: 1.25rem;
}
.footer-mission {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.6);
  max-width: 340px;
  margin-bottom: 1.5rem;
}
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.15s;
  white-space: nowrap;
}
.footer-social-link:hover { color: #fff; text-decoration: none; }
.footer-nav-heading {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}
.footer-nav { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-nav a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 1rem; }
.footer-nav a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  padding: 1.25rem 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.3);
  border-top: 1px solid rgba(255,255,255,0.07);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .content-sidebar-layout { grid-template-columns: 1fr; }
  .quiz-page-layout { grid-template-columns: 1fr; }
  .quiz-page-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .content-sidebar { flex-direction: row; flex-wrap: wrap; }
  .sidebar-widget { flex: 1 1 220px; }
}
@media (max-width: 600px) {
  .content-sidebar { flex-direction: column; }
  .quiz-page-sidebar { flex-direction: column; }
  .homepage-headline { font-size: 1.5rem; }
}

/* ── Hamburger / Mobile nav ──────────────────────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; }

.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
  overflow-y: auto;
}
.mobile-nav-overlay.is-open { display: flex; }
.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 3rem 2rem;
  position: relative;
}
.mobile-nav-logo img {
  height: 100px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  margin-bottom: 2.5rem;
}
.nav-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}
.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.mobile-nav a { font-size: 1.5rem; font-weight: 700; text-decoration: none; }
.mobile-nav a:hover { text-decoration: underline; }

@media (max-width: 700px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
}
