/* Plug Into Wealth - Main Stylesheet */

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

:root {
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --text-dark: #333;
  --text-light: #666;
  --bg-light: #f8f9fa;
  --border-color: #e0e0e0;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --warning-bg: #fff3cd;
  --warning-text: #856404;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  min-height: 100vh;
}

/* Header */
header {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

header h1 {
  color: var(--primary-color);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

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

nav a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

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

main {
  background: white;
  margin: 3rem auto;
  padding: 3rem 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  max-width: 900px;
}

main.wide {
  max-width: 1200px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2 {
  color: var(--primary-color);
  font-size: 2.5rem;
  text-align: center;
}

h3 {
  color: var(--text-dark);
  font-size: 1.8rem;
  margin: 2.5rem 0 1.5rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--primary-color);
}

h4 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

p {
  margin-bottom: 1rem;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 3rem;
  border-left: 4px solid var(--primary-color);
}

.hero-section h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  border: none;
  margin-top: 0;
}

.hero-section p {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* Grid Layouts */
.guides-grid, .blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

/* Cards */
.guide-card, .blog-card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid transparent;
}

.guide-card:hover, .blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
  border-color: var(--primary-color);
}

.blog-card .meta {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.blog-card .meta span {
  margin-right: 1rem;
}

/* Buttons & Links */
.btn, .guide-card a, .blog-card a {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border: 2px solid var(--primary-color);
  border-radius: 5px;
  transition: all 0.3s ease;
}

.btn:hover, .guide-card a:hover, .blog-card a:hover {
  background: var(--primary-color);
  color: white;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  border: none;
}

.btn-primary:hover {
  background: var(--secondary-color);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 3rem;
  border-radius: 8px;
  text-align: center;
  margin: 3rem 0;
}

.cta-section h3 {
  color: white;
  border: none;
  margin-top: 0;
}

.cta-section p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.cta-button {
  display: inline-block;
  background: white;
  color: var(--primary-color);
  padding: 1rem 2rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  transform: scale(1.05);
}

/* Forms */
.newsletter-form {
  display: flex;
  gap: 1rem;
  max-width: 500px;
  margin: 2rem auto;
  flex-wrap: wrap;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 250px;
  padding: 0.8rem;
  border: 2px solid white;
  border-radius: 5px;
  font-size: 1rem;
}

.newsletter-form button {
  padding: 0.8rem 2rem;
}

#newsletter-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 5px;
  display: none;
}

#newsletter-message.success {
  background: #d4edda;
  color: #155724;
  display: block;
}

#newsletter-message.error {
  background: #f8d7da;
  color: #721c24;
  display: block;
}

/* Blog Article */
.article-header {
  text-align: center;
  margin-bottom: 3rem;
}

.article-header h1 {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.article-meta {
  color: var(--text-light);
  font-size: 0.95rem;
}

.article-meta span {
  margin: 0 1rem;
}

.article-content {
  font-size: 1.1rem;
  line-height: 1.8;
}

.article-content h2 {
  color: var(--text-dark);
  font-size: 1.8rem;
  text-align: left;
  margin-top: 2rem;
}

.article-content h3 {
  font-size: 1.4rem;
  margin-top: 1.5rem;
}

.article-content ul, .article-content ol {
  margin: 1rem 0 1rem 2rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

/* Disclaimer & Alerts */
.disclaimer, .alert {
  padding: 1rem;
  margin: 2rem 0;
  border-radius: 4px;
  font-size: 0.9rem;
}

.disclaimer {
  background: var(--warning-bg);
  border-left: 4px solid var(--warning-color);
  color: var(--warning-text);
}

.alert-info {
  background: #d1ecf1;
  border-left: 4px solid #0c5460;
  color: #0c5460;
}

/* Footer */
footer {
  background: rgba(255, 255, 255, 0.98);
  padding: 3rem 0 1rem;
  margin-top: 3rem;
}

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

.footer-section h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

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

.footer-section a {
  color: var(--text-light);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-light);
}

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

  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  nav ul {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  h2 {
    font-size: 2rem;
  }

  main {
    margin: 2rem 1rem;
    padding: 2rem 1.5rem;
  }

  .guides-grid, .blog-grid {
    grid-template-columns: 1fr;
  }

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

  .newsletter-form input[type="email"] {
    min-width: 100%;
  }
}
