/*
 * Capcom Creators V2 — Dashboard stylesheet (LIGHT theme)
 *
 * Scoped via `html.capcom-v2-dashboard` so it does NOT affect the existing
 * `html.capcom-v2` application/landing page (public/styles/capcom-v2.css).
 *
 * Designed to match the main Capcom Creators landing page aesthetic:
 * light gray background, white cards, Capcom blue + yellow accents.
 */

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

@font-face {
  font-family: 'Nunito';
  src: url('/fonts/nunito/Nunito-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('/fonts/nunito/Nunito-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('/fonts/nunito/Nunito-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('/fonts/nunito/Nunito-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('/fonts/nunito/Nunito-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

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

html.capcom-v2-dashboard:root {
  /* Brand */
  --capcom-blue:    12 77 162;    /* #0C4DA2 */
  --capcom-yellow:  255 203 8;    /* #FFCB08 */
  --capcom-navy:    0 64 154;     /* #00409A — hover/dark variant */

  /* Light theme surfaces */
  --cap-bg:         240 242 245;  /* #F0F2F5 — page bg (matches landing page) */
  --cap-surface:    255 255 255;  /* #FFFFFF — cards */
  --cap-surface-alt: 247 248 250; /* #F7F8FA — subtle alt bg */

  /* Text — dark on light */
  --cap-text:       34 34 34;     /* #222222 */
  --cap-text-muted: 100 110 125;  /* #646E7D */
  --cap-text-faint: 160 170 185;  /* #A0AAB9 */

  /* Borders */
  --cap-border:     rgba(0, 0, 0, 0.08);
  --cap-border-hover: rgba(12, 77, 162, 0.3);

  /* States */
  --cap-error:      220 53 69;    /* #DC3545 */
  --cap-success:    40 167 69;    /* #28A745 */

  /* Typography */
  --cap-font: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Motion */
  --cap-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --cap-transition: 0.2s var(--cap-ease);

  /* Radius */
  --cap-radius: 8px;
  --cap-radius-sm: 4px;
  --cap-radius-lg: 12px;

  /* Shadows */
  --cap-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --cap-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --cap-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
}

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

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

/* Dashboard page wrapper — shared across all pages */
html.capcom-v2-dashboard .cap-dashboard-wrapper {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: url('/images/capcom/db-bg.png') repeat fixed, rgb(var(--cap-bg));
  background-size: 350px auto, auto;
}

html.capcom-v2-dashboard h1,
html.capcom-v2-dashboard h2,
html.capcom-v2-dashboard h3,
html.capcom-v2-dashboard h4,
html.capcom-v2-dashboard h5,
html.capcom-v2-dashboard h6 {
  font-family: var(--cap-font);
  font-weight: 800;
  color: rgb(var(--cap-text));
  margin: 0;
  line-height: 1.2;
}

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

html.capcom-v2-dashboard body a[href]:hover {
  color: rgb(var(--capcom-blue));
}

html.capcom-v2-dashboard ::selection {
  background: rgb(var(--capcom-blue));
  color: rgb(var(--capcom-yellow));
}

/* Sharp reset on inputs */
html.capcom-v2-dashboard button,
html.capcom-v2-dashboard input,
html.capcom-v2-dashboard select,
html.capcom-v2-dashboard textarea {
  border-radius: var(--cap-radius-sm);
  font-family: inherit;
}

/* Form fields */
html.capcom-v2-dashboard input[type="text"],
html.capcom-v2-dashboard input[type="email"],
html.capcom-v2-dashboard input[type="search"],
html.capcom-v2-dashboard textarea,
html.capcom-v2-dashboard select {
  background-color: rgb(var(--cap-surface));
  color: rgb(var(--cap-text));
  border: 1px solid var(--cap-border);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border-radius: var(--cap-radius-sm);
  transition: border-color var(--cap-transition);
}

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

html.capcom-v2-dashboard input::placeholder,
html.capcom-v2-dashboard textarea::placeholder {
  color: rgb(var(--cap-text-faint));
}

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

html.capcom-v2-dashboard .cap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--cap-font);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--cap-radius);
  cursor: pointer;
  transition: var(--cap-transition);
}

html.capcom-v2-dashboard .cap-btn:disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* Primary — Capcom blue */
html.capcom-v2-dashboard .cap-btn-primary {
  background-color: rgb(var(--capcom-blue));
  border-color: rgb(var(--capcom-blue));
  color: rgb(var(--capcom-yellow));
}
html.capcom-v2-dashboard .cap-btn-primary:hover {
  background-color: rgb(var(--capcom-navy));
  border-color: rgb(var(--capcom-navy));
}

/* Secondary — Capcom yellow */
html.capcom-v2-dashboard .cap-btn-secondary {
  background-color: rgb(var(--capcom-yellow));
  border-color: rgb(var(--capcom-yellow));
  color: rgb(var(--capcom-blue));
}
html.capcom-v2-dashboard .cap-btn-secondary:hover {
  background-color: rgb(var(--capcom-blue));
  border-color: rgb(var(--capcom-blue));
  color: rgb(var(--capcom-yellow));
}

/* Outline */
html.capcom-v2-dashboard .cap-btn-outline {
  background-color: transparent;
  border-color: var(--cap-border);
  color: rgb(var(--cap-text));
}
html.capcom-v2-dashboard .cap-btn-outline:hover {
  background-color: rgb(var(--capcom-blue));
  border-color: rgb(var(--capcom-blue));
  color: rgb(var(--capcom-yellow));
}
