/*
Theme Name: LadderEA Theme
Theme URI: https://ladderea.com
Author: LadderEA
Author URI: https://ladderea.com
Description: Premium dark forex EA review and trading tools WordPress theme for MT4/MT5 EA reviews, Gold EAs, indicators, AI trading bots, and custom EA development.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ladderea-theme
*/

:root {
  --le-bg: #050914;
  --le-bg-soft: #08111f;
  --le-surface: #0d1728;
  --le-surface-2: #111e32;
  --le-border: rgba(148, 163, 184, 0.2);
  --le-text: #eef4ff;
  --le-muted: #aab8cc;
  --le-green: #19c37d;
  --le-green-soft: rgba(25, 195, 125, 0.14);
  --le-gold: #d6a740;
  --le-gold-soft: rgba(214, 167, 64, 0.15);
  --le-danger: #ffcf66;
  --le-max: 1180px;
  --le-radius: 8px;
  --le-shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--le-bg);
  color: var(--le-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: var(--le-green);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--le-gold);
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell,
.le-container {
  width: min(100% - 40px, var(--le-max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 9, 20, 0.92);
  border-bottom: 1px solid var(--le-border);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 190px;
}

.custom-logo-link img {
  display: block;
  width: auto;
  max-height: 44px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(25, 195, 125, 0.45);
  border-radius: var(--le-radius);
  background: linear-gradient(135deg, rgba(25, 195, 125, 0.22), rgba(214, 167, 64, 0.18));
  color: var(--le-green);
  font-weight: 800;
}

.site-title {
  display: block;
  color: var(--le-text);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
}

.site-description {
  margin: 3px 0 0;
  color: var(--le-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.primary-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
}

.primary-navigation ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: var(--le-radius);
  color: var(--le-muted);
  font-size: 0.94rem;
  font-weight: 650;
}

.primary-navigation a:hover,
.primary-navigation .current-menu-item > a,
.primary-navigation .current_page_item > a {
  background: rgba(255, 255, 255, 0.06);
  color: var(--le-text);
}

.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid rgba(214, 167, 64, 0.55);
  border-radius: var(--le-radius);
  color: var(--le-text);
  font-weight: 750;
  white-space: nowrap;
}

.header-action:hover {
  background: var(--le-gold-soft);
  color: var(--le-text);
}

.hero {
  padding: 86px 0 60px;
  background:
    linear-gradient(135deg, rgba(25, 195, 125, 0.12), transparent 36%),
    linear-gradient(225deg, rgba(214, 167, 64, 0.14), transparent 34%),
    var(--le-bg);
  border-bottom: 1px solid var(--le-border);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  align-items: center;
  gap: 44px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--le-green);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--le-gold);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 16px;
  color: var(--le-text);
  line-height: 1.16;
}

h1 {
  max-width: 820px;
  font-size: clamp(2.45rem, 6vw, 4.7rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.7rem);
}

h3 {
  font-size: 1.28rem;
}

p {
  margin: 0 0 18px;
}

.lead {
  max-width: 720px;
  color: var(--le-muted);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.button,
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--le-radius);
  background: var(--le-green);
  color: #03100b;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.2;
}

.button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
  background: #22d98f;
  color: #03100b;
}

.button.button-secondary {
  border-color: rgba(214, 167, 64, 0.5);
  background: transparent;
  color: var(--le-text);
}

.button.button-secondary:hover {
  background: var(--le-gold-soft);
  color: var(--le-text);
}

.market-panel {
  border: 1px solid var(--le-border);
  border-radius: var(--le-radius);
  background: linear-gradient(180deg, rgba(17, 30, 50, 0.95), rgba(8, 17, 31, 0.95));
  box-shadow: var(--le-shadow);
  overflow: hidden;
}

.market-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--le-border);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--le-green-soft);
  color: var(--le-green);
  font-size: 0.78rem;
  font-weight: 800;
}

.metric-list {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--le-border);
}

.metric-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  background: var(--le-surface);
}

.metric-list span {
  color: var(--le-muted);
}

.metric-list strong {
  color: var(--le-text);
  text-align: right;
}

.search-band {
  padding: 24px;
  margin-top: -34px;
  border: 1px solid var(--le-border);
  border-radius: var(--le-radius);
  background: var(--le-surface);
  box-shadow: var(--le-shadow);
}

.search-band .search-form,
.widget_search .search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.search-form label {
  display: block;
}

.search-field,
input[type="search"],
input[type="text"],
input[type="email"],
input[type="url"],
textarea,
select {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--le-border);
  border-radius: var(--le-radius);
  background: #07101d;
  color: var(--le-text);
}

textarea {
  min-height: 140px;
}

