/* ── ProjectShoofy styles ──────────────────────────────────────────── */

:root {
    --sh-dark:       #1a1a2e;
    --sh-accent:     #4a90d9;
    --sh-muted:      #718096;
    --sh-bg:         #ede9e0;   /* matches logo_lg.png parchment background */
    --sh-bg-card:    #f5f1e8;   /* slightly lighter for card surfaces */
}


/* Camera feed container */
.sh-camera-frame {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.sh-camera-frame img {
    width: 100%;
    height: auto;
    display: block;
}

/* Logo responsive sizing */
.sh-logo-sm  { max-width: 120px; }
.sh-logo-med { max-width: 320px; }
.sh-logo-lg  { max-width: 600px; }

/* ── Clip list header bar ───────────────────────────────────────── */

.sh-clip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sh-clip-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .sh-clip-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .sh-clip-header-actions {
        width: 100%;
    }
}

/* ── Filter bar ─────────────────────────────────────────────────── */

.sh-filter-bar {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    padding: 0.45rem 0.8rem;
    background: rgba(74, 144, 217, 0.05);
    border: 1px solid rgba(74, 144, 217, 0.18);
    border-radius: 6px;
}

.sh-filter-bar-title {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--sh-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.sh-filter-title-icon {
    font-size: 0.95rem !important;
    color: var(--sh-accent);
}

.sh-filter-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.sh-filter-field-label {
    font-size: 0.75rem;
    color: var(--sh-muted);
    white-space: nowrap;
}

.sh-filter-spacer {
    flex: 1;
    min-width: 0;
}

/* ── Clip list ──────────────────────────────────────────────────── */

.sh-clip-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Card: left = data, right = thumbnail, clear border all around */
.sh-clip-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border-radius: 8px;
    overflow: hidden;
    background: var(--sh-bg-card);
    border: 1px solid rgba(0,0,0,0.13);
    box-shadow: 0 1px 3px rgba(100,80,40,0.07);
    transition: box-shadow 0.15s, background 0.15s;
}

.sh-clip-card:hover {
    background: #fff;
    box-shadow: 0 3px 12px rgba(100,80,40,0.14);
}

/* ── Left: clip data ─ */

.sh-clip-info {
    flex: 1;
    padding: 0.6rem 0.9rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.22rem;
    min-width: 0;
}

.sh-clip-date {
    font-size: 0.84rem;
    font-weight: 600;
    color: #2d3748;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sh-clip-detail-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.sh-clip-detail {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.72rem;
    color: #718096;
    white-space: nowrap;
}

.sh-detail-icon {
    font-size: 0.8rem !important;
    color: #b8c0c8;
    vertical-align: middle;
}

/* ── Right: thumbnail column ─ */

.sh-clip-thumb-col {
    position: relative;
    width: 100px;
    flex-shrink: 0;
    cursor: pointer;
    border-left: 1px solid rgba(0,0,0,0.11);
    background: #1a1a1a;
    display: flex;
    align-items: stretch;
}

/* Real thumbnail image — fills the column */
.sh-clip-thumb-img {
    width: 150px;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* No-thumbnail filler — same fixed size */
.sh-clip-thumb-filler {
    width: 100px;
    aspect-ratio: 16 / 9;
    background: #c8c0b4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
}

.sh-filler-icon {
    font-size: 1.2rem !important;
    color: #8a8078;
}

.sh-filler-label {
    font-size: 0.6rem;
    color: #8a8078;
    letter-spacing: 0.02em;
}

/* Watermark play button — always visible, subtle */
.sh-clip-play-watermark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.sh-play-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.22);
    border: 1.5px solid rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.8);
    padding-left: 2px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.35);
    transition: background 0.15s, transform 0.15s, border-color 0.15s;
}

.sh-clip-thumb-col:hover .sh-play-circle {
    background: rgba(255,255,255,0.45);
    border-color: rgba(255,255,255,0.85);
    color: #fff;
    transform: scale(1.12);
}

/* ── Lightbox video player ──────────────────────────────────────── */

.sh-lightbox-video {
    padding: 0.5rem;
    background: #000;
    border-radius: 4px;
}

/* ── Bird Diary ─────────────────────────────────────────────────── */

.sh-bird-badge {
    margin-left: 0.4rem;
    font-size: 0.95rem;
    vertical-align: middle;
}

.sh-diary-card {
    align-items: flex-start;
}

