/* ============================================================
   Extreme.Pro main stylesheet
   Light theme, yellow accent, Oswald display + Inter body
   ============================================================ */

:root {
  --color-bg: #ffffff;
  --color-fg: #14141c;
  --color-muted: #6b6f7a;
  --color-border: #e6e7eb;
  --color-surface-dark: #14141c;
  --color-surface-darker: #0d0d14;
  --color-surface-topbar: #1f2230;
  --color-on-dark: #fafafa;
  --color-on-dark-muted: #a1a4ad;
  --color-accent: #f4d03f;          
  --color-accent-fg: #14141c;
  --container: 1200px;
  --radius: 4px;
  --font-display: "Oswald", "Arial Black", sans-serif;
  --font-sans: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-fg);
  background: var(--color-bg);
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--color-accent); }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4, .ep-logo__text, .ep-nav__list, .ep-tag {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  font-weight: 700;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus { left: 1rem; top: 1rem; position: fixed; background: #fff; padding: .5rem 1rem; z-index: 9999; }

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

/* ---------- Top bar ---------- */
.ep-topbar {
  background: var(--color-surface-topbar);
  color: var(--color-on-dark);
  font-size: 12px;
}
.ep-topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 16px;
  gap: 12px;
}
.ep-topbar__social { display: flex; align-items: center; gap: 12px; }
.ep-social-link { color: var(--color-on-dark-muted); display: inline-flex; }
.ep-social-link:hover { color: var(--color-accent); }
.ep-topbar__cta {
  margin-left: 8px;
  color: var(--color-on-dark-muted);
  font-weight: 700;
}
.ep-topbar__cta:hover { color: var(--color-accent); }
.ep-search { display: flex; align-items: center; gap: 6px; }
.ep-search__input {
  background: transparent; border: 0; color: var(--color-on-dark);
  padding: 4px 8px; outline: none; width: 160px;
  border-bottom: 1px solid transparent;
}
.ep-search__input::placeholder { color: var(--color-on-dark-muted); }
.ep-search__input:focus { border-bottom-color: var(--color-accent); }
.ep-search__btn { background: transparent; border: 0; color: var(--color-on-dark-muted); padding: 4px; }
.ep-search__btn:hover { color: var(--color-accent); }
@media (min-width: 768px) {
  .ep-search__input { width: 240px; }
}
@media (max-width: 767px) {
  .ep-topbar__cta { display: none; }
}

/* ---------- Header ---------- */
.ep-header { background: var(--color-bg); border-bottom: 1px solid var(--color-border); }
.ep-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 16px; gap: 24px;
}
.ep-logo__text {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-fg);
  letter-spacing: -0.02em;
}
.ep-logo__dot { color: var(--color-accent); }
@media (min-width: 768px) {
  .ep-logo__text { font-size: 34px; }
}

.ep-nav--desktop { display: none; }
@media (min-width: 1024px) {
  .ep-nav--desktop { display: block; }
}
.ep-nav__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 24px;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
}
.ep-nav__list a { color: var(--color-fg); }
.ep-nav__list a:hover, .ep-nav__list .current-menu-item > a { color: var(--color-accent); }

.ep-burger {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 6px; border: 0; background: transparent; color: var(--color-fg);
  border-radius: var(--radius);
}
@media (min-width: 1024px) { .ep-burger { display: none; } }

