/* =============================================================================
   THE SPIRIT DOG — site.css
   Site-specific styles: layout, components, page styles, and dev tools.
   Loads after overrides.css.
   =============================================================================*/

/* ─── BASE LINKS ──────────────────────────────────────────────────────── */
a { color: var(--tsd-magenta); }
a:hover { color: var(--tsd-magenta-dark); }


/* ─── LEAF BACKGROUND ─────────────────────────────────────────────────── */
/* Add class="tsd-leaves" to any section to get randomly scattered leaves.
   JS in app.js populates them; count and size adapt to viewport width.
   The navbar is ~100px tall, so start leaves below that via top offset in JS. */
.tsd-leaves {
    position: relative;
    overflow: hidden;
}

.tsd-leaf-el {
    position: absolute;
    left: 0;
    top: 0;
    height: auto;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Keep section content above the leaf layer */
.tsd-leaves > *:not(.tsd-leaf-el) {
    position: relative;
    z-index: 1;
}



/* ─── NAVBAR ──────────────────────────────────────────────────────────── */
.navbar-tsd {
    background-color: var(--tsd-yellow);
    border-bottom: 1px solid var(--tsd-border-light);
}

/* Brand */
/* NAVBAR_EXPAND sync: if NAVBAR_EXPAND changes in config.php, update these breakpoints.
   sm=575.98  md=767.98  lg=991.98  xl=1199.98  xxl=1399.98 */
.navbar-tsd .navbar-brand img {
    height: 105px; /* xl + xxl */
}
@media (max-width: 1199.98px) { .navbar-tsd .navbar-brand img { height: 105px; } /* lg */ }
@media (max-width: 991.98px) { .navbar-tsd .navbar-brand img { height: 85px; } /* md */ }
@media (max-width: 767.98px) { .navbar-tsd .navbar-brand img { height: 60px; } /* sm and below */ }

/* Nav links */
.navbar-tsd .nav-link:hover,
.navbar-tsd .nav-link:focus,
.navbar-tsd .nav-link.active,
.navbar-tsd .dropdown-item:hover,
.navbar-tsd .dropdown-item:focus,
.navbar-tsd .dropdown-item.active {
    color: var(--tsd-magenta);
    text-decoration: underline;
    text-decoration-color: var(--tsd-magenta);
    text-underline-offset: 7px;
    text-decoration-thickness: 2px;
}

/* Dropdown */
.navbar-tsd .dropdown-menu {
    background-color: var(--tsd-yellow-pale);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.navbar-tsd .dropdown-item.active,
.navbar-tsd .dropdown-item:hover {
    background-color: var(--tsd-yellow-pale);
}




/* ─── SECTION THEMES ──────────────────────────────────────────────────────
   Sections default to yellow (inherited from main). Add a class to override:
   .section-white / .section-magenta / .section-blue / .section-black
────────────────────────────────────────────────────────────────────────────── */

/* ── ON WHITE ─── */
.section-white { background-color: var(--tsd-white); }
.section-white .tsd-card       { background-color: var(--tsd-white); border-color: var(--tsd-border-light); box-shadow: 0 1px 4px rgba(0,0,0,0.08); }

/* ── ON MAGENTA ─── */
.section-magenta { background-color: var(--tsd-magenta); }
.section-magenta a:not(.btn)   { color: var(--tsd-white); text-decoration: underline; }
.section-magenta a:not(.btn):hover { color: var(--tsd-yellow); }
.section-magenta h1, .section-magenta h2,
.section-magenta h3, .section-magenta h4,
.section-magenta h5, .section-magenta h6 { color: var(--tsd-white); }
.section-magenta hr            { border-color: rgba(255,255,255,0.25); }
.section-magenta .tsd-card     { background-color: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.20); color: var(--tsd-white); }
.section-magenta .text-muted   { color: rgba(255,255,255,0.70) !important; }

/* ── ON DARK BLUE ─── */
.section-blue { background-color: var(--tsd-blue); }
.section-blue a:not(.btn)      { color: var(--tsd-white); text-decoration: underline; }
.section-blue a:not(.btn):hover { color: var(--tsd-yellow); }
.section-blue h1, .section-blue h2,
.section-blue h3, .section-blue h4,
.section-blue h5, .section-blue h6 { color: var(--tsd-white); }
.section-blue hr               { border-color: rgba(255,255,255,0.25); }
.section-blue .tsd-card        { background-color: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.20); color: var(--tsd-white); }
.section-blue .text-muted      { color: rgba(255,255,255,0.70) !important; }

/* ── ON BLACK ─── */
.section-black { background-color: var(--tsd-black); }
.section-black a:not(.btn)     { color: var(--tsd-white); text-decoration: underline; }
.section-black a:not(.btn):hover { color: var(--tsd-yellow); }
.section-black h1, .section-black h2,
.section-black h3, .section-black h4,
.section-black h5, .section-black h6 { color: var(--tsd-white); }
.section-black hr              { border-color: rgba(255,255,255,0.15); }
.section-black .tsd-card       { background-color: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); color: var(--tsd-white); }

/* Cards with their own background inside dark sections — restore normal link colours */
.section-magenta .card a:not(.btn),
.section-blue    .card a:not(.btn),
.section-black   .card a:not(.btn) { color: var(--bs-link-color); }
.section-magenta .card a:not(.btn):hover,
.section-blue    .card a:not(.btn):hover,
.section-black   .card a:not(.btn):hover { color: var(--bs-link-hover-color); }
.section-black .text-muted     { color: rgba(255,255,255,0.55) !important; }


