/*
Theme Name: WowLeveling DE
Theme URI: https://wowleveling.de/
Author: TWS_Crew (theme scaffold by ChatGPT)
Author URI: https://wowleveling.de/
Description: Lightweight, responsive theme for World of Warcraft profession & leveling guides. Includes sticky Table of Contents, Quick Links sidebar, light/dark toggle, styled headings, and Wowhead iconized tooltips.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: wowleveling
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, custom-menu, one-column, two-columns, three-columns, sticky-post, editor-style, featured-images
*/

/* Load Titillium Web */
@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:wght@400;600;700&display=swap');

:root{
  --wl-font: "Titillium Web", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --wl-bg: #ffffff;
  --wl-surface: #f7f8fa;
  --wl-surface-2: #eef2f3;
  --wl-text: #121517;
  --wl-muted: #55606a;
  --wl-border: rgba(17, 24, 39, 0.10);

  --wl-accent: #2f6b4c;      /* forest green */
  --wl-accent-2: #3b8a62;    /* hover */
  --wl-accent-soft: #e7f0ea; /* ToC active background */
  --wl-link: #2f6b4c;

  --wl-header-bg: #355843;
  --wl-header-text: #f3f7f4;

  --wl-radius: 16px;
  --wl-shadow: 0 10px 30px rgba(0,0,0,0.08);
  --wl-shadow-soft: 0 6px 18px rgba(0,0,0,0.06);

  --wl-max: 1180px;
  --wl-content: 720px;

  --wl-mobile-font: 18px;
  --wl-body-font: 17px;
}

html[data-theme="dark"]{
  --wl-bg: #0e1213;
  --wl-surface: #131a1c;
  --wl-surface-2: #172022;
  --wl-text: #f4f7f7;
  --wl-muted: #a7b3b7;
  --wl-border: rgba(255,255,255,0.10);

  --wl-accent: #53b883;
  --wl-accent-2: #6ad79c;
  --wl-accent-soft: rgba(83,184,131,0.12);

  --wl-header-bg: #0f1616;
  --wl-header-text: #eaf2ee;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: var(--wl-font);
  color: var(--wl-text);
  background: var(--wl-bg);
  font-size: var(--wl-body-font);
  line-height: 1.65;
}
img{max-width:100%;height:auto}
a{color: var(--wl-link); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px}
a:hover{color: var(--wl-accent-2)}
strong{font-weight: 700}
em{font-style: italic}
code, pre{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}

.wl-container{max-width: var(--wl-max); margin: 0 auto; padding: 0 18px}

.wl-header{
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--wl-header-bg);
  color: var(--wl-header-text);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.wl-header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height: 64px;
  gap: 14px;
}
.wl-brand{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 160px;
}
.wl-brand__mark{
  width: 32px; height: 32px;
  display:inline-flex; align-items:center; justify-content:center;
}
.wl-brand__title{
  display:flex; flex-direction:column; line-height:1.1;
}
.wl-brand__name{font-weight: 700; font-size: 18px; letter-spacing: .2px; color: var(--wl-header-text); text-decoration:none}
.wl-brand__tag{font-size: 12px; color: rgba(255,255,255,.78)}
.wl-brand__logo img{max-height: 34px; width:auto; display:block}
.wl-nav{
  display:flex;
  align-items:center;
  gap: 18px;
  flex: 1;
  justify-content:center;
}
.wl-nav a{
  color: rgba(255,255,255,.92);
  text-decoration:none;
  font-weight: 600;
  font-size: 16px;
  padding: 10px 8px;
  border-radius: 10px;
}
.wl-nav a:hover{background: rgba(255,255,255,.08)}
.wl-nav .current-menu-item > a,
.wl-nav .current_page_item > a{background: rgba(255,255,255,.10)}

