/* Starfish AWARDS'26 - Official Brand Theme (per Starfish Brandbook) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Primary brand colors */
  --brand-blue: #005b9f;        /* PMS 3005 C - Primary */
  --brand-blue-dark: #1c3267;   /* Secondary dark blue */
  --brand-blue-light: #0d7bc4;
  --brand-blue-soft: #e6f0f8;

  /* Accent gradient colors */
  --brand-orange: #ff6500;      /* PMS Orange 021 C */
  --brand-yellow: #fdcc11;
  --brand-orange-dark: #e55a00;

  /* Neutral palette */
  --bg-light: #f7f9fc;
  --bg-white: #ffffff;
  --text-dark: #1c3267;
  --text-muted: #5a6b85;
  --border-soft: #d8e2ee;
}

* { box-sizing: border-box; }

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #f7f9fc 0%, #eaf1f9 50%, #dde8f4 100%);
  min-height: 100vh;
  color: var(--text-dark);
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--brand-blue-dark);
  letter-spacing: -0.01em;
}

/* Header with brand-blue gradient (awards logo stays orange/gold) */
.gradient-header {
  background: linear-gradient(135deg, #005b9f 0%, #1c3267 100%);
  position: relative;
  overflow: hidden;
}

.gradient-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(253, 204, 17, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(255, 101, 0, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

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

/* Candidate cards */
.candidate-card {
  transition: all 0.25s ease;
  cursor: pointer;
  border: 2px solid var(--border-soft);
  background: white;
  position: relative;
}

.candidate-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 91, 159, 0.18);
  border-color: var(--brand-blue-light);
}

.candidate-card.selected {
  border-color: var(--brand-blue);
  background: linear-gradient(135deg, #ffffff 0%, #e6f0f8 100%);
  box-shadow: 0 8px 24px rgba(0, 91, 159, 0.25);
}

.candidate-card.selected .check-badge {
  display: flex;
}

.check-badge {
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6500, #fdcc11);
  color: white;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(255, 101, 0, 0.4);
}

/* Progress bar uses brand accent (orange→yellow) */
.category-progress {
  background: linear-gradient(90deg, #ff6500, #fdcc11);
  height: 6px;
  transition: width 0.4s ease;
  border-radius: 3px;
}

.required-badge {
  background: linear-gradient(135deg, #fdcc11, #ff6500);
  color: #ffffff;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.category-badge {
  background: linear-gradient(135deg, #005b9f, #1c3267);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.smooth-scroll { scroll-behavior: smooth; }

.candidate-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  /* Position towards top so faces (usually in upper portion of portraits) stay visible */
  object-position: center 20%;
  border-radius: 10px;
  background: var(--brand-blue-soft);
}

.candidate-image-placeholder {
  width: 100%;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e6f0f8, #c9dcee);
  border-radius: 10px;
  font-size: 52px;
  color: var(--brand-blue);
}

textarea.other-input {
  margin-top: 8px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 2px solid var(--border-soft);
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  resize: vertical;
  background: white;
  color: var(--text-dark);
}

textarea.other-input:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(0, 91, 159, 0.1);
}

/* Primary button uses brand-blue gradient */
.btn-primary {
  background: linear-gradient(135deg, #005b9f 0%, #1c3267 100%);
  color: white;
  padding: 14px 36px;
  border-radius: 12px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(0, 91, 159, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 91, 159, 0.45);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: white;
  color: var(--text-dark);
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  border: 2px solid var(--border-soft);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.btn-danger {
  background: #dc2626;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  border: none;
  cursor: pointer;
}

.btn-danger:hover { background: #b91c1c; }

.btn-success {
  background: linear-gradient(135deg, #ff6500, #fdcc11);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn-success:hover {
  background: linear-gradient(135deg, #e55a00, #f0b800);
}

/* Admin styles */
.admin-tab {
  padding: 12px 20px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
}

.admin-tab:hover { color: var(--brand-blue); }

.admin-tab.active {
  color: var(--brand-blue);
  border-bottom-color: var(--brand-blue);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Montserrat', sans-serif;
}

.admin-table th {
  background: linear-gradient(135deg, #e6f0f8, #c9dcee);
  padding: 12px;
  text-align: left;
  font-weight: 700;
  font-size: 13px;
  color: var(--brand-blue-dark);
  border-bottom: 2px solid var(--brand-blue);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.admin-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14px;
}

.admin-table tr:hover { background: var(--brand-blue-soft); }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 50, 103, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.modal-content {
  background: white;
  border-radius: 16px;
  padding: 32px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(28, 50, 103, 0.25);
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--border-soft);
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 12px;
  background: white;
  color: var(--text-dark);
}

.form-input:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(0, 91, 159, 0.1);
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-dark);
  margin-bottom: 6px;
  margin-top: 8px;
  font-family: 'Montserrat', sans-serif;
}

/* Result bar uses orange→yellow gradient */
.result-bar {
  height: 10px;
  background: linear-gradient(90deg, #ff6500, #fdcc11);
  border-radius: 5px;
  transition: width 0.5s ease;
}

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  z-index: 200;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  animation: slideUp 0.3s ease;
}

.toast.error { background: linear-gradient(135deg, #ef4444, #dc2626); }

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

.section-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 14px rgba(0, 91, 159, 0.08);
  border: 1px solid var(--border-soft);
}

/* Brand utility classes */
.text-brand { color: var(--brand-blue); }
.text-brand-dark { color: var(--brand-blue-dark); }
.text-brand-accent { color: var(--brand-orange); }
.bg-brand-soft { background: var(--brand-blue-soft); }
.bg-brand { background: var(--brand-blue); color: white; }

/* Typography helpers per brandbook (60pt / 36pt headings, 14pt / 9pt body) */
.heading-xl { font-size: 60px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.heading-lg { font-size: 36px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
.body-text  { font-size: 14px; font-weight: 400; line-height: 1.55; }
.body-small { font-size: 12px; font-weight: 500; }

/* Mobile responsive */
@media (max-width: 768px) {
  .candidate-image, .candidate-image-placeholder { height: 200px; }
  .logo-img { max-height: 80px; }
  .heading-xl { font-size: 36px; }
  .heading-lg { font-size: 26px; }
}
