/* =============================================================================
   Hennsylvania — Main Stylesheet
   ============================================================================= */

/* ---- Custom Properties ---- */
:root {
    --primary-orange: #ff7b00;
    --light-orange: #ffe0b2;
    --dark-orange: #e65c00;
    --yellow: #ffb703;
    --white: #ffffff;
    --text-dark: #333333;
    --text-muted: #888888;
    --bg-color: #fff9f2;
}

/* ---- Reset ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ---- Base ---- */
body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-family: 'Fredoka', sans-serif;
    color: var(--dark-orange);
}

/* ---- Layout ---- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* =============================================================================
   SITE NAV
   ============================================================================= */

.site-nav {
    background: var(--white);
    border-bottom: 2px solid var(--light-orange);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-nav__brand {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark-orange);
    text-decoration: none;
    white-space: nowrap;
}

.site-nav__brand:hover {
    color: var(--primary-orange);
}

.site-nav__links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.site-nav__links a {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.site-nav__links a:hover {
    background: var(--light-orange);
    color: var(--dark-orange);
}

.site-nav__links a[aria-current="page"] {
    background: var(--light-orange);
    color: var(--dark-orange);
    font-weight: 800;
}

.site-nav__links .nav-twitch {
    background: #9146FF;
    color: var(--white);
    border-radius: 50px;
    padding: 0.4rem 1rem;
}

.site-nav__links .nav-twitch:hover {
    background: #7c3de0;
    color: var(--white);
}

/* =============================================================================
   HERO
   ============================================================================= */

.site-hero {
    text-align: center;
    padding: 3.5rem 1rem 2.5rem;
    background: var(--bg-color);
}

.site-hero h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.08);
    margin-bottom: 0.5rem;
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--text-dark);
    font-weight: 600;
    max-width: 600px;
    margin: 0 auto 1.75rem;
}

/* ---- Feeder Status ---- */

.feeder-status {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 1.1rem 1.4rem;
    border-radius: 12px;
    border-left: 5px solid;
    max-width: 520px;
    margin: 0 auto 1.75rem;
    text-align: left;
    font-family: 'Nunito', sans-serif;
}

.feeder-status__indicator {
    font-size: 1.05rem;
    line-height: 1;
    margin-bottom: 0.1rem;
}

.feeder-status strong {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    display: block;
}

.feeder-status p {
    font-size: 0.92rem;
    margin: 0;
    line-height: 1.55;
    opacity: 0.9;
}

.feeder-status__dawn-time {
    font-weight: 700;
    opacity: 1;
}

.feeder-status .btn {
    margin-top: 0.6rem;
    font-size: 1rem;
    padding: 0.6rem 1.35rem;
    box-shadow: none;
}

.feeder-status .btn:hover {
    transform: none;
    box-shadow: none;
    opacity: 0.88;
}

/* State: online */
.feeder-status--online {
    background: #edfff4;
    border-color: #52c87a;
    color: #1a6b3a;
}

/* State: roosting */
.feeder-status--roosting {
    background: #f0f4ff;
    border-color: #7b93cc;
    color: #2d4080;
}

/* State: maintenance */
.feeder-status--maintenance {
    background: #fff9e6;
    border-color: #e8a500;
    color: #7a5200;
}

/* CTA button modifiers used inside feeder-status */
.btn--primary {
    background-color: #9146FF;
    color: var(--white);
}

.btn--secondary {
    background-color: var(--primary-orange);
    color: var(--white);
}

/* ---- Hero CTAs ---- */

.hero-ctas {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hero-flock-link {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-orange);
    text-decoration: none;
    transition: color 0.15s;
}

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

/* =============================================================================
   TWITCH PREVIEW
   ============================================================================= */

.twitch-preview-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
}

