/*
Theme Name: ABThrifts
Theme URI: https://abthrifts.com
Author: ABThrifts Team
Description: Finance, Trading & Prop Firm WordPress Theme
Version: 1.0.0
*/

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── CSS VARIABLES ── */
:root {
  --green:  #00c853;
  --green2: #69f0ae;
  --dark:   #0a0f0d;
  --dark2:  #111a14;
  --dark3:  #162019;
  --card:   #1a2a1e;
  --gold:   #ffd700;
  --red:    #ff4444;
  --text:   #e8f5e9;
  --muted:  #7cb97e;
  --accent: #00e676;
}

/* ── RESET & BASE ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: var(--dark);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

/* ── TICKER BAR ── */
.ticker-bar {
  background: #050f07;
  border-bottom: 1px solid #1a3320;
  padding: 8px 0;
  overflow: hidden;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.ticker-wrap { display: flex; align-items: center; }
.ticker-label {
  background: var(--green);
  color: #000;
  font-weight: 700;
  font-size: .75rem;
  padding: 4px 12px;
  white-space: nowrap;
  letter-spacing: .05em;
  flex-shrink: 0;
}
.ticker-scroll { overflow: hidden; flex: 1; }
.ticker-inner {
  display: flex;
  animation: tickerMove 30s linear infinite;
  width: max-content;
}
.ticker-inner:hover { animation-play-state: paused; }
.tick-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 28px;
  border-right: 1px solid #1e3525;
  white-space: nowrap;
  font-size: .82rem;
}
.tick-name  { color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.tick-price { color: #fff; font-weight: 700; }
.tick-chg.up { color: var(--green); }
.tick-chg.dn { color: var(--red); }

@keyframes tickerMove {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── ROTATING BANNER ── */
.rotate-banner {
  background: linear-gradient(90deg, #0d2b10, #0a1f0c, #0d2b10);
  border-bottom: 2px solid var(--green);
  padding: 10px 0;
  overflow: hidden;
}
.rotate-inner {
  display: flex;
  animation: rotateBanner 24s linear infinite;
  width: max-content;
}
.rotate-inner:hover { animation-play-state: paused; }
.banner-item {
  padding: 0 60px;
  font-size: .82rem;
  color: var(--green2);
  font-weight: 500;
  white-space: nowrap;
}
.banner-item span { color: var(--gold); font-weight: 700; }

@keyframes rotateBanner {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── NAVBAR ── */
.site-nav {
  background: rgba(10, 15, 13, .97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #1a3320;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 41px;
  z-index: 999;
}
.site-nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.03em;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--green);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 900;
  color: #000;
  flex-shrink: 0;
}
.logo .ab     { color: var(--green); }
.logo .thrifts{ color: #fff; }
.logo .tld    { color: var(--muted); font-size: .85rem; }

.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: .88rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s;
  letter-spacing: .02em;
}
.nav-links a:hover { color: var(--green); }
.nav-links .current-menu-item a { color: var(--green); }

.nav-cta {
  background: var(--green);
  color: #000;
  font-weight: 700;
  font-size: .82rem;
  padding: 8px 20px;
  border-radius: 6px;
  letter-spacing: .03em;
  transition: background .2s;
}
.nav-cta:hover { background: var(--green2); }

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: .3s;
}

/* ── HERO ── */
.hero {
  min-height: 90vh;
  background: linear-gradient(135deg, #050f07 0%, #0a1f0c 40%, #0d2b10 70%, #081508 100%);
  display: flex;
  align-items: center;
  padding: 80px 5%;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%2300c853' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.hero::after {
  content: 'ABThrifts';
  position: absolute;
  right: -2%;
  bottom: -8%;
  font-size: 18vw;
  font-weight: 900;
  color: rgba(0, 200, 83, .03);
  letter-spacing: -.05em;
  pointer-events: none;
  white-space: nowrap;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 200, 83, .1);
  border: 1px solid rgba(0, 200, 83, .3);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .75rem;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: .04em;
}
.hero-badge::before {
  content: '●';
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .3; }
}
.domain-tag {
  display: inline-block;
  background: rgba(0, 200, 83, .08);
  border: 1px solid rgba(0, 200, 83, .25);
  color: var(--green);
  font-size: .75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: .06em;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.03em;
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  color: var(--green);
  display: block;
}
.hero-sub {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-primary {
  background: var(--green);
  color: #000;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: .95rem;
  transition: background .2s, transform .2s;
  display: inline-block;
}
.btn-primary:hover { background: var(--green2); transform: translateY(-2px); }

.btn-secondary {
  border: 1.5px solid var(--green);
  color: var(--green);
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: .95rem;
  transition: background .2s;
  display: inline-block;
}
.btn-secondary:hover { background: rgba(0, 200, 83, .08); }

/* Market Cards */
.hero-market { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.mkt-card {
  background: rgba(26, 42, 30, .8);
  border: 1px solid #2a4a2e;
  border-radius: 14px;
  padding: 20px;
  backdrop-filter: blur(8px);
  transition: border-color .3s, transform .3s;
  position: relative;
  overflow: hidden;
}
.mkt-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green), transparent);
}
.mkt-card.gold::after { background: linear-gradient(90deg, var(--gold), transparent); }
.mkt-card:hover { border-color: var(--green); transform: translateY(-3px); }
.mkt-symbol { font-size: .7rem; font-weight: 700; color: var(--muted); letter-spacing: .08em; margin-bottom: 8px; }
.mkt-price  { font-size: 1.55rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.mkt-change { display: flex; align-items: center; gap: 5px; margin-top: 6px; font-size: .8rem; font-weight: 600; }
.mkt-change.up { color: var(--green); }
.mkt-change.dn { color: var(--red); }
.mkt-chart { margin-top: 12px; opacity: .65; }

/* Skeleton loader */
.mkt-card.loading { min-height: 120px; }
.skeleton {
  width: 100%;
  height: 80px;
  background: linear-gradient(90deg, #1a2a1e 25%, #223322 50%, #1a2a1e 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── STATS BAR ── */
.stats-bar {
  background: var(--dark2);
  border-top: 1px solid #1a3320;
  border-bottom: 1px solid #1a3320;
  padding: 36px 5%;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.stat-num   { font-size: 2.2rem; font-weight: 900; color: var(--green); letter-spacing: -.03em; }
.stat-label { color: var(--muted); font-size: .82rem; margin-top: 4px; font-weight: 500; }

/* ── SECTION GENERAL ── */
section { padding: 80px 5%; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-label  { font-size: .75rem; font-weight: 700; color: var(--green); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
h2 { font-size: 2.4rem; font-weight: 800; letter-spacing: -.02em; }
h2 span { color: var(--green); }
.section-sub { color: var(--muted); font-size: 1rem; margin-top: 10px; }

/* ── BLOG SECTION ── */
.blog-section { background: var(--dark2); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}
.blog-card {
  background: var(--card);
  border: 1px solid #1e3525;
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.blog-card:hover {
  border-color: var(--green);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 200, 83, .08);
}
.blog-img {
  height: 180px;
  background: linear-gradient(135deg, #0d2b10, #1a4a1e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}
.blog-img img, .blog-img .wp-post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.blog-emoji { position: relative; z-index: 1; }
.blog-cat {
  position: absolute;
  top: 14px; left: 14px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  z-index: 2;
}
.cat-trading        { background: rgba(0,200,83,.2);    color: var(--green); border: 1px solid rgba(0,200,83,.3); }
.cat-personal-finance{ background: rgba(255,215,0,.15); color: var(--gold);  border: 1px solid rgba(255,215,0,.3); }
.cat-psychology     { background: rgba(192,132,252,.15);color: #c084fc;      border: 1px solid rgba(192,132,252,.3); }
.cat-prop-firms     { background: rgba(96,165,250,.15); color: #60a5fa;      border: 1px solid rgba(96,165,250,.3); }
.blog-body  { padding: 22px; }
.blog-meta  { font-size: .72rem; color: var(--muted); margin-bottom: 10px; }
.blog-title { font-size: 1rem; font-weight: 700; line-height: 1.4; margin-bottom: 10px; color: #fff; }
.blog-title a { color: #fff; transition: color .2s; }
.blog-title a:hover { color: var(--green); }
.blog-excerpt { font-size: .82rem; color: var(--muted); line-height: 1.6; }
.blog-footer {
  padding: 14px 22px;
  border-top: 1px solid #1e3525;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.read-more { font-size: .78rem; color: var(--green); font-weight: 600; }
.read-more:hover { color: var(--green2); }
.read-time { font-size: .72rem; color: var(--muted); }
.blog-cta  { text-align: center; margin-top: 44px; }

/* ── PROP FIRMS ── */
.prop-section { background: var(--dark3); }
.prop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.prop-card {
  background: var(--card);
  border: 1px solid #1e3525;
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  transition: transform .3s, box-shadow .3s;
  position: relative;
  overflow: hidden;
}
.prop-card.featured {
  border-color: var(--green);
  background: linear-gradient(135deg, #1a2a1e, #0f2012);
}
.prop-card.featured::before {
  content: '⭐ FEATURED';
  position: absolute;
  top: 0; right: 0;
  background: var(--green);
  color: #000;
  font-size: .65rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 0 0 0 10px;
  letter-spacing: .06em;
}
.prop-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(0,200,83,.07); }
.prop-logo    { font-size: 2.2rem; margin-bottom: 12px; }
.prop-name    { font-size: 1.1rem; font-weight: 800; margin-bottom: 6px; }
.prop-tagline { font-size: .8rem; color: var(--muted); margin-bottom: 18px; }
.prop-feats   { text-align: left; margin-bottom: 20px; }
.prop-feats li {
  font-size: .8rem;
  color: var(--muted);
  padding: 5px 0;
  border-bottom: 1px solid #1e3525;
  display: flex;
  align-items: center;
  gap: 8px;
}
.prop-feats li::before { content: '✓'; color: var(--green); font-weight: 700; }
.prop-btn {
  background: var(--green);
  color: #000;
  font-weight: 700;
  font-size: .82rem;
  padding: 10px 24px;
  border-radius: 8px;
  display: block;
  transition: background .2s;
  text-align: center;
}
.prop-btn:hover    { background: var(--green2); }
.prop-discount     { font-size: .75rem; color: var(--gold); margin-top: 10px; font-weight: 600; }
.no-firms          { color: var(--muted); text-align: center; padding: 40px; }

/* ── TECHNIQUES ── */
.tech-section { background: var(--dark2); }
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.tech-card {
  background: var(--card);
  border: 1px solid #1e3525;
  border-radius: 14px;
  padding: 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: border-color .3s;
}
.tech-card:hover { border-color: var(--green); }
.tech-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: rgba(0, 200, 83, .1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tech-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: #fff; }
.tech-desc  { font-size: .82rem; color: var(--muted); line-height: 1.6; }
.tech-tag {
  display: inline-block;
  margin-top: 10px;
  font-size: .7rem;
  font-weight: 700;
  color: var(--green);
  background: rgba(0, 200, 83, .1);
  padding: 3px 10px;
  border-radius: 20px;
}

/* ── NEWSLETTER ── */
.newsletter-section {
  background: linear-gradient(135deg, #0d2b10, #0a1f0c);
  border-top: 1px solid #1a3320;
  border-bottom: 1px solid #1a3320;
  text-align: center;
  padding: 70px 5%;
}
.nl-box { max-width: 560px; margin: 0 auto; }
.nl-box h2 { font-size: 2rem; margin-bottom: 12px; }
.nl-box p  { color: var(--muted); font-size: .95rem; margin-bottom: 28px; }
.nl-form { display: flex; gap: 12px; max-width: 440px; margin: 0 auto; }
.nl-form input {
  flex: 1;
  background: #1a2a1e;
  border: 1px solid #2a4a2e;
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: .9rem;
  outline: none;
  transition: border-color .2s;
  font-family: inherit;
}
.nl-form input:focus  { border-color: var(--green); }
.nl-form input::placeholder { color: var(--muted); }
.nl-form button {
  background: var(--green);
  color: #000;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: .9rem;
  white-space: nowrap;
  transition: background .2s;
  font-family: inherit;
}
.nl-form button:hover { background: var(--green2); }

/* ── FOOTER ── */
.site-footer {
  background: #050f07;
  border-top: 1px solid #1a3320;
  padding: 60px 5% 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto 48px;
}
.footer-brand p { color: var(--muted); font-size: .85rem; line-height: 1.7; margin-top: 14px; max-width: 260px; }
.footer-heading { font-size: .78rem; font-weight: 700; color: var(--green); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a  { font-size: .84rem; color: var(--muted); transition: color .2s; }
.footer-links a:hover { color: var(--green); }
.social-row { display: flex; gap: 12px; margin-top: 16px; }
.social-row a {
  width: 34px; height: 34px;
  background: #1a2a1e;
  border: 1px solid #2a4a2e;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  transition: border-color .2s, background .2s;
}
.social-row a:hover { border-color: var(--green); background: rgba(0,200,83,.1); }
.disclaimer {
  background: rgba(255,215,0,.05);
  border: 1px solid rgba(255,215,0,.2);
  border-radius: 8px;
  padding: 12px 20px;
  font-size: .73rem;
  color: #a89a60;
  margin: 0 auto 20px;
  line-height: 1.6;
  max-width: 1200px;
}
.footer-bottom {
  border-top: 1px solid #1a3320;
  padding-top: 24px;
  text-align: center;
  font-size: .78rem;
  color: var(--muted);
  max-width: 1200px;
  margin: 0 auto;
}
.footer-legal { display: flex; justify-content: center; gap: 24px; margin-top: 8px; flex-wrap: wrap; }
.footer-legal a { color: var(--muted); font-size: .75rem; transition: color .2s; }
.footer-legal a:hover { color: var(--green); }

/* ── SINGLE POST ── */
.single-post-wrap { max-width: 780px; margin: 60px auto; padding: 0 5%; }
.post-header { margin-bottom: 36px; }
.post-header h1 { font-size: 2.2rem; font-weight: 900; line-height: 1.2; margin-bottom: 14px; }
.post-meta { font-size: .82rem; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; }
.post-content { color: var(--text); line-height: 1.85; font-size: 1rem; }
.post-content h2 { font-size: 1.5rem; margin: 36px 0 14px; color: #fff; }
.post-content h3 { font-size: 1.2rem; margin: 28px 0 10px; color: var(--green2); }
.post-content p  { margin-bottom: 20px; color: #c8ddc9; }
.post-content ul, .post-content ol { padding-left: 24px; margin-bottom: 20px; color: #c8ddc9; }
.post-content li { margin-bottom: 8px; }
.post-content a  { color: var(--green); border-bottom: 1px solid rgba(0,200,83,.3); }
.post-content blockquote {
  border-left: 3px solid var(--green);
  padding: 14px 20px;
  margin: 24px 0;
  background: rgba(0,200,83,.05);
  border-radius: 0 8px 8px 0;
  color: var(--green2);
  font-style: italic;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .blog-grid  { grid-template-columns: repeat(2, 1fr); }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero-grid   { grid-template-columns: 1fr; }
  .hero h1     { font-size: 2.2rem; }
  .hero-market { grid-template-columns: 1fr 1fr; }
  .stats-grid  { grid-template-columns: repeat(2, 1fr); }
  .blog-grid   { grid-template-columns: 1fr; }
  .prop-grid   { grid-template-columns: 1fr; }
  .tech-grid   { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .nav-links, .nav-cta { display: none; }
  .mobile-menu-toggle  { display: flex; }
  .nl-form { flex-direction: column; }
  h2 { font-size: 1.8rem; }
}
@media (max-width: 480px) {
  .hero { padding: 60px 5%; min-height: auto; }
  .hero-market { grid-template-columns: 1fr; }
  .stats-grid  { grid-template-columns: 1fr 1fr; }
}
