/* 🚀 2025 CSS FOUNDATION — MOBILE-FIRST, FAST, ACCESSIBLE */

:root {
  --primary: #0066cc;
  --primary-dark: #0055aa;
  --secondary: #ff6b35;
  --light: #f8f9fa;
  --dark: #212529;
  --gray: #6c757d;
  --border: #dee2e6;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.7;
  color: var(--dark);
  background-color: #fff;
  overflow-x: hidden;
}

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

.container {
  width: min(90%, 1200px);
  margin: 0 auto;
  padding: 0 20px;
}

/* TYPOGRAPHY */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; line-height: 1.1; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; margin: 2rem 0 1rem; }
h3 { font-size: 1.5rem; font-weight: 600; }
p, li { font-size: 1.05rem; margin-bottom: 1rem; }
.meta { color: var(--gray); font-size: 0.95rem; }

/* LINKS & BUTTONS */
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: none;
  font-size: 1.05rem;
}

.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover {
  background: var(--primary-dark);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-secondary:hover {
  background: #f0f7ff;
}

/* HEADER */
.site-header {
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo img { height: 40px; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}
.main-nav a {
  font-weight: 500;
  color: var(--dark);
  padding: 1rem 0;
}
.main-nav a:hover { color: var(--primary); text-decoration: none; }

/* GEO BANNER */
.geo-banner {
  background: #e3f2fd;
  text-align: center;
  padding: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #0d47a1;
  border-bottom: 1px solid #bbdefb;
}

/* HERO */
.hero {
  padding: 6rem 0 4rem;
  text-align: center;
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
}
.hero-subtitle {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 1.5rem auto 2.5rem;
  color: var(--gray);
}

/* GRIDS */
.tool-grid, .post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.tool-card, .post-preview {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.tool-card:hover, .post-preview:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.tool-card img, .post-preview img {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.post-content {
  padding: 1.5rem;
}

/* SINGLE POST */
.single-post {
  padding: 4rem 0;
}
.featured-image {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 2.5rem 0;
}

.post-meta {
  font-size: 0.95rem;
  color: var(--gray);
  margin: 1rem 0;
}
.rating {
  color: #ffc107;
  font-weight: 600;
}

.toc {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: var(--radius);
  margin: 2rem 0;
}
.toc h2 { margin-top: 0; }
.toc ul { padding-left: 1.5rem; }

.author-bio {
  display: flex;
  gap: 1.5rem;
  background: #f8f9fa;
  padding: 2rem;
  border-radius: var(--radius);
  margin: 4rem 0;
  align-items: flex-start;
}
.author-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.affiliate-cta {
  background: #fff8e1;
  border-left: 4px solid #ffc107;
  padding: 1.5rem;
  margin: 2.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* EMAIL CTA */
.email-cta {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 5rem 1rem;
}
.email-cta h2 { color: white; margin-bottom: 1rem; }
.email-cta p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 2rem; }
.email-cta form {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}
.email-cta input {
  flex: 1;
  min-width: 250px;
  padding: 14px 20px;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
}
.email-cta button { white-space: nowrap; }

/* FOOTER */
.site-footer {
  background: var(--dark);
  color: #adb5bd;
  padding: 3rem 0 2rem;
  text-align: center;
}
.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.footer-links a { color: #adb5bd; }
.footer-links a:hover { color: white; text-decoration: underline; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .main-nav ul { gap: 1rem; }
  .author-bio { flex-direction: column; text-align: center; }
  .email-cta form { flex-direction: column; align-items: center; }
  .email-cta input { width: 100%; max-width: 350px; }
    }
