/* Weekly Digest Styles */

.digest-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.digest-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--gray-200);
}

.digest-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--ocean-700);
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.digest-subtitle {
  font-size: 1.2rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.digest-archive h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--ocean-700);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
}

.digest-archive h2::before {
  content: '';
  width: 4px;
  height: 28px;
  background-color: var(--ocean-500);
  border-radius: 2px;
  margin-right: 0.75rem;
}

.digest-item {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--ocean-100);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.digest-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, var(--ocean-500), var(--ocean-600));
}

.digest-item:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-color: var(--ocean-200);
}

.digest-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.digest-meta time {
  color: var(--gray-500);
  font-weight: 500;
  font-size: 0.9rem;
}

.digest-badge {
  background: linear-gradient(135deg, var(--ocean-500), var(--ocean-600));
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.digest-item h3 {
  margin-bottom: 1rem;
}

.digest-item h3 a {
  color: var(--ocean-700);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.digest-item h3 a:hover {
  color: var(--ocean-600);
}

.digest-excerpt {
  color: var(--gray-700);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.digest-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.highlight-tag {
  background-color: var(--ocean-50);
  color: var(--ocean-700);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--ocean-200);
}

.digest-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ocean-600);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.digest-link:hover {
  color: var(--ocean-500);
  gap: 0.75rem;
}

.digest-link i {
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.digest-link:hover i {
  transform: translateX(2px);
}

.digest-cta {
  background: linear-gradient(135deg, var(--ocean-50), var(--ocean-100));
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
  margin-top: 3rem;
  border: 2px solid var(--ocean-200);
}

.digest-cta h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ocean-700);
  margin-bottom: 0.75rem;
}

.digest-cta p {
  color: var(--gray-600);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--ocean-500), var(--ocean-600));
  color: white;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.cta-button:hover {
  background: linear-gradient(135deg, var(--ocean-600), var(--ocean-700));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Individual digest post styles */
.digest-post {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.digest-post-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--gray-200);
}

.digest-post-header h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--ocean-700);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.digest-post-date {
  color: var(--gray-500);
  font-style: italic;
  font-size: 1rem;
}

.digest-post-content {
  background: white;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--ocean-100);
  line-height: 1.7;
}

.digest-post-content h2 {
  color: var(--ocean-700);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 1rem 0;
  display: flex;
  align-items: center;
}

.digest-post-content h2::before {
  content: '';
  width: 3px;
  height: 20px;
  background-color: var(--ocean-500);
  border-radius: 2px;
  margin-right: 0.75rem;
}

.digest-post-content ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.digest-post-content ul li {
  margin: 1rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--gray-700);
  line-height: 1.6;
}

.digest-post-content ul li::before {
  content: '•';
  color: var(--ocean-500);
  font-weight: bold;
  position: absolute;
  left: 0;
  font-size: 1.2rem;
}

.digest-post-content p {
  margin: 1rem 0;
  color: var(--gray-700);
}

.digest-post-content strong {
  color: var(--ocean-700);
  font-weight: 600;
}

.digest-navigation {
  margin-top: 3rem;
  text-align: center;
}

.back-to-digest {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ocean-600);
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--ocean-200);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.back-to-digest:hover {
  background-color: var(--ocean-50);
  border-color: var(--ocean-300);
  color: var(--ocean-700);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .digest-header h1 {
    font-size: 2rem;
  }
  
  .digest-subtitle {
    font-size: 1.1rem;
  }
  
  .digest-item {
    padding: 1.5rem;
  }
  
  .digest-cta {
    padding: 2rem 1.5rem;
  }
  
  .digest-post-header h1 {
    font-size: 1.75rem;
  }
  
  .digest-post-content {
    padding: 1.5rem;
  }
  
  .highlight-tag {
    font-size: 0.75rem;
  }
}