/* Smart Secure Haven - Cybersecurity Blog Stylesheet */

/* CSS Variables - Secure Theme */
:root {
  --primary-dark: #0d1b2a;
  --primary-navy: #1a2f4a;
  --secondary-dark: #162a3d;
  --teal-accent: #1b998b;
  --teal-bright: #2ec4b6;
  --teal-light: #40d4c7;
  --accent-green: #20c997;
  --text-light: #e8f4f8;
  --text-secondary: #b8c9d4;
  --text-muted: #7a8a99;
  --warning-red: #e74c3c;
  --success-green: #27ae60;
  --alert-orange: #e67e22;
  --button-hover: #16907f;
  --border-color: #2a3f52;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--primary-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin: 1.5rem 0 0.75rem 0;
  color: var(--text-light);
}

h1 {
  font-size: 2.5rem;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 2rem;
  margin-top: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--teal-accent);
  display: inline-block;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--teal-bright);
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
  color: var(--teal-light);
  text-shadow: 0 0 8px rgba(46, 196, 182, 0.3);
}

/* Header & Navigation */
header {
  background-color: var(--primary-navy);
  border-bottom: 2px solid var(--teal-accent);
  padding: 1rem 0;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: -0.5px;
}

.shield-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--teal-bright), var(--accent-green));
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: var(--primary-dark);
  font-weight: 900;
  font-size: 1.25rem;
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav a {
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

nav a:hover {
  color: var(--teal-bright);
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--teal-bright);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-dark) 50%, rgba(27, 153, 139, 0.1) 100%);
  padding: 6rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(46, 196, 182, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--teal-bright) 0%, var(--accent-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.cta-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--teal-bright) 0%, var(--teal-accent) 100%);
  color: var(--primary-dark);
  padding: 0.875rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.cta-primary::before {
  content: '🔒';
  margin-right: 0.5rem;
}

