/*
 * Deep Silver Creator Collective — Dashboard stylesheet
 *
 * Scoped via `html.dscc-dashboard` so it does NOT affect the existing
 * `html.dscc` application form (public/styles/dscc.css).
 *
 * Sourced from a Playwright scan of deepsilver.com/gb/creators (April 2026).
 * See docs/design_reference/dscc.md for the full design reference.
 */

/* ---------- Fonts ---------- */

/* Oswald: static TTFs from /public/fonts/deepsilver/ (weights 400, 500, 700) */
@font-face {
  font-family: 'Oswald';
  src: url('/fonts/deepsilver/oswald-regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Oswald';
  src: url('/fonts/deepsilver/oswald-medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Oswald';
  src: url('/fonts/deepsilver/oswald-bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Archivo: variable font WOFF2 (all weights in one file) */
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/Archivo/Archivo-VariableFont_wdth,wght.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/Archivo/Archivo-Italic-VariableFont_wdth,wght.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Theme variables ---------- */

html.dscc-dashboard:root {
  /* Backgrounds & surfaces */
  --dscc-bg:            0 0 0;        /* #000 — page bg */
  --dscc-surface:       26 26 26;     /* #1A1A1A — cards, action surfaces */
  --dscc-surface-alt:   51 51 51;     /* #333333 — form fields */

  /* Text */
  --dscc-text:          219 223 235;  /* #DBDFEB — DS Pale Lavender, primary text */
  --dscc-text-muted:    153 153 153;  /* #999 */
  --dscc-text-faint:    102 102 102;  /* #666 */

  /* Brand accents */
  --dscc-red:           255 32 49;    /* #FF2031 — primary CTA */
  --dscc-red-hover:     232 10 47;    /* #E80A2F */
  --dscc-yellow:        209 255 0;    /* #D1FF00 — DSCC neon yellow accent */
  --dscc-yg-1:          176 222 11;   /* #B0DE0B — slash gradient */
  --dscc-yg-2:          122 169 29;   /* #7AA91D */

  /* States */
  --dscc-error:         244 67 54;    /* #F44336 */
  --dscc-disabled:      204 204 204;  /* #CCC */

  /* Typography */
  --dscc-font-headline: 'Oswald', Helvetica, Arial, sans-serif;
  --dscc-font-body:     'Archivo', Helvetica, Arial, sans-serif;

  /* Motion */
  --dscc-ease:          cubic-bezier(0, 0, .18, 1);
  --dscc-transition:    .3s var(--dscc-ease);
  --dscc-hover-scale:   1.05;

  /* Diagonal slash hover gradient (the DSCC signature accent) */
  --dscc-slash-gradient:
    linear-gradient(29deg,
      transparent 0%,
      transparent 70%,
      rgb(var(--dscc-yg-1)) 80%,
      rgb(var(--dscc-yg-2)) 100%);
}

/* ---------- Base ---------- */

html.dscc-dashboard,
html.dscc-dashboard body {
  background-color: rgb(var(--dscc-bg));
  color: rgb(var(--dscc-text));
  font-family: var(--dscc-font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.dscc-dashboard h1,
html.dscc-dashboard h2,
html.dscc-dashboard h3,
html.dscc-dashboard h4,
html.dscc-dashboard h5,
html.dscc-dashboard h6 {
  font-family: var(--dscc-font-headline);
  font-weight: 700;
  text-transform: uppercase;
  color: rgb(var(--dscc-text));
  margin: 0;
  line-height: 1.1;
}

html.dscc-dashboard body a[href],
html.dscc-dashboard body a[href]:hover,
html.dscc-dashboard body a[href]:focus,
html.dscc-dashboard body a[href]:active,
html.dscc-dashboard body a[href]:visited {
  color: inherit;
  text-decoration: none;
  transition: color var(--dscc-transition);
}

html.dscc-dashboard body a[href]:hover {
  color: rgb(var(--dscc-red));
}

html.dscc-dashboard ::selection {
  background: rgb(var(--dscc-red));
  color: rgb(var(--dscc-text));
}

/* Sharp corners on all interactive surfaces (matches the live site) */
html.dscc-dashboard button,
html.dscc-dashboard input,
html.dscc-dashboard select,
html.dscc-dashboard textarea {
  border-radius: 0;
  font-family: inherit;
}

/* Form fields — match the live site (#333 bg, #666 border, lavender focus) */
html.dscc-dashboard input[type="text"],
html.dscc-dashboard input[type="email"],
html.dscc-dashboard input[type="search"],
html.dscc-dashboard textarea,
html.dscc-dashboard select {
  background-color: rgb(var(--dscc-surface-alt));
  color: rgb(var(--dscc-text));
  border: 1px solid rgb(var(--dscc-text-faint));
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: border-color var(--dscc-transition);
}

html.dscc-dashboard input:focus,
html.dscc-dashboard textarea:focus,
html.dscc-dashboard select:focus {
  outline: none;
  border-color: rgb(var(--dscc-text));
}

html.dscc-dashboard input::placeholder,
html.dscc-dashboard textarea::placeholder {
  color: rgb(var(--dscc-text-muted));
}

/* ---------- Button system ---------- */

html.dscc-dashboard .dscc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  font-family: var(--dscc-font-headline);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.4rem;
  text-decoration: none;
  border: 0.125rem solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: var(--dscc-transition);
}

html.dscc-dashboard .dscc-btn:hover {
  scale: var(--dscc-hover-scale);
}

html.dscc-dashboard .dscc-btn:disabled,
html.dscc-dashboard .dscc-btn[disabled] {
  opacity: 0.4;
  pointer-events: none;
}

/* Primary button — solid red */
html.dscc-dashboard .dscc-btn-primary {
  background-color: rgb(var(--dscc-red));
  border-color: rgb(var(--dscc-red));
  color: rgb(var(--dscc-text));
}
html.dscc-dashboard .dscc-btn-primary:hover {
  background-color: rgb(var(--dscc-red-hover));
  color: #1a1a1a;
}

/* Secondary button — outlined red, optional right arrow */
html.dscc-dashboard .dscc-btn-secondary {
  background-color: transparent;
  border-color: rgb(var(--dscc-red));
  color: rgb(var(--dscc-text));
}
html.dscc-dashboard .dscc-btn-secondary:hover {
  background-color: rgb(var(--dscc-red));
  color: #000;
}

/* Tertiary button — outlined black with the DSCC yellow-green slash gradient on hover */
html.dscc-dashboard .dscc-btn-tertiary {
  position: relative;
  background-color: transparent;
  border-color: #000;
  color: rgb(var(--dscc-text));
  overflow: hidden;
}
html.dscc-dashboard .dscc-btn-tertiary::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--dscc-slash-gradient);
  opacity: 0;
  transition: opacity var(--dscc-transition);
  pointer-events: none;
}
html.dscc-dashboard .dscc-btn-tertiary:hover {
  background-color: rgb(var(--dscc-red));
  border-color: rgb(var(--dscc-red));
}
html.dscc-dashboard .dscc-btn-tertiary:hover::after {
  opacity: 1;
}
html.dscc-dashboard .dscc-btn-tertiary > * {
  position: relative;
  z-index: 1;
}
