/* ===== SPOTDEV BLOG LISTING (Argo) ===== */
.sd-blog-listing-root * {
  box-sizing: border-box;
}

/* Hero */
.sd-blog-hero {
  background: linear-gradient(180deg, #000117 0%, #01318b 100%);
  position: relative;
  overflow: hidden;
  padding: 180px 0 100px;
}

.sd-blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 163, 219, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 163, 219, 0.3) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.1;
}

.sd-hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 10;
}

.sd-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 968px) {
  .sd-hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.sd-hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: #ffffff !important;
  line-height: 1.1;
  margin: 0 0 1.5rem;
}

.sd-hero-title .sd-gradient {
  background: linear-gradient(135deg, #f47f01 0%, #f04200 50%, #7ca3db 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sd-hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85) !important;
  line-height: 1.6;
  margin: 0 0 2.5rem;
  max-width: 500px;
}

.sd-newsletter-form {
  display: flex;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  overflow: hidden;
}

.sd-newsletter-form input[type='email'] {
  flex: 1;
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1rem;
}

.sd-newsletter-form input[type='email']::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.sd-newsletter-form input[type='email']:focus {
  outline: none;
}

.sd-newsletter-form button {
  padding: 1rem 2rem;
  background: #f47f01;
  border: none;
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}

.sd-newsletter-form button:hover {
  background: #e56f00;
}

.sd-hero-visual {
  position: relative;
}

.sd-preview-window {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.sd-window-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sd-window-dots {
  display: flex;
  gap: 0.5rem;
}

.sd-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  opacity: 0.6;
}

.sd-dot-red {
  background: #ef4444;
}

.sd-dot-yellow {
  background: #eab308;
}

.sd-dot-green {
  background: #22c55e;
}

.sd-window-title {
  flex: 1;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  font-family: monospace;
}

.sd-preview-content {
  padding: 2rem;
  height: 360px;
  overflow: hidden;
}

.sd-preview-post {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.sd-preview-tag {
  display: inline-block;
  background: rgba(244, 127, 1, 0.2);
  color: #f47f01;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.sd-preview-ptitle {
  font-size: 1.125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 0.5rem;
}

.sd-preview-pexcerpt {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* Listing */
.sd-blog-listing {
  background: #ffffff;
  padding: 80px 0;
}

.sd-listing-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.sd-section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.sd-section-label {
  display: inline-block;
  background: rgba(244, 127, 1, 0.1);
  color: #f47f01 !important;
  padding: 0.5rem 1.5rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.sd-section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #000117 !important;
  margin: 0 0 1rem;
}

.sd-section-description {
  font-size: 1.125rem;
  color: #64748b !important;
  max-width: 600px;
  margin: 0 auto;
}

.sd-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (max-width: 640px) {
  .sd-blog-grid {
    grid-template-columns: 1fr;
  }
}

.sd-blog-card {
  background: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.sd-blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.sd-card-image {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: #f5f5f5;
  aspect-ratio: 3 / 2;
}

.sd-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.sd-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #f47f01;
  color: #ffffff !important;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.sd-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: #64748b !important;
  margin-bottom: 1rem;
}

.sd-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000117 !important;
  margin: 0 0 2rem;
  line-height: 1.3;
  flex: 1;
}

.sd-card-title a {
  color: #000117 !important;
  text-decoration: none;
}

.sd-card-title a:hover {
  color: #f47f01 !important;
}

.sd-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sd-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #f47f01 !important;
  font-weight: 600;
  text-decoration: none;
}

.sd-read-more:hover {
  gap: 0.75rem;
}

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

.sd-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: #f47f01;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.875rem;
}

.sd-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sd-author-name {
  font-size: 0.875rem;
  color: #64748b !important;
}

/* Pagination */
.sd-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.sd-pagination a,
.sd-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 1rem;
  border-radius: 100px;
  font-weight: 500;
  text-decoration: none;
  color: #64748b !important;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.sd-pagination a:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.sd-pagination .sd-active {
  background: #f47f01;
  color: #ffffff !important;
  border-color: #f47f01;
  pointer-events: none;
}

.sd-pagination .sd-prev,
.sd-pagination .sd-next {
  background: #000117;
  color: #ffffff !important;
  border-color: #000117;
  padding: 0 1.5rem;
  font-weight: 600;
}

.sd-pagination .sd-ellipsis {
  background: transparent;
  border: none;
  color: #94a3b8 !important;
}

@media (max-width: 768px) {
  .sd-hero-title {
    font-size: 2.5rem;
  }

  .sd-blog-hero {
    padding: 140px 0 60px;
  }

  .sd-listing-container {
    padding: 0 1rem;
  }
}
