/* refresh.css — 2026 visual upgrade for Smart Secure Haven.
 * Loaded AFTER style.css. Brand: deep blue + amber warning tones.
 */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Source+Serif+4:wght@400;600;700&display=swap");

:root {
  --ssh-ink: #0f172a;
  --ssh-body: #334155;
  --ssh-muted: #64748b;
  --ssh-line: #e2e8f0;
  --ssh-bg: #ffffff;
  --ssh-bg-alt: #f8fafc;
  --ssh-accent: #1e40af;         /* deep blue */
  --ssh-accent-dark: #1e3a8a;
  --ssh-amber: #d97706;          /* warning amber */
  --ssh-ok: #059669;             /* secure green */
  --ssh-shadow: 0 2px 4px rgba(15, 23, 42, 0.05), 0 8px 24px rgba(15, 23, 42, 0.06);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ssh-body);
  background: var(--ssh-bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 {
  font-family: 'Source Serif 4', 'Georgia', serif;
  color: var(--ssh-ink);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: 700; margin-top: 2.5rem; }
h3 { font-size: 1.35rem; font-weight: 600; margin-top: 2rem; }
a { color: var(--ssh-accent); text-underline-offset: 3px; }
a:hover { color: var(--ssh-accent-dark); }

.container { max-width: 1200px; padding-left: 1.25rem; padding-right: 1.25rem; margin: 0 auto; }

header {
  background: var(--ssh-bg);
  border-bottom: 1px solid var(--ssh-line);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.header-container { padding: 1rem 1.25rem; max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.logo {
  font-family: 'Source Serif 4', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ssh-ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.shield-icon { font-size: 1.3rem; }
nav ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
nav a {
  color: var(--ssh-body);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
nav a:hover { color: var(--ssh-accent); }

.hero, .hero-content {
  background: linear-gradient(180deg, #eff6ff 0%, #e0e7ff 100%);
}
.hero { padding: 4rem 0 4.5rem; border-bottom: 1px solid var(--ssh-line); }
.hero h1 { color: var(--ssh-ink); }
.hero-subtitle { color: var(--ssh-body); font-size: 1.15rem; }
.cta-primary {
  display: inline-block;
  background: var(--ssh-accent);
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}
.cta-primary:hover {
  background: var(--ssh-accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

.featured-section, section { padding: 3.5rem 1.25rem; }

.card, .sidebar-card {
  background: var(--ssh-bg);
  border: 1px solid var(--ssh-line);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover, .sidebar-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--ssh-shadow);
}
.card-title { margin-top: 0; }
.card-icon { font-size: 1.5rem; margin-bottom: 0.75rem; display: block; }

.read-more {
  display: inline-block;
  color: var(--ssh-accent);
  font-weight: 600;
  text-decoration: none;
}
.read-more:hover { color: var(--ssh-accent-dark); }
.read-more::after { content: " →"; }

.threat-alert, .deal-item {
  border-left: 3px solid var(--ssh-amber);
  background: #fffbeb;
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin-bottom: 1rem;
}
.deal-discount {
  color: var(--ssh-ok);
  font-weight: 700;
}

.article-meta, .meta-item, .reading-time {
  color: var(--ssh-muted);
  font-size: 0.875rem;
}

.newsletter-section {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: #fff;
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  margin: 2rem auto;
  max-width: 720px;
  box-shadow: 0 10px 30px rgba(30, 64, 175, 0.15);
}
.newsletter-section h2, .newsletter-section h3 { color: #fff; }
.newsletter-section p { color: rgba(255,255,255,0.9); }
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 460px;
  margin: 1.5rem auto 0;
}
.newsletter-form input[type="email"] {
  flex: 1; padding: 0.85rem 1rem;
  border-radius: 8px; border: 0;
  font-size: 1rem;
}
.newsletter-form button {
  background: var(--ssh-amber);
  color: #fff;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}
.newsletter-form button:hover { background: #b45309; }
.newsletter-success {
  background: rgba(255,255,255,0.12);
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  color: #fff;
  max-width: 460px;
  margin: 1.5rem auto 0;
}

footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}
footer h4 {
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
footer a { color: #cbd5e1; text-decoration: none; }
footer a:hover { color: #fff; }
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  padding: 0 1.25rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}
.footer-section ul { list-style: none; padding: 0; }
.footer-section li { margin-bottom: 0.5rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 1.25rem 0;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  max-width: 1200px;
  margin: 0 auto;
}

.grid, .grid-2, .grid-3 {
  display: grid;
  gap: 1.5rem;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.featured-section { padding: 3rem 0; }

.ad-slot, ins.adsbygoogle {
  display: block !important;
  margin: 2.5rem auto;
  max-width: 100%;
}
.ad-slot {
  background: var(--ssh-bg-alt);
  border: 1px solid var(--ssh-line);
  border-radius: 8px;
  padding: 0.5rem;
  min-height: 100px;
  text-align: center;
}

@media (max-width: 768px) {
  nav ul { flex-wrap: wrap; gap: 0.5rem 1rem; }
  .header-container { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .newsletter-form { flex-direction: column; }
}
