/* Modern Newsletter Styling for goudplevier.ai */

/* ==================== */
/* Variables            */
/* ==================== */
:root {
  /* Core Colors - matching goudplevier.css */
  --primary: #1e3a8a;       /* Deep blue */
  --secondary: #111d2e;     /* Dark navy blue */
  --accent: #ffd23e;        /* Gold accent */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-accent: 'Playfair Display', Georgia, 'Times New Roman', serif;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Border Radius */
  --radius-sm: 0.125rem;
  --radius: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
}

/* ==================== */
/* Newsletter Layout    */
/* ==================== */
.newsletter-container {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-4);
}

/* Hero Section */
.newsletter-hero {
  padding: var(--space-16) 0;
  background: linear-gradient(135deg, var(--secondary) 0%, #050e24 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
  color: var(--white);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-10);
}

.newsletter-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 1;
}

.newsletter-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--space-6);
}

.newsletter-eyebrow {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-4);
  padding: var(--space-2) var(--space-4);
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  color: var(--accent);
}

.newsletter-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: var(--space-4);
  color: var(--white);
  line-height: 1.2;
}

.newsletter-subtitle {
  font-size: 1.25rem;
  color: var(--gray-200);
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-6);
}

.newsletter-meta {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  font-size: 0.875rem;
  color: var(--gray-300);
}

.newsletter-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* Featured Image */
.newsletter-featured-image {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-10);
  box-shadow: var(--shadow-lg);
}

.newsletter-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==================== */
/* Section Components   */
/* ==================== */
.newsletter-section {
  margin-bottom: var(--space-12);
}

.section-header {
  position: relative;
  margin-bottom: var(--space-6);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--secondary);
  padding-bottom: var(--space-2);
  border-bottom: 3px solid var(--accent);
  display: inline-block;
  margin-bottom: var(--space-1);
}

.section-intro {
  font-size: 1.1rem;
  color: var(--gray-600);
  margin-top: var(--space-3);
  max-width: 700px;
}

/* ==================== */
/* Content Components   */
/* ==================== */
.intro-text {
  font-size: 1.125rem;
  color: var(--gray-700);
  margin-bottom: var(--space-8);
  line-height: 1.6;
  text-align: center;
}

.welcome-message {
  text-align: center;
  margin-bottom: var(--space-8);
}

.welcome-message p {
  margin-bottom: var(--space-4);
}

/* Blockquote styling */
blockquote {
  position: relative;
  padding: var(--space-6) var(--space-8);
  margin: var(--space-8) 0;
  background-color: var(--gray-50);
  border-radius: var(--radius-lg);
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--gray-800);
  line-height: 1.5;
  border-left: 4px solid var(--accent);
}

