/* Shared CSS for Due Date Radar Blog Pages - Light Theme */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: hsl(0, 0%, 100%);
  color: hsl(280, 20%, 20%);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Container */
.container {
  max-width: 896px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Article */
article {
  flex: 1;
  padding: 48px 16px;
}

/* Back Button */
.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid hsl(280, 15%, 90%);
  border-radius: 8px;
  background: transparent;
  color: hsl(280, 20%, 20%);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
  transition: all 0.2s ease;
}

.back-button:hover {
  background: hsl(280, 20%, 95%);
}

.back-button svg {
  width: 16px;
  height: 16px;
}

/* Header */
header {
  margin-bottom: 48px;
}

.meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.category {
  font-size: 14px;
  font-weight: 600;
  color: hsl(280, 25%, 45%);
}

.separator {
  color: hsl(280, 10%, 50%);
}

.read-time {
  font-size: 14px;
  color: hsl(280, 10%, 50%);
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  color: hsl(280, 20%, 20%);
}

@media (min-width: 768px) {
  h1 {
    font-size: 3rem;
  }
}

.subtitle {
  font-size: 1.25rem;
  color: hsl(280, 10%, 50%);
}

/* Prose Content */
.prose {
  font-size: 1.125rem;
  line-height: 1.8;
}

.prose h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: hsl(280, 20%, 20%);
}

.prose h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: hsl(280, 20%, 20%);
}

.prose p {
  margin-bottom: 16px;
}

.prose strong {
  font-weight: 700;
}

.prose section {
  margin-bottom: 48px;
}

/* Icon in headings */
.icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.icon-destructive {
  color: hsl(0, 72%, 51%);
}

.icon-primary {
  color: hsl(280, 25%, 45%);
}

/* Alert Box */
.alert-box {
  padding: 32px;
  border-radius: 8px;
  background-color: hsl(0, 72%, 51%, 0.1);
  border: 1px solid hsl(0, 72%, 51%, 0.2);
}

/* Info Cards */
.info-card {
  padding: 24px;
  border-radius: 8px;
  background-color: hsl(280, 15%, 96%);
  margin-bottom: 16px;
}

.info-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.info-card p {
  margin-bottom: 0;
}

/* List styles */
.prose ul {
  margin-bottom: 16px;
}

.prose ul.space-y {
  list-style: none;
  padding: 0;
}

.prose ul.space-y li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.prose ul.disc {
  list-style: disc;
  padding-left: 24px;
}

.prose ul.disc li {
  margin-bottom: 8px;
}

.checkmark {
  font-size: 1.5rem;
  color: hsl(280, 25%, 45%);
  flex-shrink: 0;
}

.warning-icon {
  font-size: 1.5rem;
  color: hsl(0, 72%, 51%);
  flex-shrink: 0;
}

/* Gradient Box */
.gradient-box {
  padding: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, hsl(280, 25%, 45%) 0%, hsl(280, 35%, 65%) 100%);
  color: white;
}

.gradient-box h2,
.gradient-box h3 {
  color: white;
}

.gradient-box .icon {
  color: white;
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 48px;
  border-radius: 8px;
  background-color: hsl(0, 0%, 100%);
  border: 2px solid hsl(280, 25%, 45%);
}

.cta-section h2 {
  justify-content: center;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 1.25rem;
  color: hsl(280, 10%, 50%);
  margin-bottom: 32px;
}

.cta-section .note {
  font-size: 0.875rem;
  color: hsl(280, 10%, 50%);
  margin-top: 16px;
}

/* Primary Button */
.btn-primary {
  display: inline-block;
  padding: 16px 32px;
  background: hsl(280, 25%, 45%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.125rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: hsl(280, 25%, 35%);
  transform: translateY(-2px);
}

/* Footer */
footer {
  background-color: hsl(280, 15%, 96%);
  padding: 48px 16px;
  text-align: center;
}

.footer-content {
  max-width: 896px;
  margin: 0 auto;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(280, 25%, 45%);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: hsl(280, 10%, 50%);
  text-decoration: none;
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: hsl(280, 25%, 45%);
}

.footer-copyright {
  font-size: 0.875rem;
  color: hsl(280, 10%, 50%);
}

/* Total Cost Box */
.total-cost-box {
  margin-top: 32px;
  padding: 24px;
  border-radius: 8px;
  background-color: hsl(0, 72%, 51%);
  color: white;
  text-align: center;
}

.total-cost-box p {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

/* Cost item */
.cost-item {
  margin-bottom: 32px;
}

.cost-item h3 {
  margin-bottom: 12px;
}

.cost-amount {
  font-weight: 700;
  color: hsl(280, 25%, 45%);
}

/* Responsive */
@media (max-width: 640px) {
  h1 {
    font-size: 2rem;
  }
  
  .prose h2 {
    font-size: 1.5rem;
  }
  
  .alert-box,
  .gradient-box,
  .cta-section {
    padding: 24px;
  }
}
