﻿:root {
  color-scheme: dark;
  --ink: #ffffff;
  --muted: #f7d9ff;
  --paper: #050005;
  --panel: rgba(10, 4, 16, 0.94);
  --panel-hot: rgba(255, 0, 184, 0.2);
  --line: #050005;
  --accent: #ff00b8;
  --accent-strong: #14b8d8;
  --mint: #37ffb0;
  --warn: #ffcc00;
  --shadow: 8px 8px 0 #14b8d8;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background-color: #000;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.72)),
    url('../RetroGamerTeefs.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000;
}

button,
input,
select,
textarea {
  font: inherit;
}

.app-shell {
  width: min(1480px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 0;
}

.toolbar,
.settings-strip,
.editor-panel,
.output-panel {
  background: var(--panel);
  border: 3px solid #000;
  box-shadow: var(--shadow);
}

.toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(255, 0, 184, 0.38), rgba(20, 184, 216, 0.22)),
    var(--panel);
}

.site-kicker {
  margin: 0 0 10px;
}

.site-kicker a {
  display: inline-block;
  padding: 8px 11px;
  background: #14b8d8;
  color: #fff;
  border: 3px solid #000;
  box-shadow: 4px 4px 0 #ff00b8;
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.site-kicker a:hover {
  background: #ff00b8;
  box-shadow: 4px 4px 0 #14b8d8;
}

.eyebrow {
  margin: 0 0 8px;
  color: #37ffb0;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 0;
  color: #37ffb0;
  font-size: 1rem;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 12px;
  color: #14b8d8;
  font-size: 0.86rem;
  text-transform: uppercase;
}

.toolbar-actions,
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.settings-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
  padding: 18px 24px 22px;
  background:
    linear-gradient(90deg, rgba(20, 184, 216, 0.16), rgba(255, 0, 184, 0.2)),
    var(--panel);
}

label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

label > span,
.save-status {
  color: var(--muted);
  font-size: 0.79rem;
  font-weight: 900;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 3px solid #000;
  border-radius: 0;
  background: #09020d;
  color: #ffffff;
  outline: none;
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000;
}

input,
select {
  height: 44px;
  padding: 0 11px;
}

textarea {
  resize: vertical;
  padding: 12px;
  line-height: 1.45;
}

input::placeholder,
textarea::placeholder {
  color: #f7d9ff;
  opacity: 0.75;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #ff00b8;
  box-shadow: 0 0 0 4px #14b8d8;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 3px solid #000;
  border-radius: 0;
  padding: 0 14px;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: inherit;
}

.button.primary {
  background: #ff00b8;
  box-shadow: 5px 5px 0 #14b8d8;
}

.button.primary:hover {
  background: #14b8d8;
  box-shadow: 5px 5px 0 #ff00b8;
}

.button.secondary {
  background: #050005;
  box-shadow: 5px 5px 0 #ff00b8;
}

.button.secondary:hover {
  background: #ff00b8;
  box-shadow: 5px 5px 0 #14b8d8;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(360px, 0.85fr);
  gap: 20px;
  margin-top: 20px;
  align-items: start;
}

.editor-panel,
.output-panel {
  border-radius: 0;
  padding: 18px;
}

.day-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.day-row {
  display: grid;
  gap: 14px;
  border: 3px solid #000;
  border-radius: 0;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255, 0, 184, 0.2), rgba(20, 184, 216, 0.14)),
    rgba(0, 0, 0, 0.82);
  box-shadow: 5px 5px 0 rgba(255, 0, 184, 0.75);
}

.day-row:nth-child(even) {
  box-shadow: 5px 5px 0 rgba(20, 184, 216, 0.8);
}

.day-row header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.weekday {
  margin-bottom: 2px;
  color: #fff;
  font-size: 1.06rem;
  font-weight: 900;
  text-transform: uppercase;
}

.date-label {
  margin-bottom: 0;
  color: #37ffb0;
  font-size: 0.86rem;
  font-weight: 800;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  color: #fff;
  font-weight: 900;
}

.toggle input {
  width: 18px;
  height: 18px;
  accent-color: #ff00b8;
}

.row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

#output {
  min-height: 374px;
  margin-top: 16px;
  font-family: "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
  white-space: pre;
}

.preview-wrap {
  margin-top: 16px;
  border-top: 3px solid #000;
  padding-top: 16px;
}

.preview {
  display: grid;
  gap: 12px;
}

.preview-item {
  border-left: 8px solid #ff00b8;
  padding: 5px 0 5px 12px;
  background: rgba(0, 0, 0, 0.45);
}

.preview-item.no-stream {
  border-color: var(--warn);
}

.preview-time {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 5px;
  color: #14b8d8;
  font-size: 0.82rem;
  font-weight: 900;
}

.preview-title {
  margin: 0;
  color: #fff;
  white-space: pre-wrap;
}

.copied {
  background: #37ffb0 !important;
  color: #000 !important;
  text-shadow: none;
}

@media (max-width: 940px) {
  .toolbar,
  .settings-strip,
  .workspace {
    grid-template-columns: 1fr;
  }

  .toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .workspace {
    gap: 16px;
  }
}

@media (max-width: 560px) {
  .app-shell {
    width: min(100% - 20px, 1480px);
    padding: 10px 0;
  }

  .toolbar,
  .settings-strip,
  .editor-panel,
  .output-panel {
    padding: 14px;
  }

  .toolbar-actions,
  .panel-heading,
  .day-row header {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .row-grid {
    grid-template-columns: 1fr;
  }
}