blockquote::before {
  content: """;
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  font-size: 4rem;
  color: var(--gray-300);
  line-height: 0;
}

blockquote p {
  position: relative;
  z-index: 1;
}

/* Deep Dive Section */
.deep-dive {
  background-color: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-8);
}

.deep-dive h3 {
  color: var(--primary);
  margin-bottom: var(--space-4);
  font-size: 1.5rem;
}

/* Tool of the Week */
.tool-of-week {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: var(--space-8);
  border: 1px solid var(--gray-200);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-of-week:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.tool-header {
  background-color: var(--primary);
  color: var(--white);
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.tool-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-title {
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0;
}

.tool-body {
  padding: var(--space-6);
}

.tool-description {
  margin-bottom: var(--space-4);
}

.tool-features {
  margin-bottom: var(--space-4);
}

.tool-features h4 {
  font-size: 1.1rem;
  margin-bottom: var(--space-2);
  color: var(--gray-800);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  padding: var(--space-2) 0;
  padding-left: var(--space-6);
  position: relative;
}

.feature-list li:before {
  content: "✓";
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.tool-cta {
  text-align: center;
  padding-top: var(--space-4);
}

/* Quick Bytes */
.quick-bytes {
  background-color: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-8);
}

.bytes-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.byte-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--gray-200);
}

.byte-item:last-child {
  border-bottom: none;
}

.byte-icon {
  flex-shrink: 0;
  color: var(--primary);
  font-weight: bold;
  font-size: 1.25rem;
}

.byte-content {
  flex-grow: 1;
}

.byte-content h4 {
  margin: 0 0 var(--space-1) 0;
  font-size: 1.1rem;
}

.byte-content p {
  margin: 0;
  color: var(--gray-600);
}

/* AI in the Wild Case Study */
.case-study {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-6);
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: var(--space-8);
}

.case-content {
  padding: var(--space-6);
}

.case-content h3 {
  color: var(--primary);
  margin-bottom: var(--space-4);
  font-size: 1.5rem;
}

.case-image {
  background-color: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.case-meta {
  margin-bottom: var(--space-4);
}

.case-meta-item {
  display: flex;
  margin-bottom: var(--space-2);
}

.case-meta-label {
  font-weight: 600;
  width: 120px;
  color: var(--gray-700);
}

.case-meta-value {
  color: var(--gray-800);
}

.case-steps {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0;
  counter-reset: step-counter;
}

.case-steps li {
  position: relative;
  padding-left: var(--space-8);
  margin-bottom: var(--space-3);
  counter-increment: step-counter;
}

.case-steps li:before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: bold;
}

/* Upskill Pick */
.upskill-pick {
  background-color: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-8);
  border-left: 4px solid var(--accent);
}

.upskill-pick h3 {
  color: var(--primary);
  margin-bottom: var(--space-4);
  font-size: 1.5rem;
}

.upskill-cta {
  margin-top: var(--space-4);
}

/* Coming Next Week */
.coming-next {
  background-color: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-8);
  border-top: 4px solid var(--primary);
}

.coming-next h3 {
  color: var(--primary);
  margin-bottom: var(--space-4);
  font-size: 1.5rem;
}

/* Feedback Section */
.feedback-section {
  text-align: center;
  margin-bottom: var(--space-8);
  padding: var(--space-6);
  background-color: var(--gray-50);
  border-radius: var(--radius-lg);
}

.feedback-section h3 {
  color: var(--primary);
  margin-bottom: var(--space-4);
  font-size: 1.25rem;
}

/* ==================== */
/* Newsletter Footer    */
/* ==================== */
.newsletter-footer {
  text-align: center;
  border-top: 1px solid var(--gray-200);
  padding-top: var(--space-6);
  margin-bottom: var(--space-6);
  color: var(--gray-600);
  font-size: 0.875rem;
}

.newsletter-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-8);
}

.nav-item {
  flex: 1;
}

.nav-item.center {
  text-align: center;
}

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

/* ==================== */
/* Archive Page         */
/* ==================== */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.archive-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.archive-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.archive-card:hover .archive-image img {
  transform: scale(1.05);
}

.archive-image {
  height: 0;
  padding-bottom: 60%;
  position: relative;
  overflow: hidden;
}

.archive-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.archive-content {
  padding: var(--space-5);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.archive-date {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: var(--space-2);
}

.archive-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.archive-excerpt {
  color: var(--gray-600);
  margin-bottom: var(--space-4);
  font-size: 0.95rem;
  line-height: 1.5;
  flex-grow: 1;
}

.archive-footer {
  margin-top: auto;
}

/* ==================== */
/* Responsive           */
/* ==================== */
@media (max-width: 768px) {
  .newsletter-container {
    padding: var(--space-3);
  }

  .newsletter-title {
    font-size: 1.75rem;
  }

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

  .section-title {
    font-size: 1.5rem;
  }

  .case-study {
    grid-template-columns: 1fr;
  }

  .case-image {
    min-height: 200px;
    order: -1;
  }

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

@media (max-width: 480px) {
  .newsletter-hero {
    padding: var(--space-10) 0;
  }

  .newsletter-title {
    font-size: 1.5rem;
  }

  .newsletter-eyebrow {
    font-size: 0.875rem;
  }

  .intro-text {
    font-size: 1rem;
  }

  blockquote {
    padding: var(--space-4) var(--space-4) var(--space-4) var(--space-6);
    font-size: 1.1rem;
  }

  .newsletter-nav {
    flex-direction: column;
    gap: var(--space-3);
  }

  .nav-item {
    text-align: center;
  }

  .nav-item.right {
    text-align: center;
  }

  .tool-header {
    flex-direction: column;
    text-align: center;
    padding: var(--space-3);
  }
}