.twitch-preview-link {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 3px solid var(--primary-orange);
    box-shadow: 0 10px 25px rgba(255, 123, 0, 0.15);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.twitch-preview-link:hover {
    border-color: #9146FF;
    box-shadow: 0 12px 32px rgba(145, 70, 255, 0.22);
}

.twitch-preview-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.twitch-preview-placeholder {
    aspect-ratio: 16 / 9;
    background: #18181b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--white);
    font-family: 'Fredoka', sans-serif;
}

.twitch-preview-placeholder__icon {
    font-size: 4rem;
    line-height: 1;
}

.twitch-preview-placeholder__name {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    opacity: 0.8;
}

.twitch-preview-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.twitch-preview-live-badge {
    display: inline-block;
    background: #eb0400;
    color: var(--white);
    font-family: 'Nunito', sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
}

/* =============================================================================
   BUTTONS
   ============================================================================= */

.btn {
    display: inline-block;
    text-align: center;
    background-color: var(--primary-orange);
    color: var(--white);
    font-family: 'Fredoka', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 6px 0 var(--dark-orange);
    transition: transform 0.1s, box-shadow 0.1s;
    white-space: nowrap;
}

.btn:hover {
    color: var(--white);
    transform: translateY(2px);
    box-shadow: 0 4px 0 var(--dark-orange);
}

.btn:active {
    transform: translateY(6px);
    box-shadow: 0 0 0 var(--dark-orange);
}

.btn.yellow {
    background-color: var(--yellow);
    color: var(--text-dark);
    box-shadow: 0 6px 0 #cc9200;
}

.btn.yellow:hover {
    color: var(--text-dark);
    box-shadow: 0 4px 0 #cc9200;
}

.btn.yellow:active {
    box-shadow: 0 0 0 #cc9200;
    color: var(--text-dark);
}

.btn.purple {
    background-color: #9146FF;
    box-shadow: 0 6px 0 #5c16c5;
}

.btn.purple:hover {
    color: var(--white);
    box-shadow: 0 4px 0 #5c16c5;
}

.btn.purple:active {
    box-shadow: 0 0 0 #5c16c5;
}

.btn.blue {
    background-color: #00a8e8;
    box-shadow: 0 6px 0 #0077a3;
}

.btn.blue:hover {
    color: var(--white);
    box-shadow: 0 4px 0 #0077a3;
}

.btn.blue:active {
    box-shadow: 0 0 0 #0077a3;
}

/* =============================================================================
   CONTENT SECTIONS
   ============================================================================= */

.section-box {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 2px solid var(--light-orange);
}

.section-box h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.section-intro {
    font-size: 1.1rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--text-dark);
}

/* =============================================================================
   WHAT IS HENNSYLVANIA?
   ============================================================================= */

.what-is-body p {
    font-size: 1.15rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
    line-height: 1.75;
}

.what-is-ctas {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* =============================================================================
   MEET THE FLOCK (homepage grid)
   ============================================================================= */

.homepage-flock-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 1.25rem;
    margin: 0 0 2.5rem;
}

.homepage-flock-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid var(--light-orange);
    background: var(--white);
    transition: border-color 0.2s, transform 0.18s;
}

.homepage-flock-card:hover {
    border-color: var(--primary-orange);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255, 123, 0, 0.12);
}

.homepage-flock-card__photo {
    aspect-ratio: 1;
    background: var(--light-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    overflow: hidden;
}

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

.homepage-flock-card__info {
    padding: 0.65rem 0.75rem 0.75rem;
}

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

.homepage-flock-card__tagline {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.homepage-flock-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

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

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

/* =============================================================================
   HOW TO FEED THE FLOCK
   ============================================================================= */

.feed-intro-block {
    max-width: 780px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.feed-intro-block p {
    font-size: 1.05rem;
    margin-bottom: 0.85rem;
    line-height: 1.7;
}

.feed-modes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.feed-mode {
    background: var(--bg-color);
    border: 2px solid var(--light-orange);
    border-radius: 16px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
}

.feed-mode h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.6rem;
    color: var(--dark-orange);
    margin-bottom: 0.5rem;
}

.feed-mode>p {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
}

.feed-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    flex: 1;
}

.feed-list>li {
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 0.55rem 0.75rem 0.55rem 1rem;
    border-left: 3px solid var(--primary-orange);
}

.bits-levels {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 1.25rem;
    margin-top: 0.4rem;
    padding-left: 0;
}

.bits-levels li {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.feed-mode__cta {
    margin-top: 1.5rem;
}

.feed-footer-cta {
    text-align: center;
}

/* =============================================================================
   CHAT COMMANDS
   ============================================================================= */

.cmd-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.cmd-category h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.3rem;
    color: var(--dark-orange);
    margin-bottom: 0.85rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--light-orange);
}

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

