/* ==========================================================================
   base.css — project-level styles (replaces Canvas theme CSS where possible)
   ========================================================================== */

/* Design System — Refined Gold
   Shared CSS custom properties used across all pages
   ========================================================================== */

:root {
    --uv-gold: #c8a84e;
    --uv-gold-light: #e8d48b;
    --uv-gold-dark: #9a7b2f;
    --uv-dark: #1a1a2e;
    --uv-dark-soft: #2d2d44;
    --uv-text: #2c2c2c;
    --uv-text-muted: #6c6c7a;
    --uv-bg-warm: #faf8f5;
    --uv-border: #e8e4dc;
    --uv-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --uv-shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --uv-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.14);
    --uv-radius: 6px;
    --uv-transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Ticker / Marquee (was: quotes.css)
   ========================================================================== */

#TickerLineMarquee {
    position: relative;
    width: 100%;
    height: 24px;
    margin: 0 auto;
    white-space: nowrap;
    overflow: hidden;
    box-sizing: border-box;
}

#TickerLineMarquee span {
    position: absolute;
    top: 0;
    bottom: 0;
    padding-top: 4px;
    padding-bottom: 4px;
    padding-left: 100%;
    animation: marquee 40s linear infinite;
    font-size: .75rem;
}

#TickerLineMarquee span:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0%   { opacity: 0; }
    1%   { opacity: 1; transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

@media (prefers-reduced-motion: reduce) {
    #TickerLineMarquee {
        white-space: normal;
    }

    #TickerLineMarquee span {
        animation: none;
        padding-left: 0;
    }
}

/* Breadcrumbs — Refined Gold
   ========================================================================== */

.uv-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .15rem;
    list-style: none;
    padding: .55rem .85rem;
    margin: 0 0 1.1rem;
    background: #faf7f0;
    border: 1px solid #ede5d0;
    border-radius: 8px;
    font-size: .78rem;
    font-weight: 500;
    color: #8a7a5a;
}

.uv-breadcrumb-item a {
    color: #5a5040;
    text-decoration: none;
    transition: color .2s;
}

.uv-breadcrumb-item a:hover {
    color: #c8a84e;
}

.uv-breadcrumb-item + .uv-breadcrumb-item::before {
    content: "\203A";
    padding: 0 .35rem;
    color: #c8a84e;
    font-weight: 600;
    font-size: .85rem;
}

.uv-breadcrumb-item.active {
    color: #1a1a1a;
    font-weight: 600;
}

/* Events Sidebar Cards — used on homepage and expo/org-detail
   ========================================================================== */

.uv-event-card {
    border: 1px solid var(--uv-border);
    border-left: 3px solid var(--uv-gold);
    border-radius: var(--uv-radius);
    padding: .85rem;
    margin-bottom: .75rem;
    transition: all var(--uv-transition);
    background: #fff;
}

.uv-event-card:hover {
    border-left-color: var(--uv-gold-dark);
    box-shadow: var(--uv-shadow-sm);
    transform: translateX(2px);
}

.uv-event-card .uv-event-banner {
    text-align: center;
    margin-bottom: .6rem;
    padding: .5rem;
    background: var(--uv-bg-warm);
    border-radius: 4px;
}

.uv-event-card .uv-event-banner img {
    max-height: 80px;
    width: auto;
}

.uv-event-card h3 {
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: .5rem;
}

.uv-event-card h3 a {
    color: var(--uv-text);
    text-decoration: none;
    transition: color var(--uv-transition);
}

.uv-event-card h3 a:hover {
    color: var(--uv-gold-dark);
}

.uv-event-detail {
    font-size: .8rem;
    color: var(--uv-text-muted);
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .3rem;
}

.uv-event-detail i {
    color: var(--uv-gold);
    width: 1rem;
    text-align: center;
}

/* Branding Header (creative advertising background)
   ========================================================================== */

/* Mobile banner image — visible only on small screens */
#BrandHeader {
    text-align: center;
    overflow: hidden;
}

/* Spacer image — desktop only, creates room for background-image on body */
.uv-brand-img-1 {
    display: none;
}

/* Mobile banner — hidden on desktop where body background is used */
.uv-brand-img-2 {
    display: inline-block;
    max-width: 480px;
    width: 100%;
    height: auto;
}

@media (min-width: 1200px) {
    /* On desktop: show spacer to push content down, hide mobile image */
    .uv-brand-img-1 {
        display: block;
        width: 100%;
        height: 200px;
        pointer-events: none;
    }

    .uv-brand-img-2 {
        display: none;
    }

    .advance {
        cursor: pointer;
    }

    /* Wrapper width — matches original Canvas layout */
    #wrapper {
        max-width: 1080px;
        margin: 0 auto;
    }

    /* Override Bootstrap container to match wrapper */
    .container {
        max-width: 1080px;
    }
}

/* CKEditor 5 content styles (was: ck-style.css)
   Used in editor (CKEDITOR_5_CUSTOM_CSS) and on public pages for rendered content
   ========================================================================== */

.ck-style-title {
    font-size: 50px;
    font-weight: 700;
    border: 0;
}

.ck-style-callout {
    --border-color: #e91e1e;
    padding: 1.2em 2em;
    border: 1px solid var(--border-color);
    border-left: 10px solid var(--border-color);
    background: #fff9fb;
    border-radius: 5px;
    margin: 1.5em 2em;
    box-shadow: 5px 5px 0 #ffe6ef;
}

.ck-style-needs-clarification {
    outline: 1px dashed #c8a24b;
    background: #ffe19c;
    border-radius: 2px;
    position: relative;
}

.ck-style-wide-spacing {
    letter-spacing: .3em;
}

/* GoToTop button (was: Canvas SEMICOLON.initialize.goToTop)
   ========================================================================== */

#gotoTop {
    display: none;
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1040;
    width: 2.5rem;
    height: 2.5rem;
    line-height: 2.5rem;
    text-align: center;
    font-size: 1rem;
    color: #fff;
    background: rgba(0, 0, 0, .35);
    border-radius: 50%;
    cursor: pointer;
    transition: background .2s, opacity .3s;
}

#gotoTop:hover {
    background: rgba(0, 0, 0, .6);
}
