/**
 * Telara shared components (tl-*): panels, buttons, tags, icon slots, the gold ornament, section titles.
 * Loaded on every page after telara-refresh.css. Used by the home page (home/*.php, css/home.css),
 * the Android download page (css/android-download.css) and the event calendar (css/event-calendar.css).
 * Colours: --tl-* tokens in variables.css. Docs: docs/systems/TELARA_THEME.md.
 */

.tl-wrap {
    width: min(1170px, 100% - 32px);
    margin: 0 auto;
}

/* ------------------------------------------------------------------
 * Shared pieces
 * ------------------------------------------------------------------ */
.tl-panel {
    position: relative;
    border: 1px solid transparent;
    border-radius: 4px;
    background: var(--tl-panel-bg);
    box-shadow: var(--tl-panel-shadow);
    color: var(--tl-parchment);
}

.tl-panel__title {
    margin: 0;
    padding: 18px 20px 4px;
    color: var(--tl-title);
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
}

.tl-orn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(220px, 70%);
    margin: 10px auto 0;
}

.tl-orn::before,
.tl-orn::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--tl-bronze) 60%, var(--tl-gold));
}

.tl-orn::after {
    background: linear-gradient(270deg, transparent, var(--tl-bronze) 60%, var(--tl-gold));
}

.tl-orn i {
    flex: none;
    width: 7px;
    height: 7px;
    background: var(--tl-gold-hero);
    transform: rotate(45deg);
    box-shadow: 0 0 6px rgba(230, 195, 92, 0.55);
}

.tl-orn--left {
    margin-left: 0;
}

.tl-icon {
    width: 22px;
    height: 22px;
    flex: none;
}

.tl-slot {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 4px;
    background: radial-gradient(circle at 50% 35%, #2a2219, var(--tl-void) 75%);
    border: 1px solid var(--tl-bronze-deep);
    box-shadow: 0 0 0 1px var(--tl-frame-outer), inset 0 0 10px rgba(0, 0, 0, 0.8);
    color: var(--tl-gold-hero);
}

.tl-slot--lg {
    width: 56px;
    height: 56px;
}

.tl-slot--xl {
    width: 64px;
    height: 64px;
}

.tl-slot--xl .tl-icon {
    width: 32px;
    height: 32px;
}

.tl-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tl-ok);
    box-shadow: 0 0 0 3px rgba(123, 227, 138, 0.15);
}

.tl-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border: 1px solid var(--tl-bronze-deep);
    border-radius: 2px;
    background: rgba(10, 9, 7, 0.65);
    color: var(--tl-muted);
    font-family: var(--font-heading);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.4;
    text-transform: uppercase;
    white-space: nowrap;
}

.tl-tag--gold {
    color: var(--tl-ink);
    background: linear-gradient(180deg, #f6dc8a, var(--tl-gold));
    border-color: var(--tl-gold-pale);
}

.tl-tag--warn {
    color: var(--tl-warning);
    border-color: rgba(242, 197, 127, 0.5);
    background: #3a2c14;
}

.tl-btn,
a.tl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 3px;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.tl-btn .tl-icon {
    width: 18px;
    height: 18px;
}

.tl-btn--gold,
a.tl-btn--gold {
    color: var(--tl-ink);
    background: var(--tl-gold-button);
    border-color: var(--tl-gold-pale);
    box-shadow: 0 0 0 1px var(--tl-frame-outer), inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 0 rgba(90, 60, 10, 0.25), 0 8px 22px -8px rgba(230, 195, 92, 0.45);
}

.tl-btn--gold:hover,
.tl-btn--gold:focus,
a.tl-btn--gold:hover,
a.tl-btn--gold:focus {
    color: var(--tl-ink);
    background: var(--tl-gold-button-hover);
    text-decoration: none;
}

.tl-btn--dark,
a.tl-btn--dark {
    color: var(--tl-parchment);
    background: var(--tl-dark-button);
    border-color: var(--tl-bronze);
    box-shadow: 0 0 0 1px var(--tl-frame-outer), inset 0 1px 0 rgba(255, 230, 155, 0.08);
}

.tl-btn--dark:hover,
.tl-btn--dark:focus,
a.tl-btn--dark:hover,
a.tl-btn--dark:focus {
    color: var(--tl-gold-pale);
    border-color: var(--tl-bronze-light);
    text-decoration: none;
}

.tl-btn--lg,
a.tl-btn--lg {
    min-height: 54px;
    padding: 0 24px;
}

.tl-link {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tl-gold-pale);
}

.tl-link:hover,
.tl-link:focus {
    color: #fff3c8;
}

.tl-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin: 0 0 8px;
    color: var(--tl-gold);
    font-size: 0.8125rem;
}

.tl-empty {
    padding: 14px 20px;
    color: var(--tl-faint);
}

/* Section headings */
.tl-sec {
    margin-top: 64px;
}

.tl-sec__head {
    position: relative;
    margin-bottom: 26px;
    text-align: center;
}

.tl-sec__title {
    margin: 0;
    color: var(--tl-title);
    font-size: 1.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.tl-sec__head .tl-orn {
    width: 240px;
    margin-top: 12px;
}

.tl-sec__more {
    position: absolute;
    right: 0;
    bottom: 6px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tl-gold-pale);
}

.tl-sec__more:hover,
.tl-sec__more:focus {
    color: #fff3c8;
}

/* Inside the left column of the premiere layout */
.tl-sec-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 4px 0 18px;
}

.tl-sec-title h2 {
    margin: 0;
    color: var(--tl-title);
    font-size: 1.375rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tl-sec-title::after {
    content: '';
    order: 2;
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--tl-bronze), transparent);
}

.tl-sec-title .tl-sec__more {
    position: static;
    order: 3;
}

/* Ribbon on a tile ("New"), like WKRÓTCE in the app */
.tl-ribbon {
    position: absolute;
    top: 16px;
    right: -34px;
    width: 130px;
    padding: 4px 0;
    transform: rotate(38deg);
    text-align: center;
    font-family: var(--font-heading);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffe9d6;
    background: linear-gradient(180deg, #a3321f, #6e1e12);
    box-shadow: 0 0 0 1px rgba(255, 200, 160, 0.35), 0 4px 10px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

/* One entrance on load, then nothing moves */
@keyframes tl-rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}