/* ---------- Mobile menu ---------- */
.ep-mobile-menu {
  position: fixed; inset: 0; z-index: 1000;
  pointer-events: none; opacity: 0;
  transition: opacity .25s ease;
}
.ep-mobile-menu.is-open { pointer-events: auto; opacity: 1; }
.ep-mobile-menu__backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,.7);
}
.ep-mobile-menu__panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: 85%; max-width: 380px;
  background: var(--color-surface-darker); color: var(--color-on-dark);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s ease;
  box-shadow: -10px 0 30px rgba(0,0,0,.4);
}
.ep-mobile-menu.is-open .ep-mobile-menu__panel { transform: translateX(0); }
.ep-mobile-menu__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.ep-mobile-menu__head .ep-logo__text { color: var(--color-on-dark); font-size: 22px; }
.ep-mobile-menu__close {
  background: transparent; border: 0; color: var(--color-on-dark);
  padding: 6px;
}
.ep-mobile-menu__close:hover { color: var(--color-accent); }
.ep-mobile-menu__nav { padding: 12px 8px; }
.ep-mobile-menu__list, .ep-mobile-menu__nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.06em;
}
.ep-mobile-menu__list li a, .ep-mobile-menu__nav li a {
  display: block; padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: var(--color-on-dark);
}
.ep-mobile-menu__list li a:hover, .ep-mobile-menu__nav li a:hover { color: var(--color-accent); }
.ep-mobile-menu__foot {
  margin-top: auto; padding: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.ep-mobile-menu__auth { color: var(--color-on-dark-muted); margin-bottom: 14px; font-size: 14px; }
.ep-mobile-menu__auth a { color: var(--color-on-dark); }
.ep-mobile-menu__social { display: flex; gap: 18px; color: var(--color-on-dark-muted); }
.ep-mobile-menu__social a:hover { color: var(--color-accent); }

/* ---------- Tags / badges ---------- */
.ep-tag {
  display: inline-block;
  padding: 6px 12px;
  font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ep-tag--accent { background: var(--color-accent); color: var(--color-accent-fg); }

/* ---------- Trending ticker ---------- */
.ep-trending { background: var(--color-bg); border-bottom: 1px solid var(--color-border); }
.ep-trending__inner {
  display: flex; align-items: stretch; flex-wrap: wrap;
  padding: 0; min-height: 56px;
}
.ep-trending__tag {
  background: var(--color-accent);
  color: var(--color-accent-fg);
  position: relative;
  padding: 12px 28px 12px 16px;
  font-family: var(--font-display);
  font-weight: 700; letter-spacing: 0.1em; font-size: 13px;
  display: flex; align-items: center;
  clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
}
.ep-trending__ticker {
  flex: 1; min-width: 0;
  position: relative; padding: 12px 16px;
  display: flex; align-items: center;
  min-height: 56px;
}
.ep-trending__item {
  position: absolute; left: 16px; right: 16px;
  opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 12px;
  color: var(--color-fg);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: opacity .3s ease;
}
.ep-trending__item.is-active { opacity: 1; pointer-events: auto; position: relative; }
.ep-trending__date { color: var(--color-accent); font-weight: 600; font-size: 13px; }
.ep-trending__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: 15px;
  border-bottom: 1px dashed transparent;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.ep-trending__item.is-active .ep-trending__title.is-typing {
  display: inline-block;
  border-right: 2px solid var(--color-accent);
  animation: ep-type 2.5s steps(40, end) forwards, ep-caret .8s step-end infinite;
  width: 0;
}
@keyframes ep-type { from { width: 0; } to { width: 100%; } }
@keyframes ep-caret { 50% { border-color: transparent; } }

.ep-trending__arrows {
  display: flex; align-items: center;
  border-left: 1px solid var(--color-border);
}
.ep-trending__arrows button {
  background: transparent; border: 0; padding: 0 14px; height: 100%;
  font-size: 20px; color: var(--color-muted);
}
.ep-trending__arrows button:hover { color: var(--color-accent); }

@media (max-width: 640px) {
  .ep-trending__inner { flex-direction: column; }
  .ep-trending__tag { width: 100%; clip-path: none; justify-content: center; }
  .ep-trending__arrows { border-left: 0; border-top: 1px solid var(--color-border); justify-content: flex-end; }
}

/* ---------- Hero ---------- */
.ep-hero { background: #f5f6f8; padding: 24px 0 32px; }
.ep-hero__grid {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .ep-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
  }
}
.ep-hero__big {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 4 / 5;
  color: var(--color-on-dark);
}
.ep-hero__img, .ep-card-hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .7s ease;
}
.ep-hero__big:hover .ep-hero__img, .ep-card-hero:hover .ep-card-hero__img { transform: scale(1.05); }
.ep-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 50%, transparent 100%);
}
.ep-hero__cat, .ep-card-hero__cat { position: absolute; top: 16px; left: 16px; z-index: 2; }
.ep-hero__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; z-index: 2; }
.ep-hero__title {
  margin: 8px 0 0; color: var(--color-on-dark);
  font-size: 28px; line-height: 1.1;
}
@media (min-width: 768px) { .ep-hero__title { font-size: 40px; } }

.ep-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--color-muted); }
.ep-meta--accent { color: var(--color-accent); font-weight: 600; }
.ep-meta__sep { opacity: .6; }

