/* Global layout & typography for UnitedGarageSale prototype */

:root {
  --ugs-bg: #f3f4f6;
  --ugs-surface: #ffffff;
  --ugs-border: #e5e7eb;
  --ugs-text: #111827;
  --ugs-muted: #6b7280;
  --ugs-accent: #2563eb;
  --ugs-accent-dark: #1d4ed8;
  --ugs-radius-lg: 14px;
  --ugs-shadow-soft: 0 18px 35px rgba(15, 23, 42, 0.10);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.ugs-body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--ugs-bg);
  color: var(--ugs-text);
  line-height: 1.6;
}

a {
  color: var(--ugs-accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.ugs-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

.ugs-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: linear-gradient(135deg, #111827, #1f2937);
  color: #ffffff;
}
.ugs-header-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ugs-logo {
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 1.05rem;
}
.ugs-tagline {
  font-size: 0.8rem;
  opacity: 0.8;
}

.ugs-hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 32px;
  align-items: flex-start;
  margin-top: 26px;
  margin-bottom: 40px;
}

@media (max-width: 900px) {
  .ugs-hero {
    grid-template-columns: 1fr;
  }
  .ugs-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

.ugs-hero-title {
  font-size: clamp(2rem, 3vw + 1rem, 2.7rem);
  margin: 0 0 10px;
}

.ugs-lead {
  font-size: 0.98rem;
  color: #4b5563;
  margin: 4px 0;
}

.ugs-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e5f3ff;
  color: #1d4ed8;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.ugs-hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.9rem;
  color: #374151;
  margin-top: 8px;
}
.ugs-hero-highlights span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #e5e7eb;
}

.ugs-card {
  background: var(--ugs-surface);
  border-radius: var(--ugs-radius-lg);
  padding: 20px 18px;
  border: 1px solid var(--ugs-border);
  box-shadow: var(--ugs-shadow-soft);
}

.ugs-form-title {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.ugs-form-subtitle {
  font-size: 0.85rem;
  color: var(--ugs-muted);
  margin-bottom: 14px;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin: 10px 0 3px;
  color: #374151;
}

input,
select,
textarea {
  width: 100%;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
  outline: none;
  background: #f9fafb;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--ugs-accent);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
  background: #ffffff;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

.ugs-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 600px) {
  .ugs-field-row {
    grid-template-columns: 1fr;
  }
}

.ugs-helper {
  font-size: 0.75rem;
  color: var(--ugs-muted);
  margin-top: 2px;
}

.ugs-btn-primary {
  width: 100%;
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: 999px;
  border: none;
  background: var(--ugs-accent);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s, transform 0.05s, box-shadow 0.15s;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.35);
}
.ugs-btn-primary:hover {
  background: var(--ugs-accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.45);
}
.ugs-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}

.ugs-status-message {
  margin-top: 10px;
  font-size: 0.85rem;
  padding: 8px 10px;
  border-radius: 10px;
  display: none;
}
.ugs-status-success {
  background: #ecfdf3;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.ugs-status-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.ugs-section {
  margin-top: 40px;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 28px;
}
@media (max-width: 900px) {
  .ugs-section {
    grid-template-columns: 1fr;
  }
}

.ugs-section-title {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.ugs-section-text,
.ugs-section p {
  font-size: 0.95rem;
  color: #4b5563;
}
.ugs-list {
  margin-top: 10px;
  padding-left: 18px;
  font-size: 0.9rem;
  color: #374151;
}
.ugs-list li {
  margin-bottom: 6px;
}

.ugs-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.ugs-pill-list span {
  padding: 4px 10px;
  border-radius: 999px;
  background: #e5e7eb;
  font-size: 0.8rem;
}

/* Footer */

.ugs-footer {
  border-top: 1px solid var(--ugs-border);
  padding: 14px 18px 22px;
  font-size: 0.8rem;
  color: var(--ugs-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: #ffffff;
}
.ugs-admin-link {
  cursor: pointer;
  color: #9ca3af;
}
.ugs-admin-link:hover {
  color: #4b5563;
}

/* Admin panel */

.ugs-admin-panel {
  margin-top: 40px;
  display: none;
}
.ugs-admin-copy {
  font-size: 0.8rem;
  color: #4b5563;
  margin-bottom: 6px;
}
.ugs-admin-login {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.8rem;
}
.ugs-admin-login input {
  max-width: 200px;
}

.ugs-admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  margin-top: 10px;
}
.ugs-admin-table th,
.ugs-admin-table td {
  border: 1px solid var(--ugs-border);
  padding: 6px 8px;
  text-align: left;
}
.ugs-admin-table th {
  background: #f9fafb;
  font-weight: 600;
}

.ugs-admin-badge {
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
}
.ugs-status-pending {
  background: #fef3c7;
  color: #92400e;
}
.ugs-status-approved {
  background: #dcfce7;
  color: #166534;
}
.ugs-status-denied {
  background: #fee2e2;
  color: #b91c1c;
}

.ugs-admin-btn {
  border: none;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.7rem;
  cursor: pointer;
}
.ugs-admin-approve {
  background: #22c55e;
  color: #052e16;
}
.ugs-admin-deny {
  background: #ef4444;
  color: #7f1d1d;
}

.ugs-admin-content {
  display: none;
}

.ugs-admin-pin-status {
  font-size: 0.75rem;
}

/* Enhanced hero styling */
.ugs-hero {
  position: relative;
  padding: 26px 22px;
  border-radius: 22px;
  background: radial-gradient(130% 140% at 0% 0%, #dbeafe 0, #eff6ff 35%, #f9fafb 100%);
  box-shadow: var(--ugs-shadow-soft);
  overflow: hidden;
}
.ugs-hero::before,
.ugs-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(32px);
  opacity: 0.7;
  pointer-events: none;
}
.ugs-hero::before {
  width: 180px;
  height: 180px;
  background: rgba(59, 130, 246, 0.25);
  top: -60px;
  right: -40px;
}
.ugs-hero::after {
  width: 200px;
  height: 200px;
  background: rgba(16, 185, 129, 0.18);
  bottom: -80px;
  left: -60px;
}
.ugs-hero-copy {
  position: relative;
  z-index: 1;
}
.ugs-card-form {
  position: relative;
  z-index: 1;
}

/* Trust bar */
.ugs-trust {
  margin-top: 26px;
  padding: 12px 18px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px dashed var(--ugs-border);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.ugs-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 200px;
}
.ugs-trust-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #111827;
  color: #f9fafb;
  font-size: 0.7rem;
  font-weight: 600;
}
.ugs-trust-label {
  font-size: 0.9rem;
  font-weight: 600;
}
.ugs-trust-text {
  font-size: 0.8rem;
  color: var(--ugs-muted);
}

/* Steps grid */
.ugs-steps {
  margin-top: 32px;
}
.ugs-steps-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 900px) {
  .ugs-steps-grid {
    grid-template-columns: 1fr;
  }
}
.ugs-step-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid var(--ugs-border);
  padding: 14px 14px 16px;
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.08);
}
.ugs-step-card h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
}
.ugs-step-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
}

/* Slightly elevated header for premium feel */
.ugs-header {
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
}


/* Simple header nav */
.ugs-nav {
  display: inline-flex;
  gap: 12px;
  margin-right: 12px;
  font-size: 0.85rem;
}
.ugs-nav a {
  color: #e5e7eb;
  text-decoration: none;
}
.ugs-nav a:hover {
  text-decoration: underline;
}
@media (max-width: 900px) {
  .ugs-header-right {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
}
