/* ═══════════════════════════════════════════════════
   GXMarkets — Main Stylesheet
   Dark Theme | Gold Accent | Professional Forex Site
═══════════════════════════════════════════════════ */

:root {
  --bg-dark:       #0d0d0d;
  --bg-card:       #161616;
  --bg-card2:      #1e1e1e;
  --bg-section:    #111111;
  --border:        #2a2a2a;
  --border-light:  #333;
  --gold:          #f5a623;
  --gold-dark:     #c88200;
  --gold-light:    #ffc14d;
  --green:         #27ae60;
  --green-hover:   #219150;
  --text:          #e8e8e8;
  --text-muted:    #888;
  --text-light:    #bbb;
  --white:         #ffffff;
  --red:           #e74c3c;
  --blue:          #3498db;
  --header-h:      60px;
  --radius:        8px;
  --radius-lg:     12px;
  --shadow:        0 4px 20px rgba(0,0,0,0.4);
  --transition:    0.2s ease;
  --font:          'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Reset ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }

/* ── Container ────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }

/* ── Typography ───────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.3; color: var(--white); }
h1 { font-size: 2rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
h4 { font-size: 0.95rem; }

.gold-text { color: var(--gold); }
.gold-icon { color: var(--gold); margin-right: 6px; }

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: var(--radius);
  font-size: 13px; font-weight: 600; transition: all var(--transition);
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold); color: #000;
}
.btn-gold:hover { background: var(--gold-light); color: #000; }
.btn-outline-gold {
  border: 2px solid var(--gold); color: var(--gold); background: transparent;
}
.btn-outline-gold:hover { background: var(--gold); color: #000; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-hover); color: #fff; }
.btn-outline {
  border: 1px solid var(--border-light); color: var(--text-light); background: transparent;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-gold-sm { background: var(--gold); color: #000; padding: 6px 14px; font-size: 12px; border-radius: 5px; font-weight: 600; }
.btn-vote { background: var(--gold); color: #000; padding: 4px 10px; font-size: 11px; border-radius: 4px; font-weight: 700; }
.btn-visit { background: transparent; border: 1px solid var(--gold); color: var(--gold); padding: 4px 10px; font-size: 11px; border-radius: 4px; }
.btn-full { width: 100%; justify-content: center; }
.btn-admin {
  background: transparent; color: var(--text-muted); font-size: 13px;
  padding: 5px 10px; border-radius: 4px;
}
.btn-admin:hover { color: var(--gold); }
.btn-signout { color: var(--text-muted); font-size: 13px; }
.btn-signout:hover { color: var(--red); }

/* ── Header ───────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: #0a0a0a;
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.header-inner {
  display: flex; align-items: center; gap: 20px;
  height: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px;
}
.site-logo { display: flex; align-items: center; font-size: 16px; font-weight: 800; }
.logo-gx { color: var(--gold); }
.logo-markets { color: var(--white); }

.primary-nav { flex: 1; }
.primary-nav > ul { display: flex; gap: 4px; }
.primary-nav > ul > li { position: relative; }
.primary-nav > ul > li > a {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 12px; font-size: 13px; font-weight: 500;
  color: var(--text-light); border-radius: var(--radius);
  transition: all var(--transition);
}
.primary-nav > ul > li > a:hover,
.primary-nav > ul > li > a.active { color: var(--gold); background: rgba(245,166,35,0.08); }
.primary-nav > ul > li > a i { font-size: 10px; }

.dropdown {
  display: none; position: absolute; top: calc(100% + 4px); left: 0;
  background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: var(--radius); min-width: 200px;
  box-shadow: var(--shadow); z-index: 100;
}
.dropdown li a {
  display: block; padding: 9px 16px; font-size: 13px;
  color: var(--text-light); transition: all var(--transition);
}
.dropdown li a:hover { color: var(--gold); background: rgba(245,166,35,0.07); }
.has-dropdown:hover .dropdown { display: block; }

.header-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.mobile-menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.mobile-menu-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text-light); border-radius: 2px;
  transition: all var(--transition);
}
.mobile-nav { display: none; background: var(--bg-card); border-top: 1px solid var(--border); }
.mobile-nav ul { padding: 12px 16px; }
.mobile-nav li a { display: block; padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--text-light); }

/* ── Announcement Bar ─────────────────────────────── */
.announcement-bar {
  background: linear-gradient(90deg, #1a1200, #2a1c00, #1a1200);
  border-bottom: 1px solid #3a2800;
  padding: 8px 0; text-align: center;
}
.award-badge { color: var(--gold); font-size: 13px; font-weight: 600; }
.award-badge i { margin-right: 6px; }

/* ── Promo Banner ─────────────────────────────────── */
.promo-banner {
  background: var(--bg-card2); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); padding: 12px 0;
}
.promo-banner .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.promo-banner p { font-size: 13px; color: var(--text-light); flex: 1; }

/* ── Section Titles ───────────────────────────────── */
.section { margin-bottom: 30px; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 16px;
}
.section-header h2 { font-size: 1rem; font-weight: 700; }
.view-all { color: var(--gold); font-size: 12px; font-weight: 600; }
.view-all-sm { color: var(--gold); font-size: 11px; }

/* ── Widget Base ──────────────────────────────────── */
.widget {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px; margin-bottom: 16px;
}
.widget-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.widget-header h3 { font-size: 0.9rem; font-weight: 700; }

/* ── Badges ───────────────────────────────────────── */
.badge { padding: 2px 8px; border-radius: 20px; font-size: 10px; font-weight: 700; }
.badge-green { background: rgba(39,174,96,0.15); color: var(--green); }
.badge-gold  { background: rgba(245,166,35,0.15); color: var(--gold); }
.badge-red   { background: rgba(231,76,60,0.15);  color: var(--red); }
.badge-blue  { background: rgba(52,152,219,0.15); color: var(--blue); }
.trusted-badge {
  position: absolute; top: 4px; right: 4px;
  background: var(--green); color: #fff;
  font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 3px;
}

/* ── Star Rating ──────────────────────────────────── */
.broker-rating i { color: var(--border-light); font-size: 11px; }
.broker-rating i.active { color: var(--gold); }

/* ── Footer ───────────────────────────────────────── */
.site-footer { margin-top: 0; }
.footer-main {
  background: #0a0a0a; border-top: 1px solid var(--border); padding: 50px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .site-logo { margin-bottom: 14px; }
.footer-about { font-size: 12px; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.footer-social { display: flex; gap: 10px; margin-bottom: 16px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-card2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 13px;
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--gold); color: #000; border-color: var(--gold); }
.footer-contact p { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.footer-contact i { color: var(--gold); margin-right: 6px; }

.footer-col h4 { font-size: 13px; font-weight: 700; color: var(--white); margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 12px; color: var(--text-muted); }
.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom {
  background: #050505; border-top: 1px solid var(--border);
  padding: 14px 0; text-align: center;
}
.footer-bottom p { font-size: 11px; color: var(--text-muted); }

/* Sticky Footer Banner */
.sticky-footer-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  background: #111; border-top: 2px solid var(--gold);
  padding: 10px 0; box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
}
.sticky-inner {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.sticky-inner img { height: 36px; width: auto; }
.sticky-text { display: flex; flex-direction: column; }
.sticky-text span { font-size: 12px; color: var(--text-muted); }
.sticky-text strong { font-size: 20px; color: var(--gold); font-weight: 800; }
.sticky-close {
  margin-left: auto; color: var(--text-muted); font-size: 20px;
  padding: 4px 8px;
}
.sticky-close:hover { color: var(--white); }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
  .primary-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 1.6rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .sticky-footer-banner { display: none; }
}
