﻿/* /public/styles.css */

/* =============== GLOBAL ================== */

:root {
  --bib-blue: #2563eb;
  --bib-blue-dark: #1d4ed8;
  --bib-blue-soft: #eff6ff;
  --bib-bg: #f4f5f7;
  --bib-text: #111827;
  --bib-muted: #6b7280;
  --bib-border: #e5e7eb;
  --radius-card: 16px;
  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #ffffff;
  color: var(--bib-text);
}

/* Simple page wrapper used on most pages */
.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 16px 32px;
}

/* Basic typography */
h1,
h2,
h3 {
  margin: 0 0 8px;
}
h1 {
  font-size: 1.6rem;
  letter-spacing: 0.06em;
}
h2 {
  font-size: 1.2rem;
}
h3 {
  font-size: 1rem;
}
p {
  margin: 0 0 8px;
  font-size: 0.92rem;
  color: #374151;
}
.subtitle {
  margin-bottom: 16px;
  color: var(--bib-muted);
  font-size: 0.9rem;
}

/* =============== NAVBAR ================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #ffffffcc;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bib-border);
}

.nav-left {
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  font-weight: 700;
}

.nav-right {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-right a,
.signout-btn {
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--bib-border);
  background: #ffffff;
  color: var(--bib-text);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.nav-right a.active {
  border-color: var(--bib-blue);
  background: var(--bib-blue);
  color: #ffffff;
}

.nav-right a:hover,
.signout-btn:hover {
  background: #f3f4f6;
}

.nav-right a.active:hover {
  background: var(--bib-blue-dark);
}

.signout-btn {
  border-color: #f97373;
  color: #b91c1c;
  background: #fef2f2;
}

.signout-btn:hover {
  background: #fee2e2;
}

/* Mobile nav */
@media (max-width: 640px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .nav-right {
    flex-wrap: wrap;
  }
}

/* =============== CARDS / PANELS ================== */

.info-card,
.request-card,
.form-card,
.profile-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 16px 16px 18px;
  border: 1px solid var(--bib-border);
  box-shadow: var(--shadow-soft);
  margin-bottom: 16px;
}

/* =============== TABS ================== */

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--bib-border);
  padding-bottom: 4px;
}

.tab {
  border: none;
  background: transparent;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--bib-muted);
}

.tab.active {
  background: var(--bib-blue-soft);
  color: var(--bib-blue-dark);
  font-weight: 600;
}

/* =============== BUTTONS ================== */

button,
input[type="submit"] {
  font-family: inherit;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: none;
  padding: 8px 16px;
  font-size: 0.9rem;
  background: var(--bib-blue);
  color: #ffffff;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--bib-blue-dark);
}

.btn-secondary {
  border-radius: 999px;
  border: 1px solid var(--bib-border);
  padding: 6px 12px;
  font-size: 0.85rem;
  background: #ffffff;
  color: var(--bib-text);
  cursor: pointer;
}

.btn-secondary:hover {
  background: #f3f4f6;
}

/* smaller buttons used in Serve page */
.comment-btn,
.send-comment {
  border-radius: 999px;
  border: 1px solid var(--bib-border);
  padding: 4px 10px;
  font-size: 0.8rem;
  background: var(--bib-blue-soft);
  color: var(--bib-blue-dark);
  cursor: pointer;
}
.comment-btn:hover,
.send-comment:hover {
  background: #dbeafe;
}

/* =============== FORMS ================== */

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field label {
  font-size: 0.8rem;
  color: var(--bib-muted);
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  border-radius: 10px;
  border: 1px solid var(--bib-border);
  padding: 8px 10px;
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--bib-blue);
  box-shadow: 0 0 0 1px var(--bib-blue-soft);
}

/* =============== SERVE PAGE ================== */

.request-card h3 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.request-card .details {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.request-card .meta {
  font-size: 0.78rem;
  color: var(--bib-muted);
  margin-bottom: 8px;
}

.comment-section {
  margin-top: 8px;
  border-top: 1px solid var(--bib-border);
  padding-top: 8px;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 180px;
  overflow-y: auto;
  margin-bottom: 6px;
}

.comment-item {
  font-size: 0.8rem;
  background: #f9fafb;
  border-radius: 10px;
  padding: 4px 8px;
}

.comment-item strong {
  font-weight: 600;
  margin-right: 4px;
}

.comment-input {
  width: 100%;
  min-height: 50px;
  margin-bottom: 4px;
}

/* =============== REQUEST PAGE (CREATE REQUEST) ================== */

.request-type-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.request-type-pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--bib-border);
  font-size: 0.8rem;
  cursor: pointer;
  background: #ffffff;
  color: var(--bib-text);
}
.request-type-pill.active {
  background: var(--bib-blue-soft);
  color: var(--bib-blue-dark);
  border-color: var(--bib-blue);
}

/* =============== PROFILE PAGE ================== */

.profile-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: 12px;
}
@media (max-width: 768px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

/* simple tag chips */
.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--bib-blue-soft);
  color: var(--bib-blue-dark);
  font-size: 0.75rem;
  margin: 0 4px 4px 0;
}

/* =============== HOME / AUTH ================== */

.hero-card {
  max-width: 900px;
  margin: 80px auto 32px;
  padding: 24px 18px;
  border-radius: var(--radius-card);
  border: 1px solid var(--bib-border);
  box-shadow: var(--shadow-soft);
  background: #ffffff;
}

.hero-card h1 {
  margin-bottom: 6px;
}
.hero-card p {
  margin-bottom: 8px;
}

.auth-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 16px;
  margin-top: 12px;
}
@media (max-width: 768px) {
  .auth-row {
    grid-template-columns: 1fr;
  }
}

.google-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid var(--bib-border);
  padding: 8px 14px;
  font-size: 0.9rem;
  background: #ffffff;
  cursor: pointer;
}
.google-btn:hover {
  background: #f3f4f6;
}

/* =============== UTILITIES ================== */

.empty {
  font-size: 0.85rem;
  color: var(--bib-muted);
  margin-top: 8px;
}

.center {
  text-align: center;
}

.mt-8 {
  margin-top: 8px;
}
.mt-16 {
  margin-top: 16px;
}
.mb-8 {
  margin-bottom: 8px;
}
.mb-16 {
  margin-bottom: 16px;
}
