/*
 * SuperRigs Custom CSS
 * Shell Rotella Brand Theme
 *
 * This file contains custom component classes that complement Tailwind.
 * Compatible with Tailwind CDN.
 */

/* ==========================================================================
   Shell Rotella Color Variables
   ========================================================================== */

:root {
  --shell-red: #DD1D21;
  --shell-red-dark: #B8181B;
  --shell-red-light: #FEE2E2;
  --shell-yellow: #FBCE07;
  --shell-yellow-dark: #D4A906;
  --shell-yellow-light: #FEF9E7;
}

/* ==========================================================================
   Component Classes
   ========================================================================== */

/* --- Buttons --- */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  transition: all 150ms ease;
  background-color: var(--shell-yellow);
  color: #1F2937;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--shell-yellow-dark);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  transition: all 150ms ease;
  background-color: var(--shell-red);
  color: white;
  border: none;
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: var(--shell-red-dark);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  transition: all 150ms ease;
  border: 2px solid var(--shell-red);
  color: var(--shell-red);
  background-color: transparent;
  cursor: pointer;
}

.btn-outline:hover {
  background-color: var(--shell-red);
  color: white;
}

/* --- Forms --- */

.form-label {
  display: block;
  color: #374151;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #D1D5DB;
  border-radius: 0.375rem;
  transition: all 150ms ease;
  font-size: 1rem;
}

.form-input:focus {
  outline: none;
  ring: 2px;
  ring-color: var(--shell-yellow);
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--shell-yellow);
}

.form-input::placeholder {
  color: #9CA3AF;
}

.form-input-error {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--shell-red);
  border-radius: 0.375rem;
  transition: all 150ms ease;
}

.form-input-error:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--shell-red);
}

.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  padding-right: 2.5rem;
  border: 1px solid #D1D5DB;
  border-radius: 0.375rem;
  background-color: white;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.5em 1.5em;
  appearance: none;
  cursor: pointer;
}

.form-select:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--shell-yellow);
  border-color: transparent;
}

.form-checkbox {
  width: 1.25rem;
  height: 1.25rem;
  border: 1px solid #D1D5DB;
  border-radius: 0.25rem;
  cursor: pointer;
  accent-color: var(--shell-yellow);
}

.form-checkbox:focus {
  box-shadow: 0 0 0 2px var(--shell-yellow);
}

.form-radio {
  width: 1.25rem;
  height: 1.25rem;
  border: 1px solid #D1D5DB;
  cursor: pointer;
  accent-color: var(--shell-yellow);
}

.form-radio:focus {
  box-shadow: 0 0 0 2px var(--shell-yellow);
}

.form-error {
  color: var(--shell-red);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.form-help {
  color: #6B7280;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}


/* --- Required Field Marker --- */

.required::after {
  content: ' *';
  color: var(--shell-red);
}

/* --- Edit Links --- */

.edit-link {
  color: var(--shell-red);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 150ms ease;
}

.edit-link:hover {
  color: var(--shell-red-dark);
}