/* ============================================
   Photo Booth PHP - Custom Styles
   Only defines: brand tokens, animations, custom components
   All utility classes are handled by Tailwind CDN
   ============================================ */

/* ── Dermond Brand Tokens (CSS Variables) ── */
:root {
  --ap-bg-soft: #eef4fb;
  --ap-bg-card: #ffffff;
  --ap-bg-muted: #e0eaf6;

  --ap-pink: #2563eb;
  --ap-pink-light: #93c5fd;
  --ap-pink-dark: #1d4ed8;
  --ap-purple: #1e3a5f;
  --ap-purple-light: #60a5fa;
  --ap-purple-dark: #0f2140;

  --ap-text-primary: #0f2140;
  --ap-text-secondary: #1e3a5f;
  --ap-text-muted: #6b8ba8;

  --ap-border: #c8ddf0;
  --ap-shadow-sm: 0 2px 10px rgba(30, 58, 95, 0.08);
  --ap-shadow-md: 0 10px 30px rgba(30, 58, 95, 0.14);
  --ap-shadow-lg: 0 18px 46px rgba(30, 58, 95, 0.18);

  --ap-gradient-btn: linear-gradient(135deg, #2563eb 0%, #1e3a5f 100%);
  --ap-gradient-hero: linear-gradient(135deg, #eef4fb 0%, #dbe7f5 52%, #d0e0f0 100%);
}

/* ── Base ── */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(circle at top, rgba(37, 99, 235, 0.08), transparent 30%),
    var(--ap-gradient-hero);
  color: var(--ap-text-primary);
  min-height: 100vh;
}

/* ── Animations ── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(37, 99, 235, 0.25); }
  50% { box-shadow: 0 0 30px rgba(37, 99, 235, 0.4); }
}
@keyframes slide-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes ping {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

/* ── Photo Booth Custom Components ── */

/* Header */
.site-header {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.logo-header { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.logo-header img { object-fit: contain; height: auto; }
.logo-divider { width: 2px; height: 35px; background: rgba(0, 0, 0, 0.15); }
.site-main { max-width: 42rem; margin: 0 auto; padding: 1rem; }
.site-footer { text-align: center; padding: 1.5rem 0; }

/* Cards */
.ap-card {
  background: var(--ap-bg-card);
  border: 1px solid var(--ap-border);
  border-radius: 1.25rem;
  box-shadow: var(--ap-shadow-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Buttons */
.ap-btn-primary {
  background: var(--ap-gradient-btn);
  color: #fff;
  font-weight: 700;
  border-radius: 9999px;
  padding: 0.65rem 2rem;
  box-shadow: var(--ap-shadow-md);
  transition: opacity 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.ap-btn-primary::before {
  content: "";
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}
.ap-btn-primary:hover::before { left: 100%; }
.ap-btn-primary::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, transparent 100%);
  border-radius: 9999px 9999px 0 0;
  pointer-events: none;
}
.ap-btn-primary:hover {
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: var(--ap-shadow-md), 0 0 20px rgba(37, 99, 235, 0.4);
}
.ap-btn-primary:active { transform: translateY(0); }
.ap-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.ap-btn-outline {
  background: transparent;
  color: var(--ap-purple);
  font-weight: 600;
  border-radius: 9999px;
  padding: 0.6rem 1.75rem;
  border: 2px solid var(--ap-purple-light);
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  text-decoration: none;
}
.ap-btn-outline:hover { background: var(--ap-bg-muted); }

/* Inputs */
.ap-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1.5px solid var(--ap-border);
  background: var(--ap-bg-soft);
  color: var(--ap-text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.ap-input:focus {
  border-color: var(--ap-purple-light);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.ap-input::placeholder { color: var(--ap-text-muted); }

/* Photo strip wrapper */
.photo-strip-wrapper {
  background: #fff;
  border: 1px solid var(--ap-border);
  border-radius: 1rem;
  padding: 0.75rem 0.75rem 1.5rem;
  box-shadow: var(--ap-shadow-lg), 0 1px 0 #d7e3ef inset;
  position: relative;
}
.photo-strip-wrapper::after {
  content: "Dermond";
  display: block;
  text-align: center;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--ap-text-muted);
  margin-top: 0.5rem;
  text-transform: uppercase;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--ap-pink), var(--ap-purple))
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Camera styles */
.camera-container {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--ap-shadow-lg);
  border: 3px solid var(--ap-pink-light);
}
.camera-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.camera-overlay-bg-1 { background: rgba(23,49,84,0.35); }
.camera-overlay-bg-2 { background: rgba(16,33,59,0.85); }

/* Photo strip layout */
.strip-photo-area {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.strip-camera-badge {
  position: absolute;
  top: 0.25rem; right: 0.25rem;
  background: white;
  border-radius: 50%;
  padding: 0.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 10;
}
.strip-glow-bg {
  position: absolute;
  inset: -0.25rem;
  border-radius: 1.25rem;
  opacity: 0.25;
  filter: blur(0.5rem);
  background: var(--ap-gradient-btn);
  transition: opacity 0.3s;
  z-index: -1;
}

/* Thumbnail strip */
.thumbnail-strip {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  padding: 0.5rem;
  background: var(--ap-bg-card);
  border: 1px solid var(--ap-border);
  border-radius: 0.75rem;
  box-shadow: var(--ap-shadow-sm);
}
.thumbnail-strip img {
  height: 60px;
  width: auto;
  border-radius: 6px;
  object-fit: cover;
  border: 2px solid var(--ap-border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Progress dots */
.progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

/* Step indicator */
.step-pill {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ap-text-muted);
}
.step-pill.active { color: var(--ap-pink); }

/* Frame badge (admin) */
.frame-badge {
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-weight: 500;
  background: var(--ap-bg-muted);
  color: var(--ap-purple);
  display: inline-block;
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* Success toast */
.success-toast {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--ap-gradient-btn);
  color: #fff;
  box-shadow: var(--ap-shadow-md);
  display: inline-block;
}

/* Admin table */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ap-text-muted);
  background: var(--ap-bg-muted);
  border-bottom: 1px solid var(--ap-border);
}
.data-table td { padding: 0.75rem 1rem; vertical-align: top; }
.data-table tbody tr { border-top: 1px solid var(--ap-border); }
.data-table tbody tr:nth-child(even) { background: var(--ap-bg-soft); }
.data-table tbody tr:nth-child(odd) { background: var(--ap-bg-card); }

/* Frame editor */
.frame-editor {
  border-radius: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--ap-border);
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(232,239,247,0.76));
}

/* Admin header */
.admin-header {
  background: var(--ap-bg-card);
  border-bottom: 1px solid var(--ap-border);
  box-shadow: var(--ap-shadow-sm);
}

/* ── Responsive Layout Helpers ── */
@media (min-width: 1024px) {
  .lg\:flex-row { flex-direction: row; }
}
@media (min-width: 640px) {
  .sm\:inline { display: inline; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--ap-bg-muted); }
::-webkit-scrollbar-thumb { background: var(--ap-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--ap-text-muted); }

