/* PakScore — shared styles transcribed from designs/FirstDesign */

html, body { margin: 0; padding: 0; background: #F6FAF7; }
* { box-sizing: border-box; }
body {
  font-family: 'Plus Jakarta Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #0F241A; font-size: 16px; line-height: 1.55;
  /* keep the footer pinned to the bottom on short pages */
  display: flex; flex-direction: column; min-height: 100vh;
}
body > footer { margin-top: auto; }
::selection { background: #BFE3CF; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header { background: #fff; border-bottom: 1px solid #E2ECE5; }
.site-header .inner { display: flex; align-items: center; gap: 26px; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo .mark {
  width: 35px; height: 35px; border-radius: 10px; background: #0A5C36; color: #fff;
  display: grid; place-items: center; font-size: 17px; line-height: 1;
}
.logo .word { font-weight: 800; font-size: 21px; letter-spacing: -0.02em; color: #0F241A; }
.logo .word b { color: #0A5C36; font-weight: 800; }

.nav-cats { display: flex; gap: 4px; }
.nav-pill {
  text-decoration: none; color: #3D5346; font-weight: 600; font-size: 14.5px;
  padding: 8px 12px; border-radius: 999px;
}
.nav-pill:hover { background: #EFF6F1; color: #0A5C36; }
.nav-pill.active { color: #0A5C36; background: #EAF4EC; font-weight: 700; }

.header-search {
  flex: 1; max-width: 340px; display: flex; align-items: center; gap: 8px;
  background: #F3F8F4; border: 1px solid #E2ECE5; border-radius: 999px; padding: 8px 14px;
}
.header-search input {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: inherit; font-size: 14px; color: #0F241A; min-width: 0;
}

.btn-primary {
  display: inline-block; text-decoration: none; background: #0A5C36; color: #fff;
  font-family: inherit; font-weight: 700; font-size: 14.5px; padding: 10px 20px;
  border-radius: 999px; border: none; cursor: pointer; white-space: nowrap;
}
.btn-primary:hover { background: #084B2C; }
.btn-outline {
  display: inline-block; text-decoration: none; background: #fff;
  border: 1px solid #D9E6DC; color: #3D5346; font-family: inherit; font-weight: 700;
  font-size: 14px; padding: 11px 18px; border-radius: 999px; cursor: pointer;
}
.btn-outline:hover { border-color: #0A5C36; color: #0A5C36; }
.btn-light {
  display: inline-block; text-decoration: none; background: #fff; color: #07331F;
  font-weight: 800; font-size: 14px; padding: 11px 18px; border-radius: 999px;
  border: none; cursor: pointer; font-family: inherit;
}
.btn-light:hover { background: #DCEFE3; }
.link-green { text-decoration: none; color: #0A5C36; font-weight: 700; font-size: 14.5px; }
.link-green:hover { text-decoration: underline; }
.link-muted { text-decoration: none; color: #7A8F80; }
.link-muted:hover { color: #0A5C36; }

.avatar-chip {
  display: flex; align-items: center; gap: 9px; text-decoration: none;
  border: 1px solid #E2ECE5; border-radius: 999px; padding: 5px 14px 5px 5px;
}
.avatar-chip:hover { border-color: #0A5C36; }
.avatar-initials {
  width: 30px; height: 30px; border-radius: 999px; background: #DFF0E5; color: #0A5C36;
  font-weight: 800; font-size: 12px; display: grid; place-items: center; flex-shrink: 0;
  overflow: hidden;
}
.avatar-initials img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px; }

/* ---------- stars ---------- */
.stars {
  position: relative; display: inline-block; line-height: 1;
  color: #D7E4DA; letter-spacing: 2px;
}
.stars > .fill {
  position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap;
  color: #0E8A4D; letter-spacing: 2px;
}

/* ---------- cards & common bits ---------- */
.card { background: #fff; border: 1px solid #E2ECE5; border-radius: 16px; }
.card-hover { transition: box-shadow .15s ease, transform .15s ease; }
.card-hover:hover { box-shadow: 0 12px 30px rgba(15,36,26,0.10); transform: translateY(-2px); }
.card-hover-flat { transition: box-shadow .15s ease; }
.card-hover-flat:hover { box-shadow: 0 10px 26px rgba(15,36,26,0.09); }

.ph {
  background: repeating-linear-gradient(45deg, #E6EFE8 0 10px, #F1F7F2 10px 20px);
  display: grid; place-items: center;
}
.ph span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px; color: #6E8577; letter-spacing: 0.04em;
}
.ph img, .photo-cover { width: 100%; height: 100%; object-fit: cover; display: block; }

.cat-badge {
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase;
  color: #0A5C36; background: #EAF4EC; padding: 4px 9px; border-radius: 999px;
  white-space: nowrap;
}
.score-badge {
  background: #0A5C36; color: #fff; font-weight: 800; border-radius: 8px;
  display: inline-block;
}
.chip {
  font-size: 12px; font-weight: 600; color: #3D5346; background: #F3F8F4;
  border: 1px solid #E2ECE5; padding: 4px 10px; border-radius: 999px;
}
.verified-badge {
  background: #EAF4EC; color: #0A5C36; font-size: 12px; font-weight: 800;
  padding: 5px 11px; border-radius: 999px; white-space: nowrap;
}

.title-link { text-decoration: none; color: #0F241A; }
.title-link:hover { color: #0A5C36; }

/* pills used for tabs / sort chips / category picker */
.pill-toggle {
  font-family: inherit; font-size: 14px; font-weight: 700; padding: 9px 18px;
  border-radius: 999px; cursor: pointer; border: 1px solid #D9E6DC; background: #fff;
  color: #3D5346; text-decoration: none; display: inline-block;
}
.pill-toggle.on { background: #0A5C36; color: #fff; border-color: #0A5C36; }

/* ---------- forms ---------- */
.field-label {
  display: flex; flex-direction: column; gap: 7px; font-size: 13.5px;
  font-weight: 700; color: #3D5346;
}
.input, .select, .textarea {
  font-family: inherit; font-size: 15px; color: #0F241A; background: #fff;
  border: 1px solid #D9E6DC; border-radius: 11px; padding: 12px 14px; outline: none;
  width: 100%; transition: border-color .12s ease;
}
.select {
  font-weight: 600; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5l3.5 3.5 3.5-3.5' fill='none' stroke='%235C6F62' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5l3.5 3.5 3.5-3.5' fill='none' stroke='%230A5C36' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
/* compact variant, e.g. the browse "Sort by" control */
.select-sm {
  width: auto; font-size: 14px; font-weight: 700;
  border-radius: 10px; padding: 9px 34px 9px 12px;
  background-position: right 12px center;
}
/* borderless variant used inside the hero search pill */
.select-bare {
  font-family: inherit; font-size: 14.5px; font-weight: 700; color: #0A5C36;
  border: none; outline: none; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  padding: 4px 24px 4px 2px; background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5l3.5 3.5 3.5-3.5' fill='none' stroke='%230A5C36' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
}
.textarea { line-height: 1.6; resize: vertical; }
.input:focus, .select:focus, .textarea:focus {
  border-color: #0A5C36; box-shadow: none;
}
.field-error { margin: 4px 0 0; font-size: 12.5px; color: #C4453A; font-weight: 600; }
.req { color: #C4453A; }

/* star pickers on the write-review page */
.star-btn {
  background: none; border: none; cursor: pointer; line-height: 1; padding: 2px 4px;
  color: #D7E4DA; transition: transform .1s ease; font-family: inherit;
}
.star-btn.lit { color: #0E8A4D; }
.star-btn.big:hover { transform: scale(1.12); }

/* rating filter radios (browse page) */
.rating-option {
  display: flex; align-items: center; gap: 10px; background: transparent; border: none;
  text-align: left; font-family: inherit; font-size: 14px; color: #0F241A;
  padding: 9px 10px; border-radius: 10px; cursor: pointer; width: 100%;
  text-decoration: none; font-weight: 500;
}
.rating-option.on { background: #EAF4EC; font-weight: 700; }
.rating-option .ring {
  width: 16px; height: 16px; border-radius: 999px; border: 2px solid #C6D6CA;
  display: grid; place-items: center; flex-shrink: 0;
}
.rating-option.on .ring { border-color: #0A5C36; }
.rating-option .dot { width: 8px; height: 8px; border-radius: 999px; background: transparent; }
.rating-option.on .dot { background: #0A5C36; }

.check-row { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: #3D5346; }
.check-row input { accent-color: #0A5C36; width: 16px; height: 16px; }

/* sidebar quick links (search page) */
.side-link {
  text-decoration: none; color: #3D5346; font-size: 14px; font-weight: 600;
  padding: 8px 10px; border-radius: 10px; display: block;
}
.side-link:hover { background: #F3F8F4; color: #0A5C36; }

/* pagination */
.page-num {
  text-decoration: none; background: #fff; border: 1px solid #D9E6DC; color: #3D5346;
  font-weight: 600; font-size: 14px; width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
}
.page-num:hover { border-color: #0A5C36; color: #0A5C36; }
.page-num.current { background: #0A5C36; color: #fff; border-color: #0A5C36; font-weight: 700; }
.page-next { width: auto; padding: 0 16px; }

/* toast notifications */
.toast-stack {
  position: fixed; top: 84px; right: 20px; z-index: 1000;
  display: flex; flex-direction: column; gap: 10px;
  width: min(380px, calc(100vw - 40px)); pointer-events: none;
}
.toast {
  position: relative; overflow: hidden; pointer-events: auto;
  display: flex; align-items: flex-start; gap: 12px;
  background: #fff; border: 1px solid #E2ECE5; border-radius: 14px;
  padding: 14px 16px; box-shadow: 0 14px 34px rgba(15, 36, 26, 0.16);
  animation: toast-in .28s cubic-bezier(0.21, 1.02, 0.73, 1);
}
.toast-icon {
  width: 26px; height: 26px; border-radius: 999px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff;
}
.toast-success .toast-icon { background: #0E8A4D; }
.toast-error .toast-icon { background: #C4453A; }
.toast-info .toast-icon { background: #3D5346; }
.toast-text { flex: 1; font-size: 13.5px; font-weight: 600; color: #0F241A; line-height: 1.45; padding-top: 3px; }
.toast-close {
  background: none; border: none; cursor: pointer; padding: 0 2px;
  font-size: 18px; line-height: 1; color: #9DB2A4; font-family: inherit; flex-shrink: 0;
}
.toast-close:hover { color: #0F241A; }
.toast-timer {
  position: absolute; left: 0; bottom: 0; height: 3px; border-radius: 0 3px 3px 0;
  animation: toast-timer 6s linear forwards;
}
.toast-success .toast-timer { background: #0E8A4D; }
.toast-error .toast-timer { background: #C4453A; }
.toast-info .toast-timer { background: #9DB2A4; }
.toast-leave { transition: opacity .25s ease, transform .25s ease; }
.toast-leave-end { opacity: 0; transform: translateX(14px); }
@keyframes toast-in {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes toast-timer {
  from { width: 100%; }
  to { width: 0; }
}

/* helpful vote button */
.vote-btn {
  display: flex; align-items: center; gap: 7px; font-family: inherit; font-size: 13px;
  font-weight: 700; padding: 8px 15px; border-radius: 999px; cursor: pointer;
  border: 1px solid #D9E6DC; background: #fff; color: #0A5C36;
}
.vote-btn.on { background: #0A5C36; color: #fff; border-color: #0A5C36; }

.report-btn {
  background: none; border: none; font-family: inherit; font-size: 13px; font-weight: 600;
  color: #9DB2A4; cursor: pointer; padding: 0;
}
.report-btn:hover { color: #3D5346; }

/* footer */
.footer-link { display: block; text-decoration: none; color: #BFD9C9; font-size: 14px; padding: 5px 0; }
.footer-link:hover { color: #fff; }
.footer-tiny { text-decoration: none; color: #8FB49E; font-size: 12.5px; }
.footer-tiny:hover { color: #fff; }

/* ajax panels */
[x-cloak] { display: none !important; }
.panel-loading { opacity: 0.45; pointer-events: none; transition: opacity .15s ease; }

/* upload dropzone */
.dropzone {
  border: 2px dashed #C6D6CA; border-radius: 14px; padding: 26px; text-align: center;
  background: #FBFDFB; cursor: pointer;
}
.dropzone:hover { border-color: #0A5C36; background: #F3F8F4; }
