/* =============================================================================
   chickens.css — Styles for the /chickens/ section only.
   Site-wide styles live in /css/main.css.
   ============================================================================= */

/* =============================================================================
   FLOCK INDEX PAGE  (/chickens/)
   ============================================================================= */

.flock-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
}

.flock-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.flock-intro h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.flock-intro__lead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-dark);
    max-width: 680px;
    margin: 0 auto 1rem;
}

.flock-intro__twitch-cta {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.flock-intro__twitch-cta a {
    color: #9146FF;
    font-weight: 700;
    text-decoration: none;
}

.flock-intro__twitch-cta a:hover {
    text-decoration: underline;
}

.flock-intro__brief {
    font-size: 1rem;
    font-style: italic;
    color: var(--text-muted);
}

/* Grid of hen cards */
.flock-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.flock-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: var(--white);
    border: 2px solid var(--light-orange);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.flock-card:hover {
    border-color: var(--primary-orange);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 123, 0, 0.13);
}

/* Photo area — holds image when present; shows placeholder when absent */
.flock-card__photo-area {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: var(--bg-color);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.flock-card__photo-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.flock-card__placeholder-icon {
    font-size: 3.5rem;
    opacity: 0.25;
    user-select: none;
}

/* Card text body */
.flock-card__body {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
}

.flock-card__name {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-orange);
    margin: 0;
    line-height: 1.2;
}

.flock-card__breed {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin: 0;
    font-family: 'Nunito', sans-serif;
}

.flock-card__tagline {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-style: italic;
    margin: 0.2rem 0 0;
    line-height: 1.45;
}

/* In Memoriam quiet link */
.flock-memoriam-link {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--light-orange);
}

.flock-memoriam-link a {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    font-family: 'Nunito', sans-serif;
}

.flock-memoriam-link a:hover {
    color: var(--dark-orange);
    text-decoration: underline;
}

/* =============================================================================
   INDIVIDUAL HEN BIO PAGE
   ============================================================================= */

.hen-page {
    max-width: 780px;
    margin: 0 auto;
    padding: 2.5rem 2rem 5rem;
}

/* Breadcrumb */
.hen-breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-family: 'Nunito', sans-serif;
}

.hen-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

.hen-breadcrumb a:hover {
    color: var(--primary-orange);
    text-decoration: underline;
}

.hen-breadcrumb__sep {
    margin: 0 0.4rem;
    opacity: 0.4;
}

/* Hero */
.hen-hero {
    margin-bottom: 1.75rem;
}

.hen-hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 0.4rem;
}

.hen-tagline {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Photo — only rendered when $hen_photo is set */
.hen-photo {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    border-radius: 16px;
    margin: 1.5rem 0;
    display: block;
    border: 3px solid var(--light-orange);
}

/* Bio text */
.hen-bio {
    margin: 1.5rem 0 2.5rem;
}

.hen-bio p {
    font-size: 1.1rem;
    line-height: 1.78;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.hen-bio p:last-child {
    margin-bottom: 0;
}

/* Section headers */
.hen-section {
    margin: 2.75rem 0;
}

.hen-section h2 {
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-orange);
}

/* Quick Facts definition list */
.quick-facts {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.55rem 1.5rem;
    font-size: 1.05rem;
}

.quick-facts dt {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    color: var(--dark-orange);
    white-space: nowrap;
}

.quick-facts dd {
    color: var(--text-dark);
    margin: 0;
}

.quick-facts dd a {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 600;
}

.quick-facts dd a:hover {
    text-decoration: underline;
}

/* How to Spot */
.hen-spot-text {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.hen-spot-text a,
.hen-spot-text strong a {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 600;
}

.hen-spot-text a:hover {
    text-decoration: underline;
}

.hen-twitch-cta {
    display: inline-block;
    background: #9146FF;
    color: var(--white);
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 0 #5c16c5;
    transition: transform 0.1s, box-shadow 0.1s;
}

.hen-twitch-cta:hover {
    color: var(--white);
    transform: translateY(2px);
    box-shadow: 0 2px 0 #5c16c5;
}

.hen-twitch-cta:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 #5c16c5;
}

/* Relationships */
.hen-relationships-text {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.hen-relationships-text a {
    color: var(--primary-orange);
    text-decoration: none;
}

.hen-relationships-text a:hover {
    text-decoration: underline;
}

.hen-closing-note {
    font-style: italic;
    color: var(--text-muted);
    font-size: 1.05rem;
    margin: 0.5rem 0 0;
}

/* Chat command note */
.hen-command-note {
    background: var(--bg-color);
    border-left: 4px solid var(--primary-orange);
    border-radius: 0 8px 8px 0;
    padding: 1rem 1.5rem;
    margin-top: 2.5rem;
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.hen-command-note code {
    background: rgba(255, 123, 0, 0.12);
    color: var(--dark-orange);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.95em;
}

/* =============================================================================
   IN MEMORIAM PAGE
   ============================================================================= */

.memoriam-page {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
}

.memoriam-page > h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.memoriam-intro {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-dark);
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--light-orange);
}

/* Memorial entries */
.memoriam-entry {
    margin: 0 0 3.5rem;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid var(--light-orange);
}

.memoriam-entry:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.memoriam-entry h2 {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
}

.memoriam-dates {
    display: block;
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
}

.memoriam-entry p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.memoriam-entry p:last-of-type {
    margin-bottom: 0;
}

.memoriam-entry a {
    color: var(--primary-orange);
    text-decoration: none;
}

.memoriam-entry a:hover {
    text-decoration: underline;
}

/* Command note — quieter styling than the bio pages */
.memoriam-command-note {
    background: var(--bg-color);
    border-left: 3px solid var(--light-orange);
    border-radius: 0 6px 6px 0;
    padding: 0.75rem 1.25rem;
    margin-top: 1.75rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
}

.memoriam-command-note code {
    font-style: normal;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.9em;
}

/* Closing note */
.memoriam-closing {
    text-align: center;
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--light-orange);
    line-height: 1.75;
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 768px) {
    .flock-intro h1 {
        font-size: 2.25rem;
    }

    .flock-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .hen-hero h1 {
        font-size: 2.5rem;
    }

    .quick-facts {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }

    .quick-facts dd {
        padding-left: 0.75rem;
        margin-bottom: 0.6rem;
        color: var(--text-muted);
    }

    .hen-page,
    .flock-page,
    .memoriam-page {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
