/*
Theme Name: eToro Clean
Description: Professional eToro-branded theme
Version: 1.0
Author: eToro
*/

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

:root {
  --green: #00C896;
  --green-dark: #00A87A;
  --navy: #0B1128;
  --navy-light: #1A2440;
  --white: #FFFFFF;
  --gray-50: #F8F9FA;
  --gray-100: #F0F2F5;
  --gray-200: #E4E7EC;
  --gray-400: #98A2B3;
  --gray-600: #667085;
  --gray-800: #344054;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.1);
  --transition: all .2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green-dark); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--green); }

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

h1, h2, h3, h4, h5, h6 {
  color: var(--navy);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: .5em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.75rem); }

p { margin-bottom: 1rem; color: var(--gray-600); }

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  text-decoration: none;
}

.site-logo svg { height: 32px; width: auto; }

.site-logo .logo-text {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-logo .logo-text span { color: var(--green); }

/* Nav */
.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a {
  padding: 8px 16px;
  border-radius: var(--radius);
  color: var(--gray-800);
  font-weight: 500;
  font-size: .95rem;
  transition: var(--transition);
}
.main-nav a:hover { background: var(--gray-100); color: var(--navy); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--green-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,200,150,.3);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--gray-200);
}
.btn-outline:hover {
  border-color: var(--green);
  color: var(--green);
}

.btn-lg { padding: 14px 32px; font-size: 1.05rem; border-radius: var(--radius-lg); }

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, #0d1a3a 100%);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,200,150,.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,200,150,.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
}

.hero p {
  color: rgba(255,255,255,.7);
  font-size: 1.2rem;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-badge {
  display: inline-block;
  margin-top: 32px;
  padding: 8px 20px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  color: rgba(255,255,255,.6);
  font-size: .85rem;
}

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--gray-50); }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0,200,150,.1), rgba(0,200,150,.05));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { font-size: .95rem; margin-bottom: 16px; }

.card .card-link {
  font-weight: 600;
  color: var(--green);
  font-size: .9rem;
}
.card .card-link:hover { color: var(--green-dark); }

/* Stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  padding: 48px 0;
}
.stat { text-align: center; }
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
}
.stat-label {
  margin-top: 8px;
  color: var(--gray-600);
  font-size: .95rem;
}

/* Content layout */
.content-area {
  padding: 48px 0;
}

.content-area .entry-content {
  max-width: 800px;
  margin: 0 auto;
}

.entry-content h1 { margin-bottom: 24px; }
.entry-content h2 { margin-top: 40px; margin-bottom: 16px; }
.entry-content h3 { margin-top: 32px; margin-bottom: 12px; }

.entry-content ul, .entry-content ol {
  margin: 0 0 24px 24px;
}
.entry-content li {
  margin-bottom: 8px;
  color: var(--gray-600);
}
.entry-content li a {
  font-weight: 500;
}

/* WP block styles */
.wp-block-button .wp-block-button__link {
  background: var(--green);
  color: var(--white);
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition);
}
.wp-block-button .wp-block-button__link:hover {
  background: var(--green-dark);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.6);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand .logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-brand .logo-text span { color: var(--green); }
.footer-brand p { font-size: .9rem; line-height: 1.7; color: rgba(255,255,255,.5); }

.footer-col h4 {
  color: var(--white);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: rgba(255,255,255,.5);
  font-size: .9rem;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--green); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-disclaimer {
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .8rem;
  line-height: 1.7;
  color: rgba(255,255,255,.35);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  
  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
  }
  .main-nav.active { display: flex; }
  .main-nav a { padding: 12px 16px; width: 100%; }
  
  .hero { padding: 64px 0 48px; }
  .hero h1 { font-size: 2rem; }
  
  .section { padding: 48px 0; }
  
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  
  .stats-bar { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: center; }
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.text-green { color: var(--green); }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }

/* Hide admin bar spacing issue */
#wpadminbar ~ .site-header { top: 32px; }
@media (max-width: 782px) {
  #wpadminbar ~ .site-header { top: 46px; }
}
