/* ==========================================================================
   Animarum Ghost Theme
   Modern, minimalist blog theme with green gradient accents
   ========================================================================== */

/* Import Fonts */
@import url("https://fonts.googleapis.com/css2?family=Geist+Sans:wght@100..900&display=swap");

/* ==========================================================================
   Base Styles & CSS Reset
   ========================================================================== */

:root {
  /* Brand Colors */
  --brand-lime: #d9f329;
  --brand-green: #b4e010;
  --brand-forest: #3d9a01;
  --brand-deep: #012f00;
  --brand-button: #219e46;

  /* Accent Colors */
  --accent-blue: #3b82f6;
  --accent-orange: #f97316;
  --accent-purple: #8b5cf6;

  /* Base Colors */
  --color-white: #ffffff;
  --color-black: #1a1a1a;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-600: #666666;
  --color-gray-900: #1a1a1a;

  /* Soft Surfaces */
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;

  /* Typography */
  --font-sans:
    "Geist Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  /* Spacing */
  --section-padding: 5rem;
  --container-max-width: 1280px;

  /* Transitions */
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-black);
  background-color: var(--color-white);
  overflow-x: hidden;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-black);
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1.125rem;
}

p {
  margin-bottom: 1.5rem;
  color: var(--color-gray-600);
  font-size: 1.125rem;
  line-height: 1.7;
}

a {
  color: var(--brand-forest);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--brand-green);
}

/* ==========================================================================
   Custom Animations & Keyframes
   ========================================================================== */

@keyframes gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-fade-in {
  animation: fade-in 0.8s ease-out forwards;
}

.animate-fade-in-up {
  animation: fade-in-up 0.8s ease-out forwards;
  opacity: 0;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: var(--section-padding) 1.5rem;
}

.text-gradient {
  background: linear-gradient(
    135deg,
    var(--brand-lime) 0%,
    var(--brand-green) 50%,
    var(--brand-forest) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-animated {
  background: linear-gradient(
    90deg,
    var(--brand-lime),
    var(--brand-green),
    var(--brand-forest),
    var(--brand-green),
    var(--brand-lime)
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s linear infinite;
}

.bg-gradient-green {
  background: linear-gradient(
    135deg,
    var(--brand-lime) 0%,
    var(--brand-green) 50%,
    var(--brand-forest) 100%
  );
}

.bg-gradient-green-soft {
  background: linear-gradient(
    135deg,
    var(--green-50) 0%,
    var(--green-100) 100%
  );
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 0.75rem;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  text-align: center;
  white-space: nowrap;
}

.btn-gradient {
  background: linear-gradient(135deg, var(--brand-green), var(--brand-forest));
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(61, 154, 1, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(61, 154, 1, 0.4);
  color: var(--color-white);
}

.btn-gradient::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}

.btn-gradient:active::before {
  width: 300px;
  height: 300px;
}

.btn-outline {
  background: transparent;
  color: var(--brand-forest);
  border: 2px solid var(--brand-forest);
}

.btn-outline:hover {
  background: var(--brand-forest);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* Card Styles */
.card {
  background: var(--color-white);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--color-gray-200);
  transition: all var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--brand-green);
}

.card-premium {
  border: 2px solid transparent;
  background:
    linear-gradient(white, white) padding-box,
    linear-gradient(135deg, var(--brand-lime), var(--brand-forest)) border-box;
}

.card-premium:hover {
  box-shadow: 0 20px 60px rgba(61, 154, 1, 0.15);
}

/* Glass Morphism */
.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 1rem;
}

/* Section Labels */
.section-label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-forest);
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  background: var(--green-50);
  border-radius: 2rem;
}

/* Logo Glow */
.logo-glow {
  transition: filter var(--transition-base);
}

.logo-glow:hover {
  filter: drop-shadow(0 0 20px rgba(61, 154, 1, 0.5));
}

/* ==========================================================================
   Header / Navbar
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition-base);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  border-bottom-color: var(--color-gray-200);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.site-logo {
  height: 3.5rem;
  width: auto;
  transition: all var(--transition-base);
}

.site-logo:hover {
  transform: scale(1.05);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  font-weight: 500;
  color: var(--color-black);
  transition: color var(--transition-base);
  font-size: 1rem;
}

.site-nav a:hover {
  color: var(--brand-forest);
}

.site-nav a.active {
  color: var(--brand-forest);
  position: relative;
}

.site-nav a.active::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-forest);
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-black);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 5rem;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-black);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-gray-200);
}

@media (max-width: 768px) {
  .site-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }
}

/* ==========================================================================
   Hero / Banner Section
   ========================================================================== */

.site-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem 5rem;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--green-50) 0%,
    var(--color-white) 100%
  );
}

.site-hero::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(217, 243, 41, 0.2) 0%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(80px);
  animation: float 6s ease-in-out infinite;
}

