/* Global Reset and Base Styles */
:root {
  --primary-color: #007bff; /* Tech Blue */
  --secondary-color: #6c757d; /* Grey */
  --background-color: #ffffff;
  --text-color: #333333;
  --accent-color: #28a745; /* Success Green */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0.5em;
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }

/* Layout */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

header {
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  padding: 1rem 0;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav a {
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

main {
  padding: 2rem 0;
  min-height: 60vh;
}

footer {
  background: #343a40;
  color: #fff;
  padding: 2rem 0;
  text-align: center;
}

footer a {
  color: #fff;
  text-decoration: underline;
}

/* AdSense CLS Armor (Phase 4) */
.ad-container-leaderboard {
  min-height: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  background-color: #f9f9f9;
}

@media (max-width: 768px) {
  .ad-container-leaderboard {
    min-height: 250px;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  .container { width: 95%; }
}

/* Utility */
.btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 5px;
}

.btn:hover {
  background: #0056b3;
  text-decoration: none;
}

.btn-payment {
  display: inline-block;
  padding: 12px 24px;
  background: #0070ba; /* Trust-Blue */
  color: #fff;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  min-width: 44px;
  min-height: 44px;
  line-height: 1.5;
  transition: background 0.3s ease;
  touch-action: manipulation;
}

.btn-payment:hover {
  background: #005ea6;
  text-decoration: none;
}

.support-section {
  background: #f0f4f8;
  padding: 2rem;
  border-radius: 8px;
  margin-top: 3rem;
  text-align: center;
  border: 1px solid #d1d9e6;
}

.support-section h3 {
  margin-top: 0;
  color: #003366;
}

/* Article Styles */
article {
  max-width: 800px;
  margin: 0 auto;
}

article p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

article img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem 0;
}

.meta {
  color: var(--secondary-color);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.article-hero-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.author-bio {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 3rem;
  border-left: 4px solid var(--primary-color);
}

.author-avatar {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.author-info h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}

.author-info p {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
}