.sh-diary-species {
    margin-left: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #2f855a;
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    border-radius: 999px;
    padding: 0 0.5rem;
    vertical-align: middle;
}

.sh-diary-narrative {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.5;
}

.sh-diary-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.sh-diary-tag {
    font-size: 0.72rem;
    background: #ebf8ff;
    color: #2b6cb0;
    border: 1px solid #bee3f8;
    border-radius: 999px;
    padding: 0 0.5rem;
    line-height: 1.6;
}

/* ── About page ─────────────────────────────────────────────────── */

/* Hero: current image fades in and slowly zooms (ken-burns).
   @key on the <img> forces DOM replacement, re-triggering this animation
   each time the Blazor timer advances to the next photo.            */
@keyframes sh-about-enter {
    0%   { opacity: 0; transform: scale(1.00);                           }
    12%  { opacity: 1; transform: scale(1.00);                           }
    100% { opacity: 1; transform: scale(1.07) translate(-0.3%, -0.2%);  }
}

.sh-about-enter {
    animation: sh-about-enter 5s ease forwards;
}

@keyframes sh-pulse {
    0%, 100% { box-shadow: 0 0 0 0   rgba(74,222,128,0.7); }
    55%       { box-shadow: 0 0 0 7px rgba(74,222,128,0);   }
}

/* About content grid (cards use auto-fit so grid-template-columns is inline) */

.sh-about-card {
    background: var(--sh-bg-card);
    border: 1px solid rgba(0,0,0,0.09);
    border-radius: 14px;
    padding: 1.5rem 1.5rem 1.3rem;
    box-shadow: 0 2px 10px rgba(100,80,40,0.08);
    transition: box-shadow 0.2s, transform 0.2s;
}

.sh-about-card:hover {
    box-shadow: 0 6px 22px rgba(100,80,40,0.14);
    transform: translateY(-2px);
}

.sh-about-card-icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.6rem;
    display: block;
}

.sh-about-card-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--sh-dark);
    margin: 0 0 0.65rem;
}

.sh-about-body {
    font-size: 0.87rem;
    color: #374151;
    line-height: 1.7;
    margin: 0 0 0.5rem;
}

.sh-about-body:last-child { margin-bottom: 0; }

.sh-about-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.74rem;
    font-weight: 600;
    background: rgba(74,144,217,0.10);
    color: var(--sh-accent);
    border: 1px solid rgba(74,144,217,0.22);
    border-radius: 999px;
    padding: 0.15rem 0.6rem;
    margin-top: 0.5rem;
    margin-right: 0.3rem;
}

/* Infinite marquee film strip */
.sh-strip-outer {
    overflow: hidden;
    border-radius: 10px;
    background: var(--sh-dark);
    padding: 0.75rem 0;
    position: relative;
}

.sh-strip-outer::before,
.sh-strip-outer::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.sh-strip-outer::before {
    left: 0;
    background: linear-gradient(to right, var(--sh-dark), transparent);
}

.sh-strip-outer::after {
    right: 0;
    background: linear-gradient(to left, var(--sh-dark), transparent);
}

.sh-strip-track {
    display: inline-flex;
    gap: 8px;
    padding: 0 8px;
    animation: sh-marquee 38s linear infinite;
    will-change: transform;
}

.sh-strip-outer:hover .sh-strip-track {
    animation-play-state: paused;
}

@keyframes sh-marquee {
    to { transform: translateX(-50%); }
}

.sh-strip-img {
    flex-shrink: 0;
    width: 140px;
    height: 96px;
    object-fit: cover;
    border-radius: 7px;
    border: 2px solid rgba(255,255,255,0.06);
    transition: border-color 0.2s, transform 0.2s;
}

.sh-strip-img:nth-child(odd)  { transform: rotate(-1deg);   }
.sh-strip-img:nth-child(even) { transform: rotate( 0.8deg); }

.sh-strip-outer:hover .sh-strip-img:hover {
    border-color: var(--sh-accent);
    transform: rotate(0) scale(1.07);
    z-index: 1;
}

/* Credits */
.sh-credits-bar {
    text-align: center;
    padding: 0.5rem 0 0.25rem;
    font-size: 0.78rem;
    color: var(--sh-muted);
    letter-spacing: 0.04em;
}

.sh-credits-bar strong { color: var(--sh-dark); }
.sh-credits-sep { margin: 0 0.6rem; opacity: 0.4; }
