/* Duck Tracker theme: black & white with rubber-duck-yellow accents.
   Mobile-first. Shared CSS variables are consumed by page-specific styles. */

:root {
    --yellow: #ffcf24;
    --yellow-soft: #ffe27a;
    --orange: #ff8a00;
    --orange-deep: #e05d00;
    --black: #14100b;
    --black-soft: #241d13;
    --white: #ffffff;
    --text: #fff8e8;
    --text-muted: rgba(255, 248, 232, 0.7);
    --border: rgba(255, 138, 0, 0.5);
    --radius: 1rem;
    --max-width: 480px;
}

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

html {
    font-size: 16px;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(ellipse at top, rgba(255, 138, 0, 0.22), transparent 55%),
        var(--black);
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
}

a {
    color: var(--yellow);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header */
.site-header {
    text-align: center;
    padding: 1.25rem 1rem 0.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--yellow);
    text-decoration: none;
}

.brand-mark {
    font-size: 1.75rem;
}

.brand-name {
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 12px rgba(255, 138, 0, 0.45);
}

.brand-tagline {
    color: var(--orange);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 0.15rem;
}

/* Main content area */
.site-main {
    flex: 1;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.75rem 1rem 1.5rem;
}

/* Cards */
.card {
    background: linear-gradient(180deg, var(--black-soft), var(--black));
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(255, 138, 0, 0.2);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.7rem 1.25rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--yellow), var(--orange));
    color: var(--black);
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    text-decoration: none;
    filter: brightness(1.05);
}

/* Forms */
label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

input[type="text"],
input[type="password"],
select {
    width: 100%;
    padding: 0.65rem 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: var(--black-soft);
    color: var(--text);
    font-size: 1rem;
}

/* Duck gallery (home page) */
.duck-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.duck-tile {
    margin: 0;
    padding: 0.5rem;
    text-align: center;
}

.duck-tile img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0.5rem;
    display: block;
}

.duck-tile figcaption {
    margin-top: 0.5rem;
    color: var(--yellow);
    font-weight: 700;
    text-transform: capitalize;
}

.duck-tile-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.duck-tile-link:hover {
    text-decoration: none;
}

.duck-tile-link:hover figcaption {
    text-decoration: underline;
}

/* Found-duck list (colour stats page) */
.found-duck-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.found-duck-list li {
    padding: 0;
}

.found-duck-list li a {
    display: block;
    padding: 0.85rem 1rem;
    color: var(--text);
    font-weight: 600;
}

.found-duck-list li a:hover {
    text-decoration: none;
    color: var(--yellow);
}

/* Per-colour found breakdown (admin) */
.colour-breakdown {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.25rem;
}

.colour-breakdown th,
.colour-breakdown td {
    text-align: left;
    padding: 0.5rem 0.4rem;
    border-bottom: 1px solid var(--border);
}

.colour-breakdown th {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.colour-breakdown td {
    color: var(--text);
    text-transform: capitalize;
}

.colour-breakdown td.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Duck details page */
.duck-hero {
    background: linear-gradient(160deg, var(--yellow) 0%, var(--orange) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.duck-hero img {
    width: 100%;
    max-width: 320px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
}

.findings-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.findings-list li {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    padding: 0.75rem 1rem;
    align-items: baseline;
}

.finding-date {
    color: var(--yellow);
    font-weight: 700;
    font-size: 0.9rem;
}

.finding-finder {
    color: var(--text);
    font-weight: 600;
}

.finding-cruise {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.site-footer .disclaimer {
    color: rgba(255, 248, 232, 0.55);
}

.site-footer .copyright {
    margin-top: 0.25rem;
    color: rgba(255, 248, 232, 0.4);
}
