.series-binge-planner {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  line-height: 1.6;
  color: #333;
  background: #fafafa;
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
header {
  background: #fff;
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: #1f2937;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.nav-links a {
  color: #6b7280;
  font-size: 0.9rem;
}

.nav-links a:hover {
  color: #2563eb;
}

/* Hero Section */
.hero {
  padding: 2rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.hero p {
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.preset-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 400px;
  margin: 0 auto;
}

.preset-btn {
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.preset-btn:hover {
  background: #f9fafb;
  border-color: #2563eb;
}

/* Form Styles */
.series-form {
  background: #fff;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: #374151;
}

.form-group input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  font-size: 1rem;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

.add-btn {
  width: 100%;
  padding: 0.75rem;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 0.375rem;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
}

.add-btn:hover {
  background: #1d4ed8;
}

/* Timeline Section */
.timeline-section {
  margin-bottom: 2rem;
}

.timeline-container {
  background: #fff;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.timeline-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #f3f4f6;
  gap: 1rem;
}

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

.book-marker {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.book-marker.completed {
  background: #10b981;
}

.book-marker input {
  margin: 0;
  cursor: pointer;
}

.book-info {
  flex: 1;
}

.book-title {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.book-details {
  font-size: 0.875rem;
  color: #6b7280;
}

.daily-target {
  text-align: center;
  padding: 1rem;
  background: #f0fdf4;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.daily-target strong {
  font-size: 1.25rem;
  color: #16a34a;
}

/* Support Content */
.support-content {
  background: #fff;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}

.support-content h2, .support-content h3 {
  color: #1f2937;
  margin-bottom: 0.75rem;
}

.support-content h3 {
  font-size: 1rem;
  margin-top: 1.5rem;
}

.support-content p {
  margin-bottom: 1rem;
  color: #374151;
}

.support-content ul, .support-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.support-content li {
  margin-bottom: 0.5rem;
}

.support-content dl {
  display: grid;
  gap: 0.75rem;
}

.support-content dt {
  font-weight: 500;
  color: #374151;
}

.support-content dd {
  color: #6b7280;
  margin-left: 0;
  margin-bottom: 0.5rem;
}

.empty-state {
  text-align: center;
  color: #6b7280;
  padding: 2rem;
}

/* Footer */
footer {
  padding: 1.5rem;
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
  border-top: 1px solid #e5e7eb;
}

footer a {
  color: #6b7280;
}

/* Responsive */
@media (min-width: 768px) {
  .form-row {
    flex-direction: row;
  }

  .preset-buttons {
    flex-direction: row;
    justify-content: center;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .timeline-item {
    padding: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .form-row {
    gap: 1.5rem;
  }
  
  .series-form {
    max-width: 600px;
    margin: 0 auto;
  }
}

/* Utility Classes */
.hidden {
  display: none !important;
}

/* Ad placeholder */
.ad-placeholder {
  background: #e5e7eb;
  height: 120px;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 0.875rem;
  margin: 1rem 0;
}

/* Smooth transitions */
* {
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}


/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