.site-hero::after {
  content: "";
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(61, 154, 1, 0.15) 0%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(100px);
  animation: float 8s ease-in-out infinite reverse;
}

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

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-description {
  font-size: 1.5rem;
  color: var(--color-gray-600);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Post Grid & Cards
   ========================================================================== */

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2.5rem;
  padding: 3rem 0;
}

.post-card {
  background: var(--color-white);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--color-gray-200);
  transition: all var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--brand-green);
}

.post-card-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform var(--transition-base);
}

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

.post-card-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.post-card-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-forest);
  background: var(--green-50);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  transition: all var(--transition-base);
}

.post-card-tag:hover {
  background: var(--brand-forest);
  color: var(--color-white);
}

.post-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-black);
  line-height: 1.3;
}

.post-card-title a {
  color: inherit;
}

.post-card-title a:hover {
  color: var(--brand-forest);
}

.post-card-excerpt {
  color: var(--color-gray-600);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--color-gray-600);
  padding-top: 1rem;
  border-top: 1px solid var(--color-gray-200);
}

.post-card-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-card-author-image {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.post-card-date {
  color: var(--color-gray-600);
}

/* ==========================================================================
   Single Post
   ========================================================================== */

.post-header {
  max-width: 900px;
  margin: 0 auto;
  padding: 8rem 1.5rem 3rem;
  text-align: center;
}

.post-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 1rem;
  color: var(--color-gray-600);
  margin-bottom: 2rem;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.post-author-image {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.post-feature-image {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 4rem;
  border-radius: 1rem;
  overflow: hidden;
}

.post-feature-image img {
  width: 100%;
  height: auto;
  display: block;
}

.post-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  font-size: 1.125rem;
  line-height: 1.8;
}

.post-content h2 {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.post-content h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.post-content img {
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 2rem 0;
}

.post-content blockquote {
  border-left: 4px solid var(--brand-forest);
  padding-left: 2rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--color-gray-600);
  font-size: 1.25rem;
}

.post-content pre {
  background: var(--color-gray-900);
  color: var(--green-100);
  padding: 1.5rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  margin: 2rem 0;
}

.post-content code {
  background: var(--color-gray-100);
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: "Monaco", "Courier New", monospace;
}

.post-content pre code {
  background: none;
  padding: 0;
}

.post-content ul,
.post-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.post-content li {
  margin-bottom: 0.75rem;
  color: var(--color-gray-600);
}

/* ==========================================================================
   Koenig Editor Styles (Ghost Content)
   ========================================================================== */

/* Wide and Full Width Images */
.kg-width-wide {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  max-width: 1200px;
}

.kg-width-full {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* Koenig Gallery */
.kg-gallery-container {
  display: flex;
  flex-direction: column;
  margin: 2rem 0;
}

.kg-gallery-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 0.5rem;
}

.kg-gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
}

/* Koenig Bookmark Card */
.kg-bookmark-card {
  width: 100%;
  margin: 2rem 0;
  border: 1px solid var(--color-gray-200);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all var(--transition-base);
}

.kg-bookmark-card:hover {
  border-color: var(--brand-green);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.kg-bookmark-container {
  display: flex;
  text-decoration: none;
  color: inherit;
}

.kg-bookmark-content {
  flex: 1;
  padding: 1.5rem;
}

.kg-bookmark-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-black);
}

.kg-bookmark-description {
  font-size: 0.875rem;
  color: var(--color-gray-600);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kg-bookmark-metadata {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-gray-600);
}

.kg-bookmark-thumbnail {
  min-width: 200px;
  max-width: 200px;
}

.kg-bookmark-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Koenig Embed Card */
.kg-embed-card {
  margin: 2rem 0;
}

.kg-embed-card iframe {
  width: 100%;
  border-radius: 0.75rem;
}

/* Koenig Image Card */
.kg-image-card {
  margin: 2rem 0;
}

.kg-image-card img {
  width: 100%;
  border-radius: 0.75rem;
}

.kg-image-card figcaption {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--color-gray-600);
  font-style: italic;
}

/* Koenig Video Card */
.kg-video-card {
  margin: 2rem 0;
}

.kg-video-card video {
  width: 100%;
  border-radius: 0.75rem;
}

/* Koenig File Card */
.kg-file-card {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: 0.75rem;
}

.kg-file-card-title {
  font-weight: 600;
  color: var(--color-black);
}

.kg-file-card-caption {
  font-size: 0.875rem;
  color: var(--color-gray-600);
  margin-top: 0.5rem;
}

/* Koenig Button Card */
.kg-button-card {
  margin: 2rem 0;
  text-align: center;
}

.kg-btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, var(--brand-green), var(--brand-forest));
  color: white;
  font-weight: 600;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: all var(--transition-base);
}

.kg-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(61, 154, 1, 0.4);
  color: white;
}

/* Koenig Callout Card */
.kg-callout-card {
  margin: 2rem 0;
  padding: 1.5rem;
  border-left: 4px solid var(--brand-forest);
  background: var(--green-50);
  border-radius: 0.5rem;
}

.kg-callout-emoji {
  font-size: 1.5rem;
  margin-right: 1rem;
}

