/* PawBridge Shared Styles */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Syne:wght@700;800&display=swap');

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

:root {
  --warm: #F5EDE4;
  --bark: #3D2B1F;
  --amber: #D4913D;
  --sage: #7A8B6F;
  --cream: #FDF8F3;
  --soft-sage: #E8EDE5;
  --rust: #B8602A;
  --white: #FFFFFF;
  --red: #DC3545;
  --green: #28A745;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--bark);
  background: var(--cream);
  overflow-x: hidden;
  min-height: 100vh;
}

h1, h2, h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

/* Navigation */
.app-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 2rem;
  background: rgba(253, 248, 243, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(61, 43, 31, 0.06);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--bark);
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo span { color: var(--amber); }

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bark);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--amber); text-decoration: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
  font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--amber);
  color: white;
}
.btn-primary:hover { background: var(--rust); color: white; }

.btn-secondary {
  background: var(--soft-sage);
  color: var(--bark);
}
.btn-secondary:hover { background: var(--sage); color: white; }

.btn-outline {
  background: transparent;
  color: var(--bark);
  border: 1.5px solid rgba(61, 43, 31, 0.15);
}
.btn-outline:hover { border-color: var(--amber); color: var(--amber); }

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1rem;
  border-radius: 12px;
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.page-content {
  padding-top: 5rem;
  min-height: 100vh;
}

/* Cards */
.card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(61, 43, 31, 0.04), 0 1px 3px rgba(61, 43, 31, 0.03);
  border: 1px solid rgba(61, 43, 31, 0.04);
}

/* Pet Cards */
.pet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.pet-card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(61, 43, 31, 0.04);
  border: 1px solid rgba(61, 43, 31, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.pet-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(61, 43, 31, 0.08);
  text-decoration: none;
}

.pet-card-image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
}

.pet-card-image.dog { background: #FDEBD0; }
.pet-card-image.cat { background: #E8EDE5; }
.pet-card-image.bird { background: #E3F2FD; }
.pet-card-image.reptile { background: #E8F5E9; }
.pet-card-image.rabbit { background: #F3E5F5; }
.pet-card-image.other { background: var(--warm); }

.pet-card-body {
  padding: 1.25rem;
}

.pet-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.pet-card-meta {
  font-size: 0.8rem;
  color: rgba(61, 43, 31, 0.5);
  margin-bottom: 0.75rem;
}

.pet-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tag-species {
  background: rgba(212, 145, 61, 0.1);
  color: var(--amber);
}

.tag-size {
  background: rgba(122, 139, 111, 0.1);
  color: var(--sage);
}

.tag-location {
  background: rgba(61, 43, 31, 0.06);
  color: rgba(61, 43, 31, 0.6);
}

.tag-price {
  background: rgba(184, 96, 42, 0.1);
  color: var(--rust);
  font-weight: 700;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--bark);
}

.form-group .hint {
  font-size: 0.75rem;
  color: rgba(61, 43, 31, 0.45);
  margin-top: 0.2rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid rgba(61, 43, 31, 0.12);
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--bark);
  background: var(--white);
  transition: border-color 0.2s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(212, 145, 61, 0.1);
}

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

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%233D2B1F' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  accent-color: var(--amber);
}

/* Filters */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(61, 43, 31, 0.03);
  border: 1px solid rgba(61, 43, 31, 0.04);
}

.filters-bar select,
.filters-bar input {
  width: auto;
  min-width: 160px;
  flex: 1;
}

/* Section headers */
.section-header {
  margin-bottom: 2rem;
}

.section-header h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 0.5rem;
}

.section-header p {
  font-size: 1rem;
  color: rgba(61, 43, 31, 0.6);
  line-height: 1.6;
}

/* Fee calculator */
.fee-display {
  background: var(--warm);
  border-radius: 14px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.fee-row.total {
  border-top: 2px solid rgba(61, 43, 31, 0.1);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.fee-amount {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  color: var(--amber);
}

/* Pet detail */
.pet-detail-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.pet-detail-image {
  border-radius: 20px;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7rem;
}

.pet-detail-info h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.pet-detail-meta {
  font-size: 0.95rem;
  color: rgba(61, 43, 31, 0.55);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.pet-detail-section {
  margin-bottom: 1.5rem;
}

.pet-detail-section h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sage);
  margin-bottom: 0.5rem;
}

.pet-detail-section p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(61, 43, 31, 0.75);
}

/* Alerts */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.alert-success {
  background: rgba(40, 167, 69, 0.08);
  color: var(--green);
  border: 1px solid rgba(40, 167, 69, 0.15);
}

.alert-error {
  background: rgba(220, 53, 69, 0.08);
  color: var(--red);
  border: 1px solid rgba(220, 53, 69, 0.15);
}

.alert-info {
  background: rgba(212, 145, 61, 0.08);
  color: var(--rust);
  border: 1px solid rgba(212, 145, 61, 0.15);
}

/* Loading */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: rgba(61, 43, 31, 0.4);
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(61, 43, 31, 0.1);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 0.75rem;
}

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

/* Empty state */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: rgba(61, 43, 31, 0.4);
}

.empty-state .icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--bark);
}

.empty-state p {
  max-width: 400px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

/* Success page */
.success-page {
  text-align: center;
  padding: 6rem 2rem;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.success-page h1 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.success-page p {
  font-size: 1.05rem;
  color: rgba(61, 43, 31, 0.6);
  max-width: 500px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

/* Footer */
.app-footer {
  background: var(--bark);
  color: rgba(255, 255, 255, 0.4);
  padding: 2rem;
  text-align: center;
  font-size: 0.8rem;
  margin-top: 4rem;
}

.app-footer .logo-foot {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: white;
  margin-bottom: 0.5rem;
}
.app-footer .logo-foot span { color: var(--amber); }

/* Responsive */
@media (max-width: 768px) {
  .app-nav { padding: 0.75rem 1.25rem; }
  .nav-links { gap: 0.75rem; }
  .nav-links a { font-size: 0.8rem; }
  .container { padding: 0 1.25rem; }
  .page-content { padding-top: 4.5rem; }
  .pet-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .pet-detail-header { grid-template-columns: 1fr; gap: 1.5rem; }
  .pet-detail-image { height: 250px; }
  .filters-bar { flex-direction: column; }
  .filters-bar select, .filters-bar input { min-width: 100%; }
  .btn-lg { width: 100%; justify-content: center; }
}
