/**
 * Custom Styles for PIP Landing Page
 *
 * Minimal custom CSS - Tailwind handles most styling via CDN.
 */

/* =============================================================================
 * TOAST NOTIFICATIONS
 * ========================================================================== */

.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 400px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  animation: toast-slide-in 0.3s ease-out;
  background: white;
  border-left: 4px solid;
}

.toast-success {
  border-left-color: #10b981;
  color: #065f46;
}

.toast-success .toast-icon {
  color: #10b981;
}

.toast-error {
  border-left-color: #ef4444;
  color: #991b1b;
}

.toast-error .toast-icon {
  color: #ef4444;
}

.toast-info {
  border-left-color: #3b82f6;
  color: #1e40af;
}

.toast-info .toast-icon {
  color: #3b82f6;
}

.toast-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
}

.toast-message {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 500;
}

.toast-fade-out {
  animation: toast-fade-out 0.3s ease-out forwards;
}

@keyframes toast-slide-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toast-fade-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-0.5rem);
  }
}

/* Mobile responsiveness */
@media (max-width: 640px) {
  .toast-container {
    left: 1rem;
    right: 1rem;
    max-width: none;
  }
}

/* =============================================================================
 * STAGING BANNER
 * ========================================================================== */

.staging-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--brand-accent);
  color: white;
  text-align: center;
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  z-index: 9998;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Adjust body padding when staging banner is present */
body:has(.staging-banner) {
  padding-top: 3rem;
}

/* Form card on dark background */
.bg-white {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

/* =============================================================================
 * FORM VALIDATION ERRORS
 * ========================================================================== */

.error-message {
  display: none;
  color: #dc2626; /* Red-600 */
  font-size: 0.875rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

.field-error {
  border-color: #dc2626 !important; /* Red-600 */
  background-color: #fef2f2; /* Red-50 */
}

.field-error:focus {
  outline-color: #dc2626 !important;
  border-color: #dc2626 !important;
}

/* =============================================================================
 * SUCCESS MESSAGE
 * ========================================================================== */

.success-message {
  background-color: #d1fae5; /* Green-100 */
  border: 1px solid #10b981; /* Green-500 */
  color: #065f46; /* Green-900 */
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.success-message.hidden {
  display: none;
}

/* =============================================================================
 * FOCUS STATES (Accessibility)
 * ========================================================================== */

input:focus,
textarea:focus,
button:focus {
  outline: 2px solid var(--brand-secondary);
  outline-offset: 2px;
}

button:disabled:focus {
  outline: none;
}

/* =============================================================================
 * PINK BRAND COLOR
 * ========================================================================== */

:root {
  --brand-primary: #2D1B3D;    /* Dark purple background */
  --brand-accent: #FF1493;      /* Hot pink/magenta */
  --brand-secondary: #5BC0EB;   /* Cyan/light blue */
  --brand-border: #9B59B6;      /* Violet */
  --brand-pink: #FF1493;        /* Keep for backward compat */
  --brand-pink-dark: #E0117F;
}

/* =============================================================================
 * RESPONSIVE ADJUSTMENTS
 * ========================================================================== */

/* Desktop-focused with basic mobile support */
@media (max-width: 640px) {
  body {
    padding: 1rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  .bg-white {
    padding: 1.5rem;
  }
}