.cta-primary:hover {
  background: linear-gradient(135deg, var(--teal-light) 0%, var(--button-hover) 100%);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* Threat Alert Banner */
.threat-alert {
  background: linear-gradient(90deg, rgba(230, 126, 34, 0.1) 0%, rgba(27, 153, 139, 0.05) 100%);
  border-left: 4px solid var(--alert-orange);
  border-radius: 6px;
  padding: 1.5rem;
  margin: 2rem 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.threat-alert-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.threat-alert-content h3 {
  color: var(--alert-orange);
  margin-top: 0;
}

.threat-alert-content p {
  margin-bottom: 0.5rem;
}

/* Main Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}

/* Cards & Featured Content */
.card {
  background-color: var(--secondary-dark);
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.card:hover {
  border-color: var(--teal-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.card-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--teal-bright), var(--accent-green));
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  color: var(--text-light);
  margin: 0;
}

.card-content p {
  margin-bottom: 0.75rem;
}

.card-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.read-more {
  color: var(--teal-bright);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.read-more::after {
  content: '→';
}

/* Featured Section */
.featured-section {
  background-color: var(--secondary-dark);
  border: 2px solid var(--teal-accent);
  border-radius: 8px;
  padding: 2rem;
  margin: 3rem 0;
}

.featured-section h2 {
  border-bottom-color: var(--teal-accent);
}

/* Sidebar */
aside {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-card {
  background-color: var(--secondary-dark);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-card h3 {
  margin-top: 0;
  color: var(--teal-bright);
  border-bottom: 2px solid var(--teal-accent);
  padding-bottom: 0.75rem;
}

.deal-item {
  padding: 1rem;
  background-color: var(--primary-navy);
  border-radius: 6px;
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.deal-item:hover {
  background-color: rgba(46, 196, 182, 0.1);
  border-left: 3px solid var(--teal-bright);
}

.deal-name {
  font-weight: 600;
}

.deal-discount {
  background: linear-gradient(135deg, var(--teal-bright), var(--accent-green));
  color: var(--primary-dark);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 700;
}

/* Newsletter Signup */
.newsletter-section {
  background: linear-gradient(135deg, rgba(27, 153, 139, 0.15) 0%, rgba(32, 201, 151, 0.1) 100%);
  border: 2px solid var(--teal-accent);
  border-radius: 8px;
  padding: 2rem;
  margin: 3rem 0;
  text-align: center;
}

.newsletter-section h2 {
  border-bottom: none;
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.875rem;
  background-color: var(--primary-dark);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-light);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--teal-bright);
  box-shadow: 0 0 0 3px rgba(46, 196, 182, 0.1);
}

.newsletter-form button {
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, var(--teal-bright), var(--accent-green));
  color: var(--primary-dark);
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.newsletter-form button:hover {
  background: linear-gradient(135deg, var(--teal-light), var(--button-hover));
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Comparison Tables */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background-color: var(--secondary-dark);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.comparison-table thead {
  background-color: var(--primary-navy);
  border-bottom: 2px solid var(--teal-accent);
}

.comparison-table th {
  padding: 1rem;
  text-align: left;
  color: var(--teal-bright);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
}

.comparison-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.comparison-table tbody tr:hover {
  background-color: rgba(46, 196, 182, 0.05);
}

.comparison-table .product-name {
  font-weight: 600;
  color: var(--text-light);
}

.comparison-table .pro-badge {
  background-color: var(--success-green);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
}

.comparison-table .con-badge {
  background-color: var(--warning-red);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Pro/Con Boxes */
.pros-cons-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.pros-box, .cons-box {
  border-radius: 8px;
  padding: 1.5rem;
  border-left: 4px solid;
}

.pros-box {
  background-color: rgba(39, 174, 96, 0.08);
  border-left-color: var(--success-green);
}

.pros-box h4 {
  color: var(--success-green);
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pros-box h4::before {
  content: '✓';
  font-weight: 900;
}

.cons-box {
  background-color: rgba(231, 76, 60, 0.08);
  border-left-color: var(--warning-red);
}

.cons-box h4 {
  color: var(--warning-red);
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cons-box h4::before {
  content: '✕';
  font-weight: 900;
}

.pros-box ul, .cons-box ul {
  list-style: none;
  margin: 1rem 0 0 0;
}

.pros-box li, .cons-box li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.pros-box li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success-green);
  font-weight: 900;
}

.cons-box li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: var(--warning-red);
  font-weight: 900;
}

/* Alert & Warning Callouts */
.callout {
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  border-left: 4px solid;
}

.callout-info {
  background-color: rgba(52, 152, 219, 0.08);
  border-left-color: #3498db;
}

.callout-warning {
  background-color: rgba(230, 126, 34, 0.08);
  border-left-color: var(--alert-orange);
}

.callout-success {
  background-color: rgba(39, 174, 96, 0.08);
  border-left-color: var(--success-green);
}

.callout-danger {
  background-color: rgba(231, 76, 60, 0.08);
  border-left-color: var(--warning-red);
}

.callout h4 {
  margin-top: 0;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--teal-bright);
}

.breadcrumbs span {
  color: var(--text-muted);
}

/* Article Metadata */
.article-meta {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin: 1.5rem 0;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.meta-item strong {
  color: var(--text-secondary);
}

.reading-time {
  background-color: var(--secondary-dark);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

/* Security Score */
.security-score {
  background: linear-gradient(135deg, var(--primary-navy), var(--secondary-dark));
  border: 2px solid var(--teal-accent);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
}

.score-circle {
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 900;
  background: conic-gradient(var(--teal-bright) 0deg, var(--teal-bright) 288deg, var(--border-color) 288deg);
}

.score-value {
  color: var(--text-light);
}

/* Threat Level Indicators */
.threat-level-low {
  color: var(--success-green);
  font-weight: 600;
}

.threat-level-medium {
  color: var(--alert-orange);
  font-weight: 600;
}

.threat-level-high {
  color: var(--warning-red);
  font-weight: 600;
}

/* Footer */
footer {
  background-color: var(--primary-navy);
  border-top: 2px solid var(--teal-accent);
  margin-top: 4rem;
  padding: 3rem 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--teal-bright);
  margin-bottom: 1rem;
  margin-top: 0;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.75rem;
}

.footer-section a {
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.footer-section a:hover {
  color: var(--teal-bright);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  text-align: center;
  color: var(--text-muted);
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom p {
  margin-bottom: 0.5rem;
}

/* Ad Slots */
.ad-slot {
  background-color: var(--secondary-dark);
  border: 2px dashed var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
  color: var(--text-muted);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-slot-small {
  min-height: 120px;
}

.ad-slot-large {
  min-height: 300px;
}

/* Trust Badges */
.trust-badges {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
  justify-content: center;
}

.trust-badge {
  background-color: var(--secondary-dark);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 1rem;
  text-align: center;
  flex: 1;
  min-width: 150px;
  transition: all 0.3s ease;
}

.trust-badge:hover {
  border-color: var(--teal-accent);
  box-shadow: var(--shadow-sm);
}

.trust-badge-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.trust-badge-text {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Affiliate Links */
a[data-affiliate] {
  position: relative;
  font-weight: 600;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--teal-accent);
}

a[data-affiliate]::after {
  content: '↗';
  margin-left: 0.25rem;
  font-size: 0.85em;
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero {
    padding: 3rem 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .header-container {
    padding: 0 1rem;
  }

  nav ul {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .pros-cons-container {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 1rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form button {
    width: 100%;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .threat-alert {
    flex-direction: column;
  }

  .article-meta {
    gap: 1rem;
  }

  table {
    font-size: 0.9rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem;
  }
}

@media (max-width: 480px) {
  nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .comparison-table {
    font-size: 0.85rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.5rem;
  }

  .trust-badges {
    flex-direction: column;
  }

  .trust-badge {
    min-width: 100%;
  }

  .article-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.hidden {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