.section {
  padding: 72px 0;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-header p {
  max-width: 640px;
  color: var(--le-muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.post-card,
.feature-card,
.fact-box,
.risk-box,
.cta-panel,
.content-card {
  border: 1px solid var(--le-border);
  border-radius: var(--le-radius);
  background: var(--le-surface);
}

.post-card,
.feature-card {
  overflow: hidden;
}

.post-card-thumbnail {
  display: block;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(25, 195, 125, 0.18), rgba(214, 167, 64, 0.13));
}

.post-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-body,
.feature-card,
.content-card {
  padding: 22px;
}

.post-meta,
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 12px;
  color: var(--le-muted);
  font-size: 0.9rem;
}

.post-card h3 a,
.entry-title a {
  color: var(--le-text);
}

.post-card h3 a:hover,
.entry-title a:hover {
  color: var(--le-green);
}

.feature-card p,
.post-card p,
.archive-description,
.entry-content,
.page-content {
  color: var(--le-muted);
}

.category-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-list a {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--le-border);
  border-radius: var(--le-radius);
  background: var(--le-surface);
  color: var(--le-text);
  font-weight: 800;
}

.category-list a:hover {
  border-color: rgba(25, 195, 125, 0.45);
  background: var(--le-green-soft);
}

.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--le-gold-soft);
  color: var(--le-gold);
  font-size: 0.82rem;
}

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(25, 195, 125, 0.12), transparent 42%),
    var(--le-surface-2);
}

.risk-box {
  padding: 22px;
  border-color: rgba(255, 207, 102, 0.35);
  background: rgba(255, 207, 102, 0.08);
}

.risk-box strong {
  display: block;
  margin-bottom: 8px;
  color: var(--le-danger);
}

.site-main {
  min-height: 56vh;
}

.content-wrap {
  width: min(100% - 40px, 860px);
  margin: 0 auto;
  padding: 64px 0;
}

.page-hero,
.archive-hero {
  padding: 58px 0 38px;
  border-bottom: 1px solid var(--le-border);
  background: var(--le-bg-soft);
}

.entry-content > * {
  max-width: 860px;
}

.entry-content > .alignwide {
  max-width: var(--le-max);
}

.entry-content > .alignfull {
  max-width: none;
  width: 100%;
}

.entry-content h2,
.entry-content h3,
.page-content h2,
.page-content h3 {
  margin-top: 34px;
}

.entry-content blockquote {
  margin: 28px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--le-gold);
  background: rgba(214, 167, 64, 0.08);
  color: var(--le-text);
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
}

.entry-content th,
.entry-content td {
  padding: 12px;
  border: 1px solid var(--le-border);
}

.single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  width: min(100% - 40px, var(--le-max));
  margin: 0 auto;
  padding: 56px 0;
}

.single-featured {
  margin-bottom: 28px;
  overflow: hidden;
  border: 1px solid var(--le-border);
  border-radius: var(--le-radius);
  background: var(--le-surface);
}

.single-featured img {
  display: block;
  width: 100%;
}

.review-sidebar {
  display: grid;
  align-content: start;
  gap: 18px;
}

.fact-box,
.related-box {
  padding: 22px;
}

.fact-box ul,
.related-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fact-box li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--le-border);
}

.fact-box li:last-child {
  border-bottom: 0;
}

.fact-box span {
  color: var(--le-muted);
}

.fact-box strong {
  text-align: right;
}

.related-box li + li {
  margin-top: 12px;
}

.post-list {
  display: grid;
  gap: 18px;
}

.pagination,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.page-numbers,
.post-page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--le-border);
  border-radius: var(--le-radius);
  color: var(--le-text);
}

.page-numbers.current,
.page-numbers:hover,
.post-page-numbers.current,
.post-page-numbers:hover {
  background: var(--le-green);
  color: #03100b;
}

.site-footer {
  border-top: 1px solid var(--le-border);
  background: #030712;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 28px;
  padding: 46px 0;
}

.footer-grid p,
.footer-grid li {
  color: var(--le-muted);
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid li + li {
  margin-top: 8px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--le-border);
  color: var(--le-muted);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .header-inner,
  .primary-navigation ul {
    align-items: flex-start;
  }

  .header-inner {
    flex-direction: column;
    padding: 16px 0;
  }

  .primary-navigation {
    width: 100%;
    justify-content: flex-start;
  }

  .primary-navigation ul {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .header-action {
    align-self: flex-start;
  }

  .hero-grid,
  .single-layout,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-shell,
  .le-container,
  .content-wrap,
  .single-layout {
    width: min(100% - 28px, var(--le-max));
  }

  .hero {
    padding: 54px 0 46px;
  }

  .section {
    padding: 48px 0;
  }

  .section-header {
    display: block;
  }

  .card-grid,
  .category-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .search-band .search-form,
  .widget_search .search-form {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    display: block;
  }

  .metric-list li,
  .fact-box li {
    display: block;
  }

  .metric-list strong,
  .fact-box strong {
    display: block;
    margin-top: 4px;
    text-align: left;
  }
}
