/* "Show Off Your Dog" contest pages: a lighter look than the main site, same colors. */
:root {
  --red: #9b1b1f; --red-dark: #7d1418; --ink: #23272b; --muted: #5f656b;
  --line: #e3e1dc; --cream: #f6f4ef; --paper: #fff;
  --serif: "Merriweather", Georgia, serif;
  --sans: "Open Sans", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--cream); line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: var(--red); }
.c-wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* Header */
.c-header { background: var(--paper); border-bottom: 1px solid var(--line); text-align: center; padding: 26px 0 0; }
.c-title { font-family: var(--serif); font-weight: 700; font-size: clamp(1.9rem, 6vw, 2.8rem); color: var(--ink); text-decoration: none; line-height: 1.15; }
.c-sponsor { margin: 8px 0 0; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.c-tagline { margin: 4px 0 0; font-size: 1.05rem; color: var(--red); font-style: italic; }
.c-nav { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 18px; }
.c-nav a { padding: 10px 14px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; border-bottom: 3px solid transparent; }
.c-nav a[aria-current="page"] { border-bottom-color: var(--red); color: var(--red); }

main { padding: 32px 0 56px; min-height: 50vh; }
.c-intro { text-align: center; max-width: 640px; margin: 0 auto 26px; }
.c-intro h1 { font-family: var(--serif); font-size: clamp(1.5rem, 4.5vw, 2rem); margin: 0 0 8px; }
.c-intro p { margin: 0; color: var(--muted); }

.btn { display: inline-block; background: var(--red); color: #fff; border: 0; border-radius: 999px; padding: 13px 26px; font: 700 1rem var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--red-dark); }
.btn:disabled { opacity: .6; cursor: default; }
.btn--ghost { background: transparent; color: var(--red); border: 2px solid var(--red); }
.btn--ghost:hover { background: var(--red); color: #fff; }
.c-center { text-align: center; }
.c-note { font-size: .88rem; color: var(--muted); }
.c-closed { background: #fff3cd; border: 1px solid #f0d58a; padding: 12px 16px; border-radius: 10px; text-align: center; margin: 0 auto 22px; max-width: 640px; }

/* Gallery */
.c-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 18px; }
.c-sort { display: flex; gap: 6px; }
.c-sort button { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 7px 14px; font: 600 .88rem var(--sans); cursor: pointer; color: var(--ink); }
.c-sort button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.c-search { border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font: .95rem var(--sans); min-width: 0; flex: 1; max-width: 260px; }
.c-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.c-card { background: var(--paper); border-radius: 14px; overflow: hidden; box-shadow: 0 6px 20px rgba(20,22,25,.07); display: flex; flex-direction: column; }
.c-card button.c-photo { border: 0; padding: 0; background: #eee; cursor: zoom-in; aspect-ratio: 1 / 1; overflow: hidden; }
.c-card button.c-photo img { width: 100%; height: 100%; object-fit: cover; }
.c-card__body { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; gap: 10px; }
.c-card__name { font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.c-card__fun { font-size: .75rem; color: var(--red); font-weight: 600; }
.c-card button.c-photo { position: relative; }
.c-ribbon { position: absolute; left: 8px; bottom: 8px; background: rgba(31,111,92,.92); color: #fff; font: 700 .88rem var(--sans); padding: 6px 12px; border-radius: 999px; box-shadow: 0 1px 4px rgba(0,0,0,.25); line-height: 1.3; }
.c-paws { background: #eef6f3; border: 1px solid #b9d9cf; border-radius: 12px; padding: 14px 18px; max-width: 680px; margin: 0 auto 22px; text-align: center; font-size: .95rem; }
.c-paws p { margin: 0 0 6px; } .c-paws p:last-child { margin: 0; }
.c-ribbon--done { background: rgba(217,164,65,.95); color: #2b2f33; }
.c-card--paws { outline: 2px solid #1f6f5c; outline-offset: -2px; }
.c-meet { display: block; margin: 0 14px 12px; text-align: center; background: #1f6f5c; color: #fff; text-decoration: none; font-weight: 700; font-size: .9rem; padding: 9px 12px; border-radius: 999px; }
.c-meet:hover { background: #17584a; }
.c-card__town { font-size: .85rem; color: var(--muted); }
.c-love { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 7px 12px; font: 700 .95rem var(--sans); cursor: pointer; color: var(--ink); flex-shrink: 0; }
.c-love .h { font-size: 1.15rem; line-height: 1; color: #c9c9c9; transition: transform .15s; }
.c-love[aria-pressed="true"] { border-color: #f3c4c6; background: #fff5f5; }
.c-love[aria-pressed="true"] .h { color: #e0245e; }
.c-love.pop .h { transform: scale(1.35); }
.c-love:disabled { cursor: default; }
.c-empty { text-align: center; padding: 50px 16px; background: var(--paper); border-radius: 14px; }

/* Lightbox */
.c-lightbox { position: fixed; inset: 0; background: rgba(15,17,19,.88); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.c-lightbox.open { display: flex; }
.c-lightbox figure { margin: 0; max-width: min(900px, 100%); text-align: center; color: #fff; }
.c-lightbox img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: 10px; }
.c-lightbox figcaption { margin-top: 10px; font-weight: 600; }
.c-lightbox .c-close { position: absolute; top: 12px; right: 16px; background: none; border: 0; color: #fff; font-size: 2rem; cursor: pointer; }

/* Entry form */
.c-form { background: var(--paper); border-radius: 16px; padding: 24px; max-width: 560px; margin: 0 auto; box-shadow: 0 6px 20px rgba(20,22,25,.07); }
.c-form label { display: block; font-weight: 600; font-size: .95rem; margin: 0 0 14px; }
.c-form label small { font-weight: 400; color: var(--muted); }
.c-form input[type=text], .c-form input[type=email], .c-form input[type=tel], .c-form select {
  display: block; width: 100%; margin-top: 6px; padding: 12px; font: 1rem var(--sans); border: 1px solid #cfccc5; border-radius: 10px; background: #fff; }
.c-check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: .92rem !important; }
.c-check input { margin-top: 4px; width: 18px; height: 18px; flex-shrink: 0; }
.c-drop { border: 2px dashed #cfccc5; border-radius: 14px; padding: 22px; text-align: center; cursor: pointer; margin-bottom: 18px; background: #fbfaf7; }
.c-drop strong { display: block; font-size: 1.05rem; }
.c-drop .c-note { margin: 4px 0 0; display: block; font-weight: 400; }
.c-drop img { max-height: 260px; margin: 0 auto 10px; border-radius: 10px; }
.c-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.c-error { color: #b00020; font-weight: 600; margin: 0 0 14px; }
.c-done { text-align: center; }
.c-done h2 { font-family: var(--serif); }
.hidden { display: none !important; }

/* Rules */
.c-rules { background: var(--paper); border-radius: 16px; padding: 26px; max-width: 820px; margin: 0 auto; }
.c-rules h2 { font-family: var(--serif); font-size: 1.15rem; margin: 26px 0 6px; }
.c-rules h2:first-child { margin-top: 0; }
.c-rules ol, .c-rules ul { padding-left: 22px; }

/* Footer */
.c-footer { background: #2f3439; color: rgba(255,255,255,.82); padding: 26px 0; font-size: .88rem; text-align: center; }
.c-footer a { color: #fff; }
.c-footer p { margin: 6px 0; }
.c-footer__about { margin-bottom: 14px !important; font-size: 1rem; font-weight: 600; }
.c-footer__who { font-size: .95rem; color: #fff; }
.c-footer__legal { font-size: .78rem; color: rgba(255,255,255,.65); }

/* Admin */
.c-admin-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 14px; align-items: center; background: var(--paper); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.c-admin-row img { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; cursor: zoom-in; }
.c-admin-row .actions { display: flex; flex-direction: column; gap: 6px; }
.c-admin-row .actions button { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: 600 .9rem var(--sans); cursor: pointer; background: #fff; }
.c-admin-row .actions .ok { background: #1f7a3a; color: #fff; border-color: #1f7a3a; }
.c-badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #eee; }
.c-badge.pending { background: #fff3cd; } .c-badge.approved { background: #d8f0de; } .c-badge.rejected { background: #f6d6d6; }
@media (max-width: 560px) {
  .c-admin-row { grid-template-columns: 90px 1fr; }
  .c-admin-row img { width: 90px; height: 90px; }
  .c-admin-row .actions { grid-column: 1 / -1; flex-direction: row; }
  .c-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .c-card__body { flex-direction: column; align-items: flex-start; padding: 10px; }
  .c-ribbon { font-size: .74rem; padding: 4px 9px; left: 6px; bottom: 6px; }
  .c-form { padding: 18px; }
  .c-nav { gap: 0; }
  .c-nav a { padding: 10px 9px; font-size: .9rem; }
}
