/**
 * DramaKey global stylesheet.
 * Core design system: tokens, reset, layout, typography, utilities.
 */

:root {
  --bg-color: #0d1014;
  --bg-secondary: #141a21;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.075);
  --surface-solid: #171d24;
  --border-color: rgba(255, 255, 255, 0.11);

  --text-main: #f7f3ee;
  --text-muted: #a8a5a1;
  --text-faint: #77716d;

  --accent-color: #f0526f;
  --accent-secondary: #1fb79f;
  --accent-warm: #f4b740;
  --accent-glow: rgba(240, 82, 111, 0.26);

  --success-color: #2fd27f;
  --error-color: #ff5d75;
  --warning-color: #f4b740;

  --border-radius: 8px;
  --border-radius-sm: 6px;
  --border-radius-xs: 4px;
  --box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --card-shadow: 0 12px 34px rgba(0, 0, 0, 0.26);
  --transition: 0.18s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-color);
  background-image:
    linear-gradient(135deg, rgba(240, 82, 111, 0.08), transparent 34%),
    linear-gradient(215deg, rgba(31, 183, 159, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 240px);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color var(--transition), border-color var(--transition), background-color var(--transition), transform var(--transition);
}

a:hover {
  color: var(--text-main);
}

img, video {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0;
}

input, textarea, select {
  color: var(--text-main);
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1260px;
  margin-inline: auto;
  padding-inline: 20px;
}

main.container,
.site-main {
  min-height: calc(100vh - 220px);
  padding-top: 24px;
  padding-bottom: 76px;
}

.grid-auto-fit {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 18px;
}

.content-grid {
  margin-bottom: 40px;
}

@media (min-width: 1200px) {
  .grid-auto-fit {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 560px) {
  .container {
    padding-inline: 14px;
  }

  .grid-auto-fit {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 24px;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 48px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
}

.section-subtitle {
  max-width: 720px;
  color: var(--text-muted);
  font-size: 1.04rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.section-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-muted);
  font-weight: 700;
}

.section-link:hover {
  border-color: rgba(240, 82, 111, 0.45);
  color: var(--text-main);
}

.eyebrow {
  margin-bottom: 9px;
  color: var(--accent-warm);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 11px 18px;
  border-radius: var(--border-radius);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  border: 1px solid transparent;
  color: #111316;
  background: linear-gradient(135deg, var(--accent-warm), var(--accent-color));
  box-shadow: 0 12px 28px var(--accent-glow);
}

.btn-primary:hover {
  color: #111316;
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.btn-secondary {
  border: 1px solid var(--border-color);
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.055);
}

.btn-secondary:hover {
  border-color: rgba(31, 183, 159, 0.55);
  background: rgba(31, 183, 159, 0.1);
  color: var(--text-main);
  transform: translateY(-1px);
}

.compact-btn {
  min-height: 38px;
  padding: 9px 13px;
  font-size: 0.9rem;
}

.card,
.content-card {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--surface);
  box-shadow: var(--card-shadow);
}

.content-card {
  padding: 34px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.form-group label {
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.form-input,
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  outline: none;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-main);
  font-size: 0.97rem;
  transition: border-color var(--transition), background-color var(--transition), box-shadow var(--transition);
}

.form-input:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
  border-color: var(--accent-secondary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(31, 183, 159, 0.14);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-faint);
}

textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.site-footer {
  margin-top: 54px;
  padding: 54px 0 28px;
  border-top: 1px solid var(--border-color);
  background: rgba(9, 12, 15, 0.72);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-brand p {
  max-width: 360px;
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-links h4 {
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent-warm);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 22px;
  color: var(--text-faint);
  font-size: 0.85rem;
  text-align: center;
}

.footer-disclaimer {
  margin-top: 10px;
  font-size: 0.75rem;
  opacity: 0.72;
}

.page-shell {
  padding: 34px 0 10px;
}

.narrow-page {
  max-width: 820px;
  margin-inline: auto;
}

.page-header {
  margin-bottom: 34px;
}

.page-header.compact {
  margin-bottom: 28px;
}

.page-header h1 {
  margin-bottom: 12px;
  font-size: 2.7rem;
  font-weight: 800;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover,
.breadcrumb span:last-child {
  color: var(--accent-warm);
}

.breadcrumb-sep {
  color: var(--text-faint);
}

.text-accent { color: var(--accent-color); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.hidden { display: none !important; }

.animate-fade-in {
  animation: fadeIn 0.4s ease both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.ms-2 { margin-left: 0.5rem; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.w-full { width: 100%; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--border-radius-xs);
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-accent {
  border: 1px solid rgba(240, 82, 111, 0.32);
  background: rgba(240, 82, 111, 0.13);
  color: var(--accent-color);
}

.badge-success {
  border: 1px solid rgba(47, 210, 127, 0.32);
  background: rgba(47, 210, 127, 0.13);
  color: var(--success-color);
}

.badge-warning {
  border: 1px solid rgba(244, 183, 64, 0.32);
  background: rgba(244, 183, 64, 0.13);
  color: var(--warning-color);
}

.no-results,
.empty-state {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--surface);
  padding: 48px 22px;
  color: var(--text-muted);
  text-align: center;
}

.no-results a {
  color: var(--accent-warm);
  font-weight: 700;
}

.empty-state h2 {
  margin-bottom: 8px;
  font-size: 1.45rem;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(240, 82, 111, 0.45);
}

::selection {
  background-color: rgba(244, 183, 64, 0.32);
  color: #fff;
}

@media (max-width: 780px) {
  main.container,
  .site-main {
    padding-top: 16px;
    padding-bottom: 54px;
  }

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

  .section-title {
    font-size: 1.55rem;
  }

  .page-header h1 {
    font-size: 2.1rem;
  }

  .content-card {
    padding: 22px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand p {
    max-width: none;
  }
}
