/*
 * Photo contest components inside the dashboard (Plan #33, 2026-11-30). Only the contest's own pieces: the page shell,
 * buttons, links, cards and forms come from the dashboard (css.php). Colors are the site's --mud.
 */
#submission-form .form-label { font-weight: 600; }
.photo-block { border: 1px solid #dee2e6; transition: box-shadow 0.2s; }
.photo-block:hover { box-shadow: 0 2px 8px rgba(84, 48, 26, 0.12); }
.photo-preview img { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); }

.submission-card { transition: transform 0.2s, box-shadow 0.2s; }
.submission-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(84, 48, 26, 0.15); }
.submission-img-wrap { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: #e9ecef; }
.submission-img { width: 100%; height: 100%; object-fit: cover; }
.category-badge { position: absolute; top: 8px; left: 8px; font-size: 0.7rem; background-color: var(--mud) !important; }
.status-badge { position: absolute; top: 8px; right: 8px; font-size: 0.7rem; }

.vote-btn { transition: all 0.2s; }
.vote-btn:hover { transform: scale(1.1); }
.vote-btn.btn-success { animation: pcVotePulse 0.3s ease; }
@keyframes pcVotePulse { 0% { transform: scale(1); } 50% { transform: scale(1.2); } 100% { transform: scale(1); } }

.card .display-6 { font-weight: 700; color: var(--mud); }

/* the contest's section links under the page header (outline = inactive, solid = this page) */
.pc-nav .btn { margin: 0 .25rem .5rem 0; }

@media print {
	.pc-nav, .btn, .vote-btn { display: none !important; }
	.card { break-inside: avoid; border: 1px solid #ddd !important; }
}

/* The contest's pages were written with Bootstrap's "primary"; on this site that is the brand brown (--mud) */
.pc-body .btn-primary, .pc-public .btn-primary { background-color: var(--mud); border-color: var(--mud); color: #fff; }
.pc-body .btn-primary:hover, .pc-public .btn-primary:hover { background-color: var(--mud-light, #68442e); border-color: var(--mud-light, #68442e); color: #fff; }
.pc-body .btn-outline-primary, .pc-public .btn-outline-primary { color: var(--mud); border-color: var(--mud); }
.pc-body .btn-outline-primary:hover, .pc-public .btn-outline-primary:hover { background-color: var(--mud); color: #fff; }
.pc-body a:not(.btn), .pc-public a:not(.btn) { color: var(--mud); }
