/* CSS Variables */
:root {
  --bg: #fcfcf9;
  --surface: #ffffd;
  --text: #13343b;
  --text-secondary: #626c71;
  --primary: #21808d;
  --primary-hover: #1d7480;
  --secondary: rgba(94, 82, 64, 0.12);
  --border: rgba(94, 82, 64, 0.2);
  --radius: 8px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1f2121;
    --surface: #262828;
    --text: #f5f5f5;
    --text-secondary: rgba(167, 169, 169, 0.7);
    --primary: #32b8c6;
    --primary-hover: #2da6b2;
    --secondary: rgba(119, 124, 124, 0.15);
    --border: rgba(119, 124, 124, 0.3);
    --warning-bg: rgba(255, 193, 7, 0.15);
    --warning-border: rgba(255, 193, 7, 0.3);
    --warning-text: #ffc107;
    --danger-bg: rgba(220, 53, 69, 0.15);
    --danger-border: rgba(220, 53, 69, 0.3);
    --danger-text: #dc3545;
  }
}

/* Base */
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, sans-serif; color: var(--text); background: var(--bg); }
.container { max-width: 1200px; margin: 0; padding: 16px; }
.hidden { display: none; }

/* Hero */
.hero {
  min-height: 100svh;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 50px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), var(--bg));
  z-index: 3;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://pplx-res.cloudinary.com/image/upload/v1752361592/pplx_project_search_images/def87e06735b1fbe9114b030b6254269453c11d6.jpg') center/cover fixed;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.8), rgba(255, 0, 64, 0.8));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 32px 0;
}

main { z-index: 3; position: relative; }

.hero-title {
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 700;
  margin: 0 0 16px 0;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.5rem);
  margin: 0 0 32px 0;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.series-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 32px 0;
}

.series-logo img {
  max-width: 300px;
  width: 100%;
  height: auto;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

/* Countdown */
.countdown-box {
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius);
  padding: 32px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 600px;
  margin: 0 auto;
}

.countdown-box h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 16px 0;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0 0 16px 0;
}

.time-unit {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.time-value {
  display: block;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  font-family: monospace;
}

.time-label {
  display: block;
  font-size: 12px;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.countdown-date {
  font-size: 16px;
  opacity: 0.9;
  margin: 0;
}

/* Sections */
.break-system, .checklist, .confirmation, .pre-production, .production-schedule {
  padding: 64px 0;
}

.checklist, .production-schedule {
  background: var(--surface);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin: 0 0 16px 0;
  background: linear-gradient(135deg, #0066ff, #ff0040);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 16px;
  text-align: center;
  color: var(--text-secondary);
  margin: 0 auto 32px auto;
  max-width: 600px;
}

/* Pre-Production Section */
.production-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.production-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.production-card:hover {
  transform: translateY(-4px);
}

.production-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: var(--text);
}

.production-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.production-card li {
  padding: 8px 0;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  position: relative;
  padding-left: 20px;
}

.production-card li:last-child {
  border-bottom: none;
}

.production-card li::before {
  content: '•';
  color: var(--primary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.upload-info {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.upload-info h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: var(--text);
}

.upload-info p {
  color: var(--text-secondary);
  margin: 0 0 16px 0;
  line-height: 1.6;
}

.important-note {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  color: var(--warning-text);
  padding: 16px;
  border-radius: var(--radius);
  margin-top: 16px;
}

/* Production Schedule Section */
.schedule-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.daily-schedule h3,
.weekly-schedule h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 20px 0;
  color: var(--text);
}

.time-blocks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.time-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.time-block .time {
  font-weight: 600;
  color: var(--primary);
  font-size: 14px;
  min-width: 140px;
}

.time-block .activity {
  color: var(--text-secondary);
  font-size: 14px;
  text-align: right;
}

.week-days {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.day-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
  transition: transform 0.2s ease;
}

.day-card:hover {
  transform: translateY(-2px);
}

.day-card.off-day {
  border-left-color: var(--text-secondary);
  opacity: 0.7;
}

.day-card.battle-day {
  border-left-color: var(--danger-text);
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
}

.day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.day-header h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

.time-range {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  background: var(--secondary);
  padding: 4px 8px;
  border-radius: 4px;
}

.day-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.day-card.battle-day p {
  color: var(--danger-text);
  font-weight: 500;
}

.schedule-note {
  text-align: center;
  margin-top: 32px;
}

.schedule-note p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 14px;
}

/* BREAK Cards */
.break-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.break-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
  position: relative;
}

.break-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0066ff, #ff0040);
  border-radius: var(--radius) var(--radius) 0 0;
}

.break-card:hover {
  transform: translateY(-4px);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.card-header h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.card-letter {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  font-family: monospace;
}

.break-card p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* Checklist */
.checklist-items {
  max-width: 800px;
  margin: 0 auto;
}

.checklist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  margin-bottom: 16px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  gap: 16px;
  transition: box-shadow 0.2s ease;
}

.checklist-item:hover {
  box-shadow: var(--shadow);
}

.check-content {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 16px;
}

.check-box {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.check-info {
  flex: 1;
}

.check-info label {
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: block;
  margin-bottom: 4px;
}

.check-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
}

.check-box:checked + .check-info label {
  color: var(--primary);
  text-decoration: line-through;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

/* Status */
.status-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
}

.status {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 99px;
  font-weight: 500;
  font-size: 12px;
}

.status-info {
  background: rgba(98, 108, 113, 0.15);
  color: var(--text-secondary);
  border: 1px solid rgba(98, 108, 113, 0.25);
}

/* Footer */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
}

.footer-logo {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-secondary);
  margin: 0 0 8px 0;
  opacity: 0.6;
}

footer p {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 1200px) {
  .break-cards {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  .break-cards {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
  
  .checklist-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
  }
  
  .btn {
    width: 100%;
  }
  
  .status-indicator {
    width: 100%;
    justify-content: flex-start;
  }
  
  .schedule-overview {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .week-days {
    grid-template-columns: 1fr;
  }
  
  .time-block {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  
  .time-block .time {
    min-width: auto;
  }
  
  .time-block .activity {
    text-align: left;
  }
  
  .production-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .break-cards {
    grid-template-columns: 1fr;
  }
  
  .countdown {
    grid-template-columns: 1fr;
  }
  
  .time-unit {
    padding: 12px;
  }
  
  .countdown-box {
    padding: 24px;
  }
}