/* English Challenges Theme Components */

/* ── HEADER ── */
.ec-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(27,27,29,0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  height: 68px;
}
.ec-header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 40px;
  height: 100%; display: flex; align-items: center; gap: 32px;
}
.ec-logo-link { text-decoration: none; flex-shrink: 0; }
.ec-logo-text  { display: flex; align-items: center; gap: 10px; }
.ec-logo-hex {
  width: 38px; height: 38px;
  background: #242426; border: 2px solid #F58220;
  clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Barlow Condensed','Arial Narrow',sans-serif;
  font-size: 14px; font-weight: 900; color: #F3F3F0;
}
.ec-logo-hex-sm {
  width: 30px; height: 30px;
  background: #242426; border: 1.5px solid #F58220;
  clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Barlow Condensed','Arial Narrow',sans-serif;
  font-size: 11px; font-weight: 900; color: #F3F3F0;
}
.ec-logo-name { display: flex; flex-direction: column; line-height: 1.1; }
.ec-logo-top  { font-family: 'Barlow Condensed','Arial Narrow',sans-serif; font-size: 16px; font-weight: 800; text-transform: uppercase; color: #F3F3F0; letter-spacing: .04em; }
.ec-logo-bot  { font-family: 'Barlow Condensed','Arial Narrow',sans-serif; font-size: 16px; font-weight: 800; text-transform: uppercase; color: #F58220; letter-spacing: .04em; }

.ec-primary-nav { flex: 1; }
.ec-nav-list    { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; margin: 0; }
.ec-nav-list a  { display: block; padding: 8px 14px; border-radius: 7px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #9a9a9a; text-decoration: none; transition: color .2s, background .2s; }
.ec-nav-list a:hover, .ec-nav-list .current-menu-item a { color: #F58220; }

.ec-header-right { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }
.ec-user-wrap  { position: relative; }
.ec-user-btn   { display: flex; align-items: center; gap: 8px; background: transparent; border: 1px solid rgba(255,255,255,.15); border-radius: 8px; padding: 6px 12px; color: #F3F3F0; cursor: pointer; font-size: 13px; font-weight: 600; }
.ec-avatar     { width: 28px; height: 28px; background: #F58220; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #fff; }
.ec-arrow-down { font-size: 10px; }
.ec-user-drop  { display: none; position: absolute; top: calc(100% + 8px); right: 0; min-width: 160px; background: #242426; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 6px; z-index: 100; }
.ec-user-wrap:hover .ec-user-drop { display: block; }
.ec-drop-link  { display: block; padding: 9px 14px; font-size: 13px; color: #9a9a9a; text-decoration: none; border-radius: 6px; transition: background .2s, color .2s; }
.ec-drop-link:hover { background: #2e2e31; color: #F3F3F0; }

.ec-mob-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.ec-mob-toggle span { display: block; width: 22px; height: 2px; background: #F3F3F0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.ec-mob-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ec-mob-toggle.open span:nth-child(2) { opacity: 0; }
.ec-mob-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.ec-mob-menu   { display: none; background: #242426; border-top: 1px solid rgba(255,255,255,.08); max-height: 0; overflow: hidden; transition: max-height .3s; }
.ec-mob-menu.open { max-height: 600px; }
.ec-mob-inner  { padding: 20px; }
.ec-mob-actions{ margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); }

/* ── PAGE WRAP ── */
.ec-page-wrap { min-height: calc(100vh - 68px); display: flex; flex-direction: column; }
.ec-main { flex: 1; }

/* ── PAGE HERO ── */
.ec-page-hero { padding: 56px 40px 48px; border-bottom: 1px solid rgba(255,255,255,.08); position: relative; overflow: hidden; }
.ec-page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 100% at 50% 100%, rgba(245,130,32,.06) 0%, transparent 70%); pointer-events: none; }
.ec-page-hero .ec-container { position: relative; z-index: 1; }
.ec-page-title { font-family: 'Barlow Condensed','Arial Narrow',sans-serif; font-size: clamp(32px,5vw,64px); font-weight: 900; text-transform: uppercase; color: #F3F3F0; line-height: 1; margin-bottom: 8px; }
.ec-page-title em { font-style: normal; color: #F58220; }
.ec-page-sub   { font-size: 16px; color: #9a9a9a; margin-top: 8px; }
.ec-page-hero-simple { background: #242426; }
.ec-page-hero-daily  { background: linear-gradient(135deg, rgba(245,130,32,.07) 0%, #1B1B1D 60%); }

.ec-breadcrumb, .ec-challenge-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #9a9a9a; margin-bottom: 12px; }
.ec-breadcrumb a, .ec-challenge-breadcrumb a { color: #9a9a9a; text-decoration: none; }
.ec-breadcrumb a:hover, .ec-challenge-breadcrumb a:hover { color: #F58220; }
.ec-challenge-meta-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.ec-type-pill  { font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 100px; text-transform: uppercase; letter-spacing: .06em; background: rgba(245,130,32,.12); color: #F58220; }
.ec-diff-pill  { font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 100px; text-transform: uppercase; letter-spacing: .06em; background: rgba(255,255,255,.07); color: #9a9a9a; }
.ec-time-pill  { font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 100px; text-transform: uppercase; letter-spacing: .06em; background: rgba(255,255,255,.05); color: #9a9a9a; }

/* ── HERO ── */
.ec-hero { min-height: calc(100vh - 68px); display: flex; align-items: center; position: relative; overflow: hidden; padding: 80px 40px; }
.ec-hero-bg-grid { position: absolute; inset: 0; opacity: .04; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='70'%3E%3Cpolygon points='30,2 58,17 58,53 30,68 2,53 2,17' fill='none' stroke='%23F58220' stroke-width='1'/%3E%3C/svg%3E"); background-size: 60px 70px; }
.ec-hero-glow   { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 60% 70% at 70% 50%, rgba(245,130,32,.07) 0%, transparent 70%); }
.ec-hero-inner  { max-width: 1280px; margin: 0 auto; width: 100%; display: grid; grid-template-columns: 1fr 400px; gap: 80px; align-items: center; position: relative; z-index: 1; }
.ec-hero-badge  { display: inline-flex; align-items: center; gap: 8px; background: rgba(245,130,32,.12); border: 1px solid rgba(245,130,32,.25); border-radius: 100px; padding: 6px 14px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #F58220; margin-bottom: 24px; width: fit-content; }
.ec-badge-dot   { width: 6px; height: 6px; background: #F58220; border-radius: 50%; animation: ec-pulse 2s infinite; }
@keyframes ec-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(1.4)} }
.ec-hero-title  { font-family: 'Barlow Condensed','Arial Narrow',sans-serif; font-size: clamp(52px,7vw,88px); font-weight: 900; text-transform: uppercase; line-height: .95; color: #F3F3F0; margin-bottom: 24px; }
.ec-hero-title em { font-style: normal; color: #F58220; }
.ec-hero-sub    { font-size: 17px; color: #9a9a9a; line-height: 1.65; max-width: 460px; margin-bottom: 36px; }
.ec-hero-sub strong { color: #F3F3F0; }
.ec-hero-ctas   { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 52px; }
.ec-hero-stats  { display: flex; gap: 40px; }
.ec-hero-stat-num { font-family: 'Barlow Condensed','Arial Narrow',sans-serif; font-size: 34px; font-weight: 900; color: #F3F3F0; line-height: 1; }
.ec-hero-stat-lbl { font-size: 12px; color: #9a9a9a; text-transform: uppercase; letter-spacing: .07em; margin-top: 2px; }

.ec-hero-card { background: #242426; border: 1px solid rgba(245,130,32,.2); border-radius: 16px; padding: 26px; position: relative; overflow: hidden; }
.ec-hero-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: #F58220; }
.ec-hero-card-tag   { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: #F58220; background: rgba(245,130,32,.12); padding: 4px 10px; border-radius: 100px; display: inline-block; margin-bottom: 12px; }
.ec-hero-card-title { font-family: 'Barlow Condensed','Arial Narrow',sans-serif; font-size: 22px; font-weight: 900; text-transform: uppercase; color: #F3F3F0; margin-bottom: 10px; line-height: 1.05; }
.ec-hero-card-scene { font-size: 13px; color: #9a9a9a; line-height: 1.55; margin-bottom: 16px; }
.ec-hero-card-crit  { background: #2e2e31; border-radius: 10px; padding: 14px; }
.ec-crit-mini-lbl   { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #F58220; margin-bottom: 8px; }
.ec-crit-mini-row   { font-size: 13px; color: #9a9a9a; margin-bottom: 5px; line-height: 1.4; }

/* ── BG ALT ── */
.ec-bg-alt { background: #242426; border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); }

/* ── SECTION HEADER ── */
.ec-section-header { margin-bottom: 48px; }

/* ── HOW IT WORKS ── */
.ec-how-grid { display: grid; grid-template-columns: repeat(4,1fr); background: rgba(255,255,255,.04); border-radius: 16px; overflow: hidden; gap: 1px; }
.ec-how-step  { background: #242426; padding: 36px 26px; transition: background .25s; }
.ec-how-step:hover { background: #2e2e31; }
.ec-step-num  { font-family: 'Barlow Condensed','Arial Narrow',sans-serif; font-size: 60px; font-weight: 900; color: rgba(245,130,32,.12); line-height: 1; margin-bottom: 10px; }
.ec-step-title{ font-family: 'Barlow Condensed','Arial Narrow',sans-serif; font-size: 18px; font-weight: 800; text-transform: uppercase; color: #F3F3F0; margin-bottom: 8px; }
.ec-how-step p{ font-size: 13px; color: #9a9a9a; line-height: 1.6; margin: 0; }

/* ── CATEGORIES ── */
.ec-cat-hdr   { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 36px; }
.ec-see-all   { font-size: 14px; color: #F58220; font-weight: 600; text-decoration: none; }
.ec-cat-grid  { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.ec-cat-card  { background: #242426; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 28px; text-decoration: none; display: flex; flex-direction: column; transition: border-color .25s, transform .2s; position: relative; overflow: hidden; }
.ec-cat-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: #F58220; transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.ec-cat-card:hover { border-color: rgba(245,130,32,.35); transform: translateY(-3px); }
.ec-cat-card:hover::after { transform: scaleX(1); }
.ec-cat-title { font-family: 'Barlow Condensed','Arial Narrow',sans-serif; font-size: 20px; font-weight: 800; text-transform: uppercase; color: #F3F3F0; margin-bottom: 8px; }
.ec-cat-desc  { font-size: 13px; color: #9a9a9a; line-height: 1.55; flex: 1; }

/* ── DAILY SECTION ── */
.ec-daily-layout     { display: grid; grid-template-columns: 1fr 460px; gap: 72px; align-items: center; }
.ec-daily-intro p    { font-size: 16px; line-height: 1.65; }
.ec-daily-page-layout{ display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }
.ec-daily-prev-card  { background: #242426; border: 1px solid rgba(245,130,32,.2); border-radius: 14px; padding: 24px; position: relative; overflow: hidden; margin-bottom: 14px; }
.ec-daily-prev-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: #F58220; }
.ec-dpc-top   { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ec-dpc-lbl   { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #F58220; }
.ec-dpc-day   { font-size: 12px; color: #9a9a9a; }
.ec-dpc-title { font-family: 'Barlow Condensed','Arial Narrow',sans-serif; font-size: 24px; font-weight: 900; text-transform: uppercase; color: #F3F3F0; margin-bottom: 8px; line-height: 1.05; }
.ec-dpc-task  { font-size: 13px; color: #9a9a9a; line-height: 1.55; }
.ec-wotd-mini { background: #242426; border: 1px solid rgba(80,200,120,.2); border-radius: 12px; padding: 18px 20px; }
.ec-wotd-mini-lbl  { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #50C878; display: block; margin-bottom: 6px; }
.ec-wotd-mini-word { font-family: 'Barlow Condensed','Arial Narrow',sans-serif; font-size: 28px; font-weight: 900; text-transform: uppercase; color: #F3F3F0; margin-bottom: 4px; }
.ec-wotd-mini p { font-size: 13px; color: #9a9a9a; line-height: 1.5; margin: 0; }

/* ── RANKS ── */
.ec-ranks-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 12px; }
.ec-rank-card  { background: #242426; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 22px 16px; text-align: center; position: relative; transition: transform .2s; }
.ec-rank-card:hover { transform: translateY(-2px); }
.ec-rank-current { border-color: rgba(245,130,32,.4); background: linear-gradient(180deg, rgba(245,130,32,.07) 0%, #242426 100%); }
.ec-rank-you  { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); font-size: 9px; font-weight: 800; letter-spacing: .1em; background: #F58220; color: #fff; padding: 2px 8px; border-radius: 100px; white-space: nowrap; }
.ec-rank-name { font-family: 'Barlow Condensed','Arial Narrow',sans-serif; font-size: 15px; font-weight: 800; text-transform: uppercase; color: #F3F3F0; margin-bottom: 4px; }
.ec-rank-req  { font-size: 11px; color: #9a9a9a; line-height: 1.4; }

/* ── CTA BANNER ── */
.ec-cta-wrap  { text-align: center; max-width: 680px; margin: 0 auto; }
.ec-cta-wrap .ec-section-title { margin-bottom: 14px; }
.ec-cta-wrap p { font-size: 17px; margin-bottom: 36px; }
.ec-cta-btns  { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
.ec-footer     { background: #242426; border-top: 1px solid rgba(255,255,255,.08); margin-top: auto; }
.ec-footer-top { display: grid; grid-template-columns: 240px 1fr; gap: 64px; padding: 64px 0 48px; }
.ec-footer-tag { font-size: 13px; color: #9a9a9a; margin-top: 12px; }
.ec-footer-cols{ display: grid; grid-template-columns: repeat(2,1fr); gap: 40px; }
.ec-footer-col-title { font-family: 'Barlow Condensed','Arial Narrow',sans-serif; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #F3F3F0; margin-bottom: 14px; }
.ec-footer-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ec-footer-links a { font-size: 14px; color: #9a9a9a; text-decoration: none; transition: color .2s; }
.ec-footer-links a:hover { color: #F58220; }
.ec-footer-bot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 24px 0; }
.ec-footer-bot p { font-size: 13px; color: #9a9a9a; margin: 0; }
.ec-footer-bot-links a { font-size: 13px; color: #9a9a9a; text-decoration: none; }
.ec-footer-bot-links a:hover { color: #F3F3F0; }

/* ── CHALLENGE PAGE ── */
.ec-challenge-page-hero { padding: 48px 40px; background: linear-gradient(135deg, rgba(245,130,32,.07) 0%, #1B1B1D 60%); border-bottom: 1px solid rgba(255,255,255,.08); }
.ec-challenge-page-layout { display: grid; grid-template-columns: 1fr 280px; gap: 40px; align-items: start; }
.ec-challenge-sidebar-card { background: #242426; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 22px; position: sticky; top: 88px; }
.ec-sidebar-label    { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #F58220; display: block; margin-bottom: 16px; }
.ec-sidebar-challenge{ display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); text-decoration: none; }
.ec-sidebar-challenge:last-of-type { border-bottom: none; }
.ec-sidebar-title { font-size: 14px; font-weight: 600; color: #F3F3F0; margin-bottom: 3px; transition: color .2s; }
.ec-sidebar-challenge:hover .ec-sidebar-title { color: #F58220; }
.ec-sidebar-diff  { font-size: 11px; color: #9a9a9a; text-transform: uppercase; }

/* ── PROSE ── */
.ec-prose { color: #9a9a9a; font-size: 16px; line-height: 1.75; }
.ec-prose h1,.ec-prose h2,.ec-prose h3 { margin: 1.5em 0 .6em; color: #F3F3F0; }
.ec-prose p { margin-bottom: 1.2em; }
.ec-prose a { color: #F58220; }
.ec-prose img { border-radius: 12px; margin: 24px 0; }

/* ── PAGINATION ── */
.ec-pagination { display: flex; gap: 6px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.ec-page-item a, .ec-page-item span { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; background: #242426; border: 1px solid rgba(255,255,255,.08); border-radius: 8px; font-size: 14px; color: #9a9a9a; text-decoration: none; transition: all .2s; }
.ec-page-item a:hover { border-color: #F58220; color: #F58220; }
.ec-page-item .current { background: #F58220; border-color: #F58220; color: #fff; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .ec-hero-inner   { grid-template-columns: 1fr; }
  .ec-hero-right   { display: none; }
  .ec-cat-grid     { grid-template-columns: repeat(2,1fr); }
  .ec-ranks-grid   { grid-template-columns: repeat(3,1fr); }
  .ec-how-grid     { grid-template-columns: repeat(2,1fr); }
  .ec-footer-top   { grid-template-columns: 1fr; gap: 40px; }
  .ec-daily-layout { grid-template-columns: 1fr; }
  .ec-daily-page-layout { grid-template-columns: 1fr; }
  .ec-challenge-page-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .ec-header-inner { padding: 0 20px; }
  .ec-primary-nav  { display: none; }
  .ec-mob-toggle   { display: flex; }
  .ec-mob-menu     { display: block; }
  .ec-header-right .btn { display: none; }
  .ec-cat-grid     { grid-template-columns: 1fr; }
  .ec-ranks-grid   { grid-template-columns: repeat(2,1fr); }
  .ec-how-grid     { grid-template-columns: 1fr; }
  .ec-footer-cols  { grid-template-columns: 1fr; }
  .ec-hero         { padding: 60px 20px; min-height: auto; }
  .ec-page-hero    { padding: 40px 20px; }
  .ec-footer-bot   { flex-direction: column; }
  .ec-challenge-page-hero { padding: 32px 20px; }
}