.wl-header__tools{
  display:flex; align-items:center; gap: 10px;
}
.wl-iconbtn{
  display:inline-flex; align-items:center; justify-content:center;
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.08);
  color: var(--wl-header-text);
  cursor:pointer;
}
.wl-iconbtn:hover{background: rgba(255,255,255,0.10)}
.wl-search{
  position:relative;
}
.wl-search input[type="search"]{
  width: 240px;
  max-width: 32vw;
  padding: 10px 12px 10px 38px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.10);
  color: var(--wl-header-text);
  outline: none;
}
.wl-search input::placeholder{color: rgba(255,255,255,0.65)}
.wl-search svg{
  position:absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  opacity: .9;
}
.wl-mobilebtn{display:none}

.wl-mobilemenu{
  display:none;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.wl-mobilemenu__inner{
  padding: 12px 0 18px;
}
.wl-mobilemenu nav a{
  display:block;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration:none;
  color: rgba(255,255,255,.92);
  font-weight: 600;
}
.wl-mobilemenu nav a:hover{background: rgba(255,255,255,0.08)}

.wl-main{
  padding: 28px 0 40px;
}

.wl-layout{
  display:grid;
  grid-template-columns: 240px minmax(0, 1fr) 280px;
  grid-template-areas: "quick content toc";
  gap: 22px;
  align-items:start;
}
.wl-quicklinks{grid-area: quick}
.wl-content{grid-area: content}
.wl-toc{grid-area: toc}

.wl-card{
  background: var(--wl-surface);
  border: 1px solid var(--wl-border);
  border-radius: var(--wl-radius);
  box-shadow: var(--wl-shadow-soft);
}
.wl-card__inner{padding: 16px}

.wl-asideTitle{
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: .2px;
}

.wl-quicklinks .wl-card{
  background: transparent;
  border: none;
  box-shadow: none;
}
.wl-quicklinks .wl-card__inner{
  padding: 0 10px;
  border-left: 2px solid rgba(17,24,39,0.12);
  border-right: 2px solid rgba(17,24,39,0.12);
}
html[data-theme="dark"] .wl-quicklinks .wl-card__inner{
  border-left-color: rgba(255,255,255,0.14);
  border-right-color: rgba(255,255,255,0.14);
}
.wl-quicklinks ul{list-style:none; margin: 0; padding: 0}
.wl-quicklinks li{margin: 0}
.wl-quicklinks a{
  display:block;
  padding: 10px 8px;
  font-size: 22px;
  font-weight: 650;
  text-decoration:none;
  color: var(--wl-text);
  border-radius: 12px;
}
.wl-quicklinks a:hover{background: var(--wl-surface)}
.wl-quicklinks .current-menu-item > a,
.wl-quicklinks .current_page_item > a{
  color: var(--wl-accent);
  text-decoration: underline;
  text-decoration-thickness: 3px;
}

.wl-toc{
  position: sticky;
  top: 88px;
  align-self: start;
}

/* Sticky sidebars (desktop) */
.wl-quicklinks{
  position: sticky;
  top: 88px;
  align-self: start;
}
.wl-toc__list{
  list-style:none;
  margin: 10px 0 0;
  padding: 0;
}
.wl-toc__item a{
  display:block;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration:none;
  color: var(--wl-text);
  font-size: 18px;
  font-weight: 600;
}
.wl-toc__item a:hover{background: var(--wl-surface-2)}
.wl-toc__item.is-active a{
  background: var(--wl-accent-soft);
  border-right: 4px solid var(--wl-accent);
}
.wl-toc__item.is-active a{padding-right: 10px}

.wl-article{
  background: transparent;
}
.wl-articleHeader{
  margin-bottom: 14px;
}
.wl-title{
  font-size: 44px;
  line-height: 1.1;
  margin: 0 0 10px;
  letter-spacing: -0.3px;
}
.wl-meta{color: var(--wl-muted); font-size: 14px}
.wl-featured{
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid var(--wl-border);
  box-shadow: var(--wl-shadow-soft);
  margin: 14px 0 18px;
}
.wl-featured img{display:block; width:100%}

.wl-content .entry-content > *:first-child{margin-top:0}
.wl-content .entry-content > *{max-width: 100%}

.wl-content .entry-content h2,
.wl-content .entry-content .wp-block-heading:is(h2){
  margin: 34px 0 14px;
  font-size: 40px;
  line-height: 1.12;
  font-weight: 800;
  position: relative;
  padding-bottom: 16px;
}
.wl-content .entry-content h2::after,
.wl-content .entry-content .wp-block-heading:is(h2)::after{
  content:"";
  position:absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(148,163,184,0.45);
}
html[data-theme="dark"] .wl-content .entry-content h2::after{
  background: rgba(148,163,184,0.25);
}
.wl-content .entry-content h3{margin: 26px 0 10px; font-size: 26px; line-height:1.2}
.wl-content .entry-content h4{margin: 20px 0 8px; font-size: 20px}
.wl-content .entry-content p{margin: 14px 0}
.wl-content .entry-content ul,
.wl-content .entry-content ol{padding-left: 1.2em}
.wl-content .entry-content li{margin: 8px 0}

.wl-content .entry-content blockquote{
  margin: 22px 0;
  padding: 18px 18px 18px 56px;
  border-radius: 18px;
  border: 1px solid var(--wl-border);
  background: linear-gradient(135deg, rgba(47,107,76,0.10), rgba(47,107,76,0.04));
  position: relative;
}
html[data-theme="dark"] .wl-content .entry-content blockquote{
  background: linear-gradient(135deg, rgba(83,184,131,0.14), rgba(83,184,131,0.05));
}
.wl-content .entry-content blockquote::before{
  content:"";
  position:absolute;
  left: 16px;
  top: 18px;
  width: 28px;
  height: 28px;
  opacity: .55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%232f6b4c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M4 4.5A2.5 2.5 0 0 1 6.5 2H20v20H6.5A2.5 2.5 0 0 0 4 24'/%3E%3Cpath d='M8 2v20'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}
.wl-content .entry-content blockquote p{margin:0}
.wl-content .entry-content blockquote cite{display:block; margin-top: 10px; color: var(--wl-muted)}

.wl-content .entry-content a{
  word-break: break-word;
}

/* Wowhead (iconizeLinks) quality classes: q1 can be pure white, which disappears on our light background */
html:not([data-theme="dark"]) .entry-content a.q1{
  color: #1f2937 !important;
}
html:not([data-theme="dark"]) .entry-content a.q1:hover{
  color: var(--wl-accent-2) !important;
}

.wl-content .entry-content :is(h2,h3,h4){scroll-margin-top: 90px}

/* Gutenberg align wide/full */
.entry-content .alignwide{margin-left:auto;margin-right:auto;max-width: var(--wl-max)}
.entry-content .alignfull{width:100vw; margin-left:calc(50% - 50vw); margin-right:calc(50% - 50vw);}

/* Promo block */
.wl-promo{
  border-radius: 22px;
  overflow:hidden;
  border: 1px solid var(--wl-border);
  background: radial-gradient(1200px 420px at 15% 20%, rgba(47,107,76,0.18), transparent),
              linear-gradient(135deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00));
  box-shadow: var(--wl-shadow);
}
html[data-theme="dark"] .wl-promo{
  background: radial-gradient(1200px 420px at 15% 20%, rgba(83,184,131,0.18), transparent),
              linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.00));
}
.wl-promo__inner{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 16px;
  padding: 18px;
  align-items:center;
}
.wl-promo__title{margin:0 0 8px; font-size: 26px; line-height:1.15; font-weight: 800}
.wl-promo__desc{margin:0; color: var(--wl-muted); font-size: 16px}
.wl-promo__cta{margin-top: 14px; display:flex; gap: 10px; align-items:center; flex-wrap:wrap}
.wl-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.00);
  background: var(--wl-accent);
  color: #fff;
  font-weight: 800;
  text-decoration:none;
  box-shadow: 0 10px 20px rgba(47,107,76,0.22);
}
.wl-btn:hover{background: var(--wl-accent-2); color:#fff}
.wl-btn--ghost{
  background: transparent;
  border: 1px solid var(--wl-border);
  color: var(--wl-text);
  box-shadow: none;
}
.wl-btn--ghost:hover{background: var(--wl-surface-2)}
.wl-promo__media{
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid var(--wl-border);
  background: var(--wl-surface);
  min-height: 150px;
  display:flex; align-items:center; justify-content:center;
}
.wl-promo__media img{width:100%; height:auto; display:block}

/* FAQ style for core/details */
.wp-block-details.is-style-wl-faq{
  border: 1px solid var(--wl-border);
  border-radius: 16px;
  background: var(--wl-surface);
  padding: 12px 14px;
  margin: 12px 0;
}
.wp-block-details.is-style-wl-faq summary{
  font-weight: 800;
  font-size: 18px;
  cursor:pointer;
}
.wp-block-details.is-style-wl-faq summary::marker{color: var(--wl-accent)}
.wp-block-details.is-style-wl-faq > :not(summary){margin-top: 10px; color: var(--wl-muted)}

/* Footer */
.wl-footer{
  border-top: 1px solid var(--wl-border);
  background: var(--wl-surface);
  padding: 26px 0;
}
.wl-footer__grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
  align-items:start;
}
.wl-footer__brand a{color: var(--wl-text); text-decoration:none}
.wl-footer__title{font-weight: 900; margin: 0 0 10px}
.wl-footer__muted{color: var(--wl-muted); margin: 0}
.wl-footer nav a{display:block; padding: 6px 0; text-decoration:none; color: var(--wl-text)}
.wl-footer nav a:hover{color: var(--wl-accent)}
.wl-footer__bottom{
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--wl-border);
  color: var(--wl-muted);
  font-size: 14px;
  display:flex;
  justify-content:space-between;
  gap: 12px;
  flex-wrap:wrap;
}