.section-orange { background-color: var(--tsd-orange); }

.section-green { background-color: var(--tsd-green); }

.section-yellow { background-color: var(--tsd-yellow); }   







/* ─── DEV BANNER ──────────────────────────────────────────────────────── */
.dev-banner {
    position: sticky;
    top: 0;
    z-index: 2000;
    font-family: monospace;
    font-size: 0.75rem;
}

.dev-banner--dev {
    background: #f59e0b;
    color: #000;
}

.dev-banner--soft-launch {
    background: #3b82f6;
    color: #fff;
}

.dev-banner__public-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.6rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    background: rgba(0,0,0,0.18);
    color: inherit;
    border: 1px solid rgba(0,0,0,0.25);
    transition: background 0.15s, opacity 0.15s;
}
.dev-banner__public-link:hover {
    background: rgba(0,0,0,0.32);
    color: inherit;
    text-decoration: none;
}


/* ─── CARDS & SHARED COMPONENTS ──────────────────────────────────────── */
.tsd-card {
    background-color: var(--tsd-white);
    border: 1px solid var(--tsd-border-light);
    border-radius: 6px;
}

.border-tsd {
    border-color: var(--tsd-border-light) !important;
}

blockquote {
    border-left: 3px solid var(--tsd-magenta);
    padding: 1rem 2rem;
}







/* ─── RECIPES ───────────────────────────────────────────────────────── */
.tsd-recipe h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--tsd-magenta);
}

.tsd-recipe-meta {
    color: #666;
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.tsd-recipe-quote {
    border-left: 3px solid var(--tsd-magenta);
    padding: 0.5rem 1rem;
    background-color: var(--tsd-yellow);
    color: var(--tsd-black);
    font-style: italic;
    font-size: 0.95rem;
    margin: 1rem 0 0;
}


/* ─── COOKIE CONSENT BANNER ──────────────────────────────────────────────── */
#tsd-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1035;
    background-color: var(--tsd-blue);
    color: var(--tsd-white);
    padding: 1rem 1.5rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.25);
}

.tsd-cookie-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.tsd-cookie-text {
    flex: 1;
    margin: 0;
    font-size: 0.9rem;
    min-width: 200px;
}

.tsd-cookie-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.tsd-recipe-quote p {
    margin: 0;
}


/* ─── ACTIVITIES — IMAGE DOWNLOAD OVERLAY ───────────────────────────── */
.tsd-img-wrap {
    display: block;
    position: relative;
}

.tsd-download-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    pointer-events: none;
    transition: background 0.15s;
}

.tsd-img-wrap:hover .tsd-download-badge {
    background: rgba(0, 0, 0, 0.8);
}


/* ─── ACTIVITIES — DOWNLOAD TILES ───────────────────────────────────── */
.tsd-download-tile {
    background-color: var(--tsd-white);
    border: 1px solid var(--tsd-border-light);
    color: var(--tsd-black);
    transition: border-color 0.2s, background-color 0.2s, color 0.2s;
    min-height: 90px;
    border-radius: 6px;
}

.tsd-download-tile:hover {
    border-color: var(--tsd-magenta);
    background-color: var(--tsd-yellow);
    color: var(--tsd-magenta);
}

.tsd-pdf-icon {
    font-size: 1.4rem;
}

.tsd-dl-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
    margin-top: 0.2rem;
}


/* ─── PHOTO GALLERY ─────────────────────────────────────────────────── */
.tsd-gallery-thumb {
    cursor: pointer;
    outline: none;
}

.tsd-gallery-img-wrap {
    overflow: hidden;
    border-radius: 6px;
}

.tsd-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s, transform 0.25s;
}

.tsd-gallery-thumb:hover .tsd-gallery-img,
.tsd-gallery-thumb:focus .tsd-gallery-img {
    opacity: 0.85;
    transform: scale(1.04);
}

.tsd-gallery-caption {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

.tsd-gallery-caption--top    { margin-bottom: 0.35rem; }
.tsd-gallery-caption--bottom { margin-top: 0.35rem; }

.tsd-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 1.8rem;
    line-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 8px;
    cursor: pointer;
    transition: background 0.15s;
    z-index: 10;
}

.tsd-gallery-nav:disabled {
    opacity: 0.2;
    cursor: default;
}

.tsd-gallery-nav:not(:disabled):hover { background: rgba(0, 0, 0, 0.8); }
.tsd-gallery-nav--prev { left: 12px; }
.tsd-gallery-nav--next { right: 12px; }




/* ─── ROLL OF HONOUR ────────────────────────────────────────────────── */
.tsd-roll-of-honour {
    column-count: 1;
    column-gap: 1.5rem;
}
@media (min-width: 576px)  { .tsd-roll-of-honour { column-count: 2; } }
@media (min-width: 768px)  { .tsd-roll-of-honour { column-count: 3; } }
@media (min-width: 992px)  { .tsd-roll-of-honour { column-count: 4; } }

.tsd-honour-name {
    padding: 0.2rem 0;
    border-bottom: 1px solid var(--tsd-border-light);
    break-inside: avoid;
}


/* ─── CREATIVE TEAM ─────────────────────────────────────────────────── */
.tsd-avatar-placeholder {
    width: 100px;
    height: 100px;
    background-color: var(--tsd-yellow);
    border: 1px solid var(--tsd-border-light);
    font-size: 0.7rem;
    color: #888;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