.ep-hero__side {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) and (max-width: 1023px) {
  .ep-hero__side { grid-template-columns: 1fr 1fr; }
  .ep-card-hero--wide { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .ep-hero__side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    height: 100%;
  }
  .ep-card-hero--wide { grid-column: 1 / -1; }
}
.ep-card-hero {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 4 / 3; color: var(--color-on-dark);
}
.ep-card-hero--wide { aspect-ratio: 16 / 10; }
@media (min-width: 1024px) {
  .ep-card-hero,
  .ep-card-hero--wide {
    aspect-ratio: auto;
    min-height: 0;
  }
}
.ep-card-hero__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; z-index: 2; }
.ep-card-hero__title {
  margin: 6px 0 0; color: var(--color-on-dark);
  font-size: 18px; line-height: 1.2;
}
.ep-card-hero--wide .ep-card-hero__title { font-size: 24px; }

/* ---------- Editor picks / grids ---------- */
.ep-picks { padding: 48px 0; }
.ep-picks__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.ep-picks__title { margin: 14px 0 0; font-size: 28px; }
@media (min-width: 768px) { .ep-picks__title { font-size: 34px; } }
.ep-picks__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px 28px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ep-picks__nav a {
  color: var(--color-muted);
}
.ep-picks__nav a:hover {
  color: var(--color-accent);
}
@media (max-width: 900px) {
  .ep-picks__head {
    align-items: flex-start;
    flex-direction: column;
  }
  .ep-picks__nav {
    justify-content: flex-start;
    gap: 12px 18px;
  }
}

.ep-grid { display: grid; gap: 28px; }
.ep-grid--4 { grid-template-columns: 1fr; }
.ep-grid--cards { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .ep-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .ep-grid--cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .ep-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .ep-grid--cards { grid-template-columns: repeat(3, 1fr); }
}

.ep-pick__media { display: block; position: relative; aspect-ratio: 1 / 1; overflow: hidden; margin-bottom: 14px; }
.ep-pick__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ep-pick__media:hover .ep-pick__img { transform: scale(1.05); }
.ep-pick__cat { position: absolute; top: 10px; left: 10px; }
.ep-pick__title { font-size: 20px; line-height: 1.2; margin: 0 0 8px; }
.ep-pick__title a:hover { color: var(--color-accent); }
.ep-pick__meta { display: flex; gap: 8px; font-size: 12px; color: var(--color-muted); }

.ep-card { background: #fff; }
.ep-card__media { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.ep-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ep-card__media:hover .ep-card__img { transform: scale(1.05); }
.ep-card__cat { position: absolute; top: 12px; left: 12px; }
.ep-card__body { padding: 16px 0; }
.ep-card__title { font-size: 22px; line-height: 1.2; margin: 0 0 10px; }
.ep-card__title a:hover { color: var(--color-accent); }
.ep-card__meta { display: flex; gap: 8px; color: var(--color-muted); font-size: 12px; margin-bottom: 10px; }
.ep-card__excerpt { color: var(--color-muted); margin: 0; }

/* ---------- Archive / pagination ---------- */
.ep-archive { padding: 40px 0; }
.ep-archive__head { margin-bottom: 28px; }
.ep-archive__title { margin: 12px 0 0; font-size: 32px; }
.ep-archive__desc { color: var(--color-muted); margin-top: 8px; }

.ep-pagination { margin-top: 32px; }
.ep-pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.ep-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  border: 1px solid var(--color-border); border-radius: var(--radius);
  color: var(--color-fg); font-weight: 600;
}
.ep-pagination .page-numbers.current,
.ep-pagination .page-numbers:hover { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-fg); }

/* ---------- Single ---------- */
.ep-single__hero {
  position: relative; min-height: 360px;
  display: flex; align-items: flex-end;
  background: var(--color-surface-dark); color: var(--color-on-dark);
  overflow: hidden;
}
.ep-single__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ep-single__hero-inner { position: relative; z-index: 2; padding: 40px 16px; width: 100%; }
.ep-single__title { color: var(--color-on-dark); font-size: 32px; line-height: 1.1; margin: 16px 0 12px; }
.ep-breadcrumbs { margin-bottom: 18px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.ep-breadcrumbs__list { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; list-style: none; margin: 0; padding: 0; }
.ep-breadcrumbs__item { display: flex; align-items: center; gap: 8px; color: var(--color-on-dark-muted); }
.ep-breadcrumbs__item:not(:last-child)::after { content: "/"; color: rgba(255, 255, 255, 0.45); }
.ep-breadcrumbs a { color: var(--color-on-dark); border-bottom: 1px solid rgba(255, 255, 255, 0.35); }
.ep-breadcrumbs a:hover { color: var(--color-accent); border-bottom-color: var(--color-accent); }
@media (min-width: 768px) {
  .ep-single__hero { min-height: 460px; }
  .ep-single__title { font-size: 48px; }
}
.ep-single__meta { display: flex; gap: 10px; color: var(--color-on-dark-muted); font-size: 14px; }
.ep-single__body { padding: 32px 0 48px; max-width: 760px; }
.ep-single__footer { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--color-border); color: var(--color-muted); }
.ep-tags a { display: inline-block; padding: 4px 10px; border: 1px solid var(--color-border); border-radius: 999px; margin: 2px; font-size: 12px; }