.cmd-row {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.cmd-row dt {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    flex-shrink: 0;
}

.cmd-row dd {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ---- cmd-tag (shared with old commands-grid, kept for backward compat) ---- */

.commands-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.cmd-tag {
    display: inline-block;
    background: var(--light-orange);
    color: var(--dark-orange);
    padding: 0.3rem 0.7rem;
    border-radius: 8px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    transition: all 0.15s;
    white-space: nowrap;
}

.cmd-tag:hover {
    background: var(--primary-orange);
    color: var(--white);
    transform: scale(1.04);
}

/* =============================================================================
   FEEDING GUIDE — details / summary accordion (kept for any future use)
   ============================================================================= */

details {
    background: var(--bg-color);
    border: 2px solid var(--light-orange);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
}

details[open] {
    border-color: var(--primary-orange);
    box-shadow: 0 5px 15px rgba(255, 123, 0, 0.1);
}

summary {
    padding: 1.5rem;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark-orange);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

summary::-webkit-details-marker {
    display: none;
}

summary:hover {
    background: var(--light-orange);
}

.details-content {
    padding: 0 1.5rem 1.5rem;
    font-size: 1.1rem;
}

.summary-title {
    flex: 1;
}

.badge {
    display: inline-block;
    background: var(--yellow);
    color: var(--text-dark);
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 800;
    flex-shrink: 0;
    vertical-align: middle;
}

.expand-ctrl {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    gap: 1px;
}

.expand-arrow {
    font-size: 1rem;
    color: var(--primary-orange);
    transition: transform 0.3s ease;
    line-height: 1;
}

details[open] .expand-arrow {
    transform: rotate(180deg);
}

.expand-label {
    font-size: 0;
}

.expand-label::after {
    content: 'expand';
    font-size: 0.55rem;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-orange);
}

details[open] .expand-label::after {
    content: 'collapse';
}

/* =============================================================================
   TESTIMONIALS
   ============================================================================= */

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 15px;
    position: relative;
    border: 2px dashed var(--light-orange);
}

.testimonial::before {
    content: '\201C';
    font-family: 'Fredoka', sans-serif;
    font-size: 5rem;
    color: var(--light-orange);
    position: absolute;
    top: -10px;
    left: 20px;
    opacity: 0.5;
}

.testimonial p {
    font-size: 1.2rem;
    font-style: italic;
    position: relative;
    z-index: 1;
    margin-bottom: 1rem;
}

.testimonial h4 {
    text-align: right;
    font-size: 1.1rem;
    color: var(--primary-orange);
}

/* =============================================================================
   SITE FOOTER
   ============================================================================= */

.site-footer {
    text-align: center;
    padding: 2.5rem 2rem;
    border-top: 2px solid var(--light-orange);
    margin-top: 4rem;
    background: var(--white);
}

.site-footer__links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 2rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.site-footer__links a {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.site-footer__links a:hover {
    color: var(--primary-orange);
}

.site-footer__copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: 'Nunito', sans-serif;
}

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

@media (max-width: 900px) {
    .feed-modes {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .site-hero h1 {
        font-size: 2.3rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .section-box {
        padding: 1.75rem 1.25rem;
    }

    .section-box h2 {
        font-size: 2rem;
    }

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

    .cmd-categories {
        grid-template-columns: 1fr;
    }

    summary {
        flex-wrap: wrap;
    }

    .summary-title {
        flex: 0 0 100%;
    }

    .expand-ctrl {
        margin-left: auto;
    }

    .site-nav__inner {
        padding: 0.75rem 1rem;
    }

    .site-nav__links a {
        font-size: 0.85rem;
        padding: 0.3rem 0.5rem;
    }

    .twitch-preview-wrap {
        padding: 0 1rem 2rem;
    }
}

@media (min-width: 600px) {
    .hero-ctas {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 769px) {
    .site-hero {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: center;
        gap: 2rem 3rem;
        text-align: left;
    }

    .hero-logo {
        flex: 1 1 300px;
        max-width: 560px;
    }

    .hero-tagline {
        margin-left: 0;
        margin-right: 0;
    }

    .feeder-status {
        flex: 0 1 420px;
        margin: 0;
    }

    .hero-ctas {
        flex: 0 0 100%;
        justify-content: flex-start;
    }
}