/* safe-gateway/public/css/style.css */

:root {
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --accent-color: #3b82f6;
  --accent-hover: #2563eb;
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --border-color: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(17, 24, 39, 0.7);
  --glass-blur: blur(12px);
}

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

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

/* Vibrant abstract background lights */
body::before, body::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  opacity: 0.15;
}

body::before {
  top: 10%;
  left: 10%;
  background: var(--accent-color);
}

body::after {
  bottom: 10%;
  right: 10%;
  background: #a855f7;
}

.container {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 40px;
  width: 90%;
  max-width: 460px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  z-index: 1;
  position: relative;
  transition: transform 0.3s ease;
}

.icon-wrapper {
  margin-bottom: 24px;
  display: inline-block;
  background: rgba(59, 130, 246, 0.1);
  padding: 16px;
  border-radius: 50%;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.icon {
  width: 48px;
  height: 48px;
  stroke: var(--accent-color);
}

h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.widget-container {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
  min-height: 65px;
}

.status-message {
  margin-top: 16px;
  font-size: 13px;
  color: var(--accent-color);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn {
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  display: none; /* Shown dynamically after Turnstile validation */
  text-decoration: none;
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