.kg-callout-text {
  color: var(--color-gray-600);
}

/* Koenig Toggle Card */
.kg-toggle-card {
  margin: 2rem 0;
  border: 1px solid var(--color-gray-200);
  border-radius: 0.75rem;
  overflow: hidden;
}

.kg-toggle-heading {
  padding: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--color-white);
  transition: background var(--transition-base);
}

.kg-toggle-heading:hover {
  background: var(--color-gray-50);
}

.kg-toggle-content {
  padding: 0 1.5rem 1.5rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .kg-bookmark-container {
    flex-direction: column;
  }

  .kg-bookmark-thumbnail {
    min-width: 100%;
    max-width: 100%;
    max-height: 200px;
  }

  .kg-width-wide,
  .kg-width-full {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    width: calc(100% + 3rem);
    left: 0;
    right: 0;
  }
}

/* ==========================================================================
   Newsletter CTA Section
   ========================================================================== */

.newsletter-cta {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.newsletter-background {
  position: relative;
  min-height: 500px;
  background-image: url("../images/ai-visualization.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.newsletter-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(1, 47, 0, 0.95) 0%,
    rgba(61, 154, 1, 0.9) 50%,
    rgba(1, 47, 0, 0.95) 100%
  );
  z-index: 1;
}

.newsletter-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 5rem 1.5rem;
  max-width: 800px;
}

.newsletter-label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brand-lime);
  margin-bottom: 1.5rem;
  padding: 0.5rem 1.5rem;
  background: rgba(217, 243, 41, 0.1);
  border-radius: 2rem;
  border: 1px solid rgba(217, 243, 41, 0.3);
}

.newsletter-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.newsletter-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 3rem;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-input {
  flex: 1;
  min-width: 280px;
  padding: 1.125rem 1.5rem;
  border-radius: 0.75rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transition: all var(--transition-base);
  color: var(--color-black);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--brand-lime);
  background: white;
  box-shadow: 0 0 0 4px rgba(217, 243, 41, 0.1);
}

.newsletter-input::placeholder {
  color: var(--color-gray-600);
}

.newsletter-btn {
  padding: 1.125rem 2.5rem;
  background: white;
  color: var(--brand-forest);
  font-weight: 700;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.newsletter-btn:hover {
  background: var(--brand-lime);
  color: var(--brand-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(217, 243, 41, 0.3);
}

.newsletter-error {
  color: var(--brand-lime);
  margin-top: 1rem;
  font-weight: 500;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .newsletter-background {
    min-height: 400px;
  }

  .newsletter-content {
    padding: 3rem 1.5rem;
  }

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

  .newsletter-description {
    font-size: 1.125rem;
  }

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

  .newsletter-input {
    min-width: 100%;
  }

  .newsletter-btn {
    width: 100%;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--color-gray-50);
  border-top: 1px solid var(--color-gray-200);
  padding: 4rem 1.5rem 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--color-black);
}

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

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

.footer-section a {
  color: var(--color-gray-600);
  transition: color var(--transition-base);
}

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

.footer-logo {
  height: 3rem;
  width: auto;
  margin-bottom: 1rem;
}

.footer-description {
  color: var(--color-gray-600);
  font-size: 1rem;
  line-height: 1.6;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--color-gray-200);
  text-align: center;
  color: var(--color-gray-600);
  font-size: 0.875rem;
}

.footer-bottom p {
  margin: 0;
  color: var(--color-gray-600);
  font-size: 0.875rem;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 3rem 0;
}

.pagination a,
.pagination span {
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all var(--transition-base);
  border: 1px solid var(--color-gray-200);
  background: var(--color-white);
}

.pagination a:hover {
  background: var(--brand-forest);
  color: var(--color-white);
  border-color: var(--brand-forest);
}

.pagination .current {
  background: var(--brand-forest);
  color: var(--color-white);
  border-color: var(--brand-forest);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
  :root {
    --section-padding: 3rem;
  }

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

  .post-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

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

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .site-hero {
    min-height: 50vh;
    padding: 6rem 1rem 3rem;
  }
}

/* ==========================================================================
   Newsletter Subscription Form
   ========================================================================== */

.newsletter-section .section-label {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.subscribe-form-inline {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.subscribe-form-inline .subscribe-email {
  flex: 1;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 0.5rem;
  background: white;
  color: var(--color-black);
  font-family: var(--font-sans);
}

.subscribe-form-inline .subscribe-email::placeholder {
  color: var(--color-gray-600);
}

.subscribe-form-inline .subscribe-button {
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid white;
  border-radius: 0.5rem;
  background: transparent;
  color: white;
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: var(--font-sans);
  white-space: nowrap;
}

.subscribe-form-inline .subscribe-button:hover {
  background: white;
  color: var(--brand-forest);
}

@media (max-width: 640px) {
  .subscribe-form-inline {
    flex-direction: column;
    width: 100%;
  }
  
  .subscribe-form-inline .subscribe-email,
  .subscribe-form-inline .subscribe-button {
    width: 100%;
  }
}
