@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@600;700&family=Outfit:wght@400;600;700&display=swap');

:root {
  /* Default: Modern Glass (Theme 1) */
  --font-sans: 'Outfit', sans-serif;
  --font-serif: 'Playfair Display', serif;
  
  --bg-color: #0f172a;
  --surface-color: rgba(255, 255, 255, 0.03);
  --border-color: rgba(255, 255, 255, 0.1);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
  
  --layout-max-width: 1200px;
}

/* Theme 2: Clean Content (Minimal) */
body.theme-minimal {
  --font-sans: 'Inter', sans-serif;
  --bg-color: #fcfcfc;
  --surface-color: #ffffff;
  --border-color: #eaeaea;
  --text-main: #111827;
  --text-muted: #4b5563;
  --primary: #000000;
  --primary-hover: #333333;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Theme 3: Luxury Dark (Elegant) */
body.theme-dark-elegant {
  --font-sans: 'Inter', sans-serif;
  --bg-color: #121212;
  --surface-color: #1a1a1a;
  --border-color: #333333;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --primary: #d4af37; /* Gold */
  --primary-hover: #b8860b;
  --shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* Theme 4: Magazine Pro */
body.theme-magazine {
  --font-sans: 'Inter', sans-serif;
  --bg-color: #f3f4f6;
  --surface-color: #ffffff;
  --border-color: #e5e7eb;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --primary: #dc2626; /* News Red */
  --primary-hover: #b91c1c;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Theme 5: Gaming/Tech Vibrant (Neon) */
body.theme-neon {
  --font-sans: 'Outfit', sans-serif;
  --bg-color: #0b0f19;
  --surface-color: #151b2b;
  --border-color: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --primary: #06b6d4; /* Cyan */
  --primary-hover: #0891b2;
  --shadow: 0 8px 25px -5px rgba(6, 182, 212, 0.15);
}

/* Base Styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--primary); text-decoration: none; transition: 0.2s ease; }
a:hover { color: var(--primary-hover); }

/* Layout */
.container { max-width: var(--layout-max-width); margin: 0 auto; padding: 0 1.5rem; width: 100%; }
.section { margin: 4rem 0; }
.main-content { flex: 1; padding: 2rem 0; }

/* Navbar */
.navbar {
  background-color: var(--surface-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.nav-brand { font-size: 1.5rem; font-weight: 700; color: var(--text-main); letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: var(--text-main); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--primary); }

/* Footer */
.footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border-color);
  background-color: var(--surface-color);
  margin-top: auto;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Cards */
.card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); }
.card-content { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; line-height: 1.4; }
.card-title a { color: var(--text-main); }
.card-title a:hover { color: var(--primary); }
.card-excerpt { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; flex: 1; }

/* AdSense Standard Slots */
.ad-slot {
  background-color: rgba(128,128,128,0.05);
  border: 1px dashed var(--border-color);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 2rem auto;
  border-radius: 4px;
}
.ad-slot::before { content: "Advertisement"; font-size: 0.7rem; text-transform: uppercase; margin-bottom: 5px; opacity: 0.7; letter-spacing: 1px; }
.ad-leaderboard { width: 100%; max-width: 970px; height: 110px; }
.ad-rectangle { width: 100%; max-width: 300px; height: 270px; margin: 0 auto 2rem; }
.ad-skyscraper { width: 100%; max-width: 300px; height: 620px; margin: 0 auto 2rem; }

/* Affiliate Product Box (High Conversion) */
.affiliate-box {
  background: var(--surface-color);
  border: 2px solid var(--primary);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow);
  position: relative;
  margin-bottom: 2rem;
}
.affiliate-badge {
  position: absolute; top: -12px; right: 20px;
  background: var(--primary); color: #fff;
  padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.affiliate-title { font-size: 1.1rem; font-weight: 700; color: var(--text-main); line-height: 1.3; }
.affiliate-desc { font-size: 0.9rem; color: var(--text-muted); }
.btn-primary {
  display: inline-block; width: 100%; text-align: center;
  background: var(--primary); color: #fff !important;
  padding: 0.8rem 1.5rem; border-radius: 8px;
  font-weight: 600; font-size: 1rem; border: none; cursor: pointer;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.9; }

/* Grid Systems */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-sidebar { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; }

@media (max-width: 992px) {
  .grid-sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
}

/* Post Meta */
.post-meta { font-size: 0.85rem; color: var(--text-muted); display: flex; gap: 10px; align-items: center; margin-bottom: 0.8rem; }
.post-category { font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 0.5px; font-size: 0.75rem; }

/* Headers */
h1, h2, h3, h4 { color: var(--text-main); font-weight: 700; line-height: 1.3; }
.section-title { font-size: 1.5rem; margin-bottom: 1.5rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--primary); display: inline-block; }

/* Theme Overrides (Specifics) */
body.theme-magazine .navbar { border-top: 4px solid var(--primary); border-bottom: none; box-shadow: 0 2px 10px rgba(0,0,0,0.05); background: #ffffff; }
body.theme-magazine .nav-links a { text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px; font-size: 0.85rem; color: #111; }
body.theme-magazine .nav-links a:hover { color: var(--primary); }
body.theme-magazine .card { border-radius: 4px; box-shadow: none; border-bottom: 2px solid transparent; }
body.theme-magazine .card:hover { transform: none; border-bottom: 2px solid var(--primary); }

body.theme-dark-elegant h1, body.theme-dark-elegant h2, body.theme-dark-elegant .nav-brand { font-family: var(--font-serif); }
body.theme-dark-elegant .navbar { border-bottom: 1px solid #333; }
body.theme-dark-elegant .nav-links a { text-transform: uppercase; letter-spacing: 1px; font-size: 0.8rem; }

body.theme-neon .navbar { border-bottom: 1px solid var(--border-color); box-shadow: 0 0 20px rgba(6, 182, 212, 0.05); }
body.theme-neon .nav-links a { text-transform: uppercase; font-family: monospace; letter-spacing: 1px; }
body.theme-neon .btn-primary { text-transform: uppercase; letter-spacing: 1px; }

body.theme-minimal .navbar { border-bottom: 1px solid #eaeaea; }
body.theme-minimal .card { border: none; border-bottom: 1px solid var(--border-color); border-radius: 0; box-shadow: none; }
body.theme-minimal .card:hover { transform: none; background: transparent; }
body.theme-minimal .card-content { padding: 1.5rem 0; }