/* Search results */
.wl-searchTitle{font-size: 32px; margin: 0 0 12px}
.wl-searchItem{padding: 14px 0; border-bottom: 1px solid var(--wl-border)}
.wl-searchItem a{font-size: 22px; font-weight: 800; text-decoration:none}
.wl-searchItem p{margin: 6px 0 0; color: var(--wl-muted)}

/* 404 */
.wl-404{
  text-align:center;
  padding: 36px 0 10px;
}
.wl-404 h1{font-size: 54px; margin: 0 0 10px}
.wl-404 p{color: var(--wl-muted); max-width: 62ch; margin: 0 auto}
.wl-404__art{
  margin: 18px auto;
  max-width: 680px;
  border-radius: 22px;
  border: 1px solid var(--wl-border);
  background: linear-gradient(135deg, rgba(47,107,76,0.14), rgba(0,0,0,0.00));
  padding: 18px;
}
.wl-404__art svg{width:100%; height:auto}

/* Responsive */
@media (max-width: 1100px){
  .wl-layout{grid-template-columns: 220px minmax(0, 1fr) 260px}
  .wl-title{font-size: 40px}
}
@media (max-width: 980px){
  .wl-nav{display:none}
  .wl-mobilebtn{display:inline-flex}
  .wl-search input[type="search"]{width: 220px}
}
@media (max-width: 860px){
  body{font-size: var(--wl-mobile-font)}
  .wl-layout{
    grid-template-columns: 1fr;
    grid-template-areas:
      "toc"
      "content"
      "quick";
  }
  .wl-toc{position: relative; top: auto}
  .wl-quicklinks{position: relative; top: auto}
  .wl-search input[type="search"]{max-width: 48vw}
  .wl-title{font-size: 36px}
  .wl-content .entry-content h2{font-size: 32px}
  .wl-promo__inner{grid-template-columns: 1fr}
}


.wl-nav__list{list-style:none;margin:0;padding:0;display:flex;align-items:center;gap:18px}
.wl-nav__list > li{margin:0;padding:0}