.ep-prose { font-size: 17px; line-height: 1.75; color: var(--color-fg); }
.ep-prose p, .ep-prose ul, .ep-prose ol, .ep-prose blockquote, .ep-prose pre, .ep-prose figure { margin: 0 0 1.2em; }
.ep-prose h2 { font-size: 28px; margin: 2em 0 .6em; }
.ep-prose h3 { font-size: 22px; margin: 1.6em 0 .5em; }
.ep-prose a { color: var(--color-fg); border-bottom: 1px solid var(--color-accent); }
.ep-prose a:hover { color: var(--color-accent); }
.ep-prose blockquote {
  padding: 12px 20px; border-left: 4px solid var(--color-accent);
  color: var(--color-muted); font-style: italic;
}
.ep-prose img { border-radius: var(--radius); }
.ep-prose pre { background: #f5f6f8; padding: 16px; border-radius: var(--radius); overflow: auto; }
.ep-prose code { background: #f0f1f4; padding: 2px 6px; border-radius: 3px; font-size: 0.95em; }

/* ---------- Page ---------- */
.ep-page { padding: 40px 0; max-width: 820px; }
.ep-page__title { font-size: 36px; margin: 0 0 20px; }

/* ---------- Comments ---------- */
.ep-comments { margin-top: 48px; }
.ep-comments__title { font-size: 22px; margin-bottom: 16px; }
.ep-comments__list { list-style: none; padding: 0; }
.ep-comments__list .comment { padding: 16px 0; border-top: 1px solid var(--color-border); }
.ep-comments .comment-form input[type="text"],
.ep-comments .comment-form input[type="email"],
.ep-comments .comment-form input[type="url"],
.ep-comments .comment-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: var(--radius); font: inherit;
}

/* ---------- 404 / Empty ---------- */
.ep-404 { padding: 80px 0; text-align: center; }
.ep-404__code { font-size: 96px; margin: 0; color: var(--color-accent); }
.ep-404__text { color: var(--color-muted); margin-bottom: 24px; }
.ep-btn {
  display: inline-block; padding: 12px 24px;
  background: var(--color-accent); color: var(--color-accent-fg);
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em;
  border-radius: var(--radius);
}
.ep-btn:hover { background: var(--color-fg); color: var(--color-on-dark); }
.ep-empty { padding: 40px 0; color: var(--color-muted); text-align: center; }

/* ---------- Marketplace CTA ---------- */
.ep-marketplace-cta {
  margin: 32px 0;
  padding: 24px;
  background: var(--color-surface-darker);
  color: var(--color-on-dark);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
}
.ep-marketplace-cta__eyebrow {
  display: inline-block;
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ep-marketplace-cta__title {
  margin: 8px 0 0;
  color: var(--color-on-dark);
  font-size: 26px;
  line-height: 1.15;
}
.ep-marketplace-cta__text {
  margin: 8px 0 0;
  color: var(--color-on-dark-muted);
}
.ep-marketplace-cta__button {
  white-space: nowrap;
}
@media (max-width: 720px) {
  .ep-marketplace-cta {
    grid-template-columns: 1fr;
  }
  .ep-marketplace-cta__button {
    width: 100%;
    text-align: center;
  }
}

/* ---------- Sidebar / widgets ---------- */
.ep-sidebar { padding-top: 32px; }
.widget { margin-bottom: 28px; }
.widget-title { font-size: 16px; margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 6px 0; border-bottom: 1px solid var(--color-border); }

/* ---------- Footer ---------- */
.ep-footer { background: var(--color-surface-darker); color: var(--color-on-dark); padding: 48px 0; }
.ep-footer__inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.ep-footer__logo { color: var(--color-on-dark); }
.ep-footer__desc { color: var(--color-on-dark-muted); max-width: 480px; margin: 0; font-size: 14px; }
.ep-footer__cta { margin-top: 4px; }
.ep-footer__social { display: flex; gap: 16px; color: var(--color-on-dark-muted); padding-top: 6px; }
.ep-footer__social a:hover { color: var(--color-accent); }
.ep-footer__copy { font-size: 12px; color: rgba(255,255,255,.4); margin: 16px 0 0; }

