/*-------------------------------------------------------+
| Teamliste Infusion – Frontend Styles
| Author: KrazzFM Development
| Design: KrazzFM Dark Theme – Flip-Cards
+--------------------------------------------------------*/

/* ── Abschnittstitel (Positionen) ───────────────────── */
.tl-section-title {
    font-size: 1.2em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin: 36px 0 20px;
    padding: 10px 16px;
    background: #1a1a1a;
    border-left: 4px solid #32cd32;
    border-radius: 0 4px 4px 0;
    color: #32cd32;
}
.tl-section-title:first-child {
    margin-top: 8px;
}

/* ── Grid ───────────────────────────────────────────── */
.tl-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 8px;
}

/* ── Flip-Card Wrapper ──────────────────────────────── */
.tl-card {
    width: calc(25% - 14px);
    aspect-ratio: 3 / 4;
    box-sizing: border-box;
    perspective: 1000px;
    cursor: default;
}

/* ── Innere Flip-Einheit ────────────────────────────── */
.tl-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform .55s cubic-bezier(.4, 0, .2, 1);
}
.tl-card:hover .tl-card-inner {
    transform: rotateY(180deg);
}

/* ── Gemeinsame Stile Vorder- & Rückseite ───────────── */
.tl-front,
.tl-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 6px;
    overflow: hidden;
    box-sizing: border-box;
}

/* ════════════════════════════════════════════════════ */
/* VORDERSEITE                                         */
/* ════════════════════════════════════════════════════ */
.tl-front {
    background: #1e1e1e;
    border: 1px solid #2e2e2e;
    display: flex;
    flex-direction: column;
}
.tl-card:hover .tl-front {
    pointer-events: none;
}

/* Avatar füllt den oberen Bereich komplett */
.tl-front-avatar {
    width: 100%;
    flex: 1 1 auto;
    object-fit: cover;
    object-position: center top;
    display: block;
    min-height: 0;
}

/* Namensleiste unten */
.tl-front-footer {
    flex: 0 0 auto;
    background: #111;
    border-top: 3px solid #32cd32;
    padding: 10px 12px;
    text-align: center;
}
.tl-front-name {
    font-size: 1em;
    font-weight: 700;
    color: #f0f0f0;
    margin: 0;
    word-break: break-word;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tl-front-position {
    font-size: .75em;
    color: #32cd32;
    margin: 3px 0 0;
    text-transform: uppercase;
    letter-spacing: .05em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ════════════════════════════════════════════════════ */
/* RÜCKSEITE                                           */
/* ════════════════════════════════════════════════════ */
.tl-back {
    background: #1a1a1a;
    border: 1px solid #2e2e2e;
    border-top: 3px solid #32cd32;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    text-align: center;
    overflow: hidden;
}

/* Scrollbarer Content-Bereich der Rückseite */
.tl-back-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 20px 16px 10px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

/* Kleiner runder Avatar auf der Rückseite */
.tl-back-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 3px solid #32cd32;
    margin-bottom: 10px;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px #1a1a1a, 0 0 0 5px #2a2a2a;
}

.tl-back-name {
    font-size: 1em;
    font-weight: 700;
    color: #f0f0f0;
    margin: 0 0 2px;
    word-break: break-word;
}
.tl-back-realname {
    font-size: .78em;
    color: #777;
    margin: 0 0 6px;
}
.tl-back-position {
    font-size: .75em;
    color: #32cd32;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin: 0 0 10px;
}

/* Trennlinie */
.tl-back-divider {
    width: 40px;
    height: 2px;
    background: #32cd32;
    opacity: .4;
    margin: 0 auto 10px;
    flex-shrink: 0;
}

.tl-back-since {
    font-size: .74em;
    color: #32cd32;
    opacity: .8;
    margin: 0 0 8px;
}
.tl-back-since i {
    margin-right: 4px;
}
.tl-back-bio {
    font-size: .80em;
    color: #aaa;
    line-height: 1.55;
    margin: 0 0 10px;
    word-break: break-word;
    text-align: center;
    flex-grow: 1;
    width: 100%;
}

/* ── Card Footer ────────────────────────────────────── */
.tl-back-footer {
    width: calc(100% + 32px);
    margin: 0 -16px;
    padding: 10px 14px;
    background: #111;
    border-top: 1px solid #2a2a2a;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
}
.tl-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .76em;
    text-decoration: none;
    border-radius: 3px;
    padding: 4px 10px;
    transition: background .2s, color .2s;
    white-space: nowrap;
}
.tl-back-btn--contact {
    color: #32cd32;
    border: 1px solid #32cd32;
}
.tl-back-btn--contact:hover {
    background: #32cd32;
    color: #111;
}
.tl-back-btn--infos {
    color: #ff8c00;
    border: 1px solid #ff8c00;
}
.tl-back-btn--infos:hover {
    background: #ff8c00;
    color: #111;
}


/* ── Leerseite ──────────────────────────────────────── */
.tl-empty {
    color: #666;
    font-style: italic;
    padding: 20px 0;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 1100px) {
    .tl-card { width: calc(33.333% - 12px); }
}
@media (max-width: 767px) {
    .tl-card { width: calc(50% - 9px); }
    .tl-grid  { gap: 14px; }
}
@media (max-width: 479px) {
    .tl-card  { width: 100%; aspect-ratio: 4 / 3; }
    .tl-grid  { gap: 12px; }
    .tl-section-title { font-size: 1em; }
}

/* ── ON AIR Badge ───────────────────────────────────── */

/* Karte leuchtet grün wenn ON AIR */
.tl-card.tl-on-air .tl-front {
    border: 1px solid #32cd32;
    box-shadow: 0 0 14px rgba(50,205,50,.35);
}
.tl-card.tl-on-air .tl-back {
    border: 1px solid #32cd32;
    box-shadow: 0 0 14px rgba(50,205,50,.35);
}

/* Badge selbst */
.tl-onair-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    background: #32cd32;
    color: #111;
    font-size: .70em;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: 3px 8px 3px 6px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    gap: 5px;
    pointer-events: none;
}

/* Rückseite: Badge zentriert oben */
.tl-onair-badge--back {
    position: relative;
    top: auto;
    left: auto;
    margin-bottom: 8px;
    align-self: center;
    flex-shrink: 0;
}

/* Pulsierender Punkt */
.tl-onair-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #111;
    display: inline-block;
    animation: tl-pulse 1.4s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes tl-pulse {
    0%, 100% { opacity: 1;   transform: scale(1); }
    50%       { opacity: .4; transform: scale(.7); }
}

/* ── Jetzt zuhören Button (nur bei ON AIR) ──────────── */
.tl-back-listen {
    margin-top: 8px;
}
.tl-back-listen a {
    display: inline-block;
    font-size: .80em;
    font-weight: 700;
    color: #111;
    text-decoration: none;
    background: #32cd32;
    border: 1px solid #32cd32;
    border-radius: 3px;
    padding: 5px 12px;
    transition: background .2s, color .2s;
    letter-spacing: .03em;
}
.tl-back-listen a:hover {
    background: #28a828;
    border-color: #28a828;
    color: #fff;
}
.tl-back-listen i {
    margin-right: 5px;
}

/* ══════════════════════════════════════════════════════
   PROFILSEITE (member.php)
   ══════════════════════════════════════════════════════ */

/* ── Layout: Sidebar + Content ──────────────────────── */
.tl-profile-wrap {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* ── Sidebar ────────────────────────────────────────── */
.tl-profile-sidebar {
    flex: 0 0 260px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Großes Profilbild ──────────────────────────────── */
.tl-profile-avatar {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center top;
    border-radius: 8px;
    border: 3px solid #32cd32;
    display: block;
    box-shadow: 0 4px 16px rgba(0,0,0,.5);
}

/* ── Kurzinfo-Box ───────────────────────────────────── */
.tl-profile-infobox {
    background: #1a1a1a;
    border: 1px solid #2e2e2e;
    border-left: 4px solid #32cd32;
    border-radius: 4px;
    padding: 14px 16px;
}
.tl-profile-name {
    font-size: 1.15em;
    font-weight: 700;
    color: #f0f0f0;
    margin: 0 0 3px;
}
.tl-profile-realname {
    font-size: .83em;
    color: #777;
    margin: 0 0 6px;
}
.tl-profile-position {
    font-size: .78em;
    color: #32cd32;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 0 0 8px;
}
.tl-profile-since {
    font-size: .78em;
    color: #888;
    margin: 0 0 6px;
}
.tl-profile-since i,
.tl-profile-email i {
    margin-right: 5px;
    color: #32cd32;
}
.tl-profile-email a {
    font-size: .80em;
    color: #32cd32;
    text-decoration: none;
}
.tl-profile-email a:hover {
    text-decoration: underline;
}

/* ── Fakten-Box ─────────────────────────────────────── */
.tl-profile-facts {
    background: #1a1a1a;
    border: 1px solid #2e2e2e;
    border-radius: 4px;
    padding: 14px 16px;
}
.tl-profile-facts-title {
    font-size: 1.05em;
    font-weight: 700;
    color: #32cd32;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin: 0 0 14px;
}
.tl-profile-facts-title i {
    margin-right: 6px;
}
.tl-profile-fact-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}
.tl-profile-fact-row:last-child {
    margin-bottom: 0;
}
.tl-profile-fact-label {
    font-size: .82em;
    color: #666;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 2px;
}
.tl-profile-fact-label i {
    margin-right: 4px;
    color: #32cd32;
}
.tl-profile-fact-value {
    font-size: .95em;
    color: #ccc;
    line-height: 1.4;
}

/* ── ON AIR Badge auf Profilseite ───────────────────── */
.tl-onair-badge--profile {
    position: relative;
    top: auto;
    left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: .80em;
    margin-bottom: 4px;
}
.tl-profile-listen {
    color: #111 !important;
    font-weight: 700;
    text-decoration: none !important;
    border-left: 1px solid rgba(0,0,0,.25);
    padding-left: 8px;
    margin-left: 2px;
    pointer-events: auto;
    cursor: pointer;
}
.tl-profile-listen:hover {
    text-decoration: underline !important;
}

/* ── Content-Bereich ────────────────────────────────── */
.tl-profile-content {
    flex: 1 1 0;
    min-width: 0;
}
.tl-profile-short-bio {
    background: #1e1e1e;
    border-left: 4px solid #32cd32;
    border-radius: 0 4px 4px 0;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: .95em;
    color: #bbb;
    line-height: 1.65;
    font-style: italic;
}
.tl-profile-bio {
    font-size: .92em;
    color: #ccc;
    line-height: 1.75;
    word-break: break-word;
}

/* ── Navigations-Buttons ────────────────────────────── */
.tl-profile-nav {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    flex-wrap: wrap;
}
.tl-profile-nav-btn {
    display: inline-block;
    padding: 8px 18px;
    font-size: .88em;
    font-weight: 600;
    color: #32cd32;
    border: 1px solid #32cd32;
    border-radius: 4px;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.tl-profile-nav-btn:hover {
    background: #32cd32;
    color: #111;
    text-decoration: none;
}
.tl-profile-nav-btn--home {
    color: #888;
    border-color: #444;
}
.tl-profile-nav-btn--home:hover {
    background: #444;
    color: #f0f0f0;
}
.tl-profile-nav-btn i {
    margin-right: 6px;
}

/* ── Responsive Profilseite ─────────────────────────── */
@media (max-width: 767px) {
    .tl-profile-wrap {
        flex-direction: column;
    }
    .tl-profile-sidebar {
        flex: 0 0 auto;
        width: 100%;
    }
    .tl-profile-avatar {
        max-width: 220px;
        margin: 0 auto;
    }
}

/* ── Infos-Button (Flip-Card Rückseite) ─────────────── */
.tl-back-infos {
    margin-top: 8px;
}
.tl-back-infos a {
    display: inline-block;
    font-size: .80em;
    color: #32cd32;
    text-decoration: none;
    border: 1px solid #32cd32;
    border-radius: 3px;
    padding: 3px 10px;
    transition: background .2s, color .2s;
}
.tl-back-infos a:hover {
    background: #32cd32;
    color: #111;
}
.tl-back-infos i {
    margin-right: 5px;
}

/* ── NEU-Badge ──────────────────────────────────────── */
.tl-new-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background: #ff8c00;
    color: #111;
    font-size: .68em;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    padding: 3px 8px;
    border-radius: 3px;
    pointer-events: none;
}

/* ── Bewerbungs-Banner ──────────────────────────────── */
.tl-join-banner {
    background: linear-gradient(135deg, #1a1a1a 0%, #111 100%);
    border: 1px solid #2e2e2e;
    border-left: 5px solid #32cd32;
    border-radius: 6px;
    margin-bottom: 30px;
    padding: 22px 24px;
    box-shadow: 0 4px 18px rgba(0,0,0,.4);
    position: relative;
    overflow: hidden;
}

/* Dezentes Hintergrund-Wasserzeichen */
.tl-join-banner::before {
    content: '\f130';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 7em;
    color: #32cd32;
    opacity: .04;
    pointer-events: none;
}

.tl-join-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.tl-join-icon {
    font-size: 2.2em;
    color: #32cd32;
    flex-shrink: 0;
    animation: tl-pulse 1.8s ease-in-out infinite;
}

.tl-join-text {
    flex: 1 1 200px;
}

.tl-join-title {
    font-size: 1.15em;
    font-weight: 800;
    color: #f0f0f0;
    margin: 0 0 5px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.tl-join-sub {
    font-size: .88em;
    color: #999;
    margin: 0;
    line-height: 1.5;
}

.tl-join-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #32cd32;
    color: #111;
    font-weight: 800;
    font-size: .90em;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .2s, transform .2s;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.tl-join-btn:hover {
    background: #28b428;
    color: #111;
    transform: translateY(-2px);
    text-decoration: none;
}

@media (max-width: 600px) {
    .tl-join-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .tl-join-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ══════════════════════════════════════════════════════
   NÄCHSTE SENDUNG – Flipcard Vorderseite
   ══════════════════════════════════════════════════════ */
.tl-front-nextshow {
    font-size: .70em;
    color: #aaa;
    margin: 4px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tl-front-nextshow i {
    color: #ff8c00;
    margin-right: 4px;
}

/* ══════════════════════════════════════════════════════
   NÄCHSTE SENDUNG – Flipcard Rückseite
   ══════════════════════════════════════════════════════ */
.tl-back-nextshow {
    width: 100%;
    background: rgba(255, 140, 0, .08);
    border: 1px solid rgba(255, 140, 0, .25);
    border-radius: 4px;
    padding: 8px 10px;
    margin: 8px 0 6px;
    text-align: left;
}
.tl-back-nextshow-label {
    font-size: .70em;
    color: #ff8c00;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin: 0 0 3px;
}
.tl-back-nextshow-label i {
    margin-right: 4px;
}
.tl-back-nextshow-title {
    font-size: .82em;
    color: #f0f0f0;
    font-weight: 600;
    margin: 0 0 2px;
    word-break: break-word;
}
.tl-back-nextshow-time {
    font-size: .74em;
    color: #999;
    margin: 0;
}

/* ══════════════════════════════════════════════════════
   NÄCHSTE SENDUNGEN – Profilseite (member.php)
   ══════════════════════════════════════════════════════ */
.tl-profile-shows {
    margin-top: 24px;
}
.tl-profile-shows-title {
    font-size: 1.05em;
    font-weight: 700;
    color: #ff8c00;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin: 0 0 14px;
}
.tl-profile-shows-title i {
    margin-right: 6px;
}
.tl-profile-show-row {
    background: #1a1a1a;
    border: 1px solid #2e2e2e;
    border-left: 4px solid #ff8c00;
    border-radius: 0 4px 4px 0;
    padding: 12px 16px;
    margin-bottom: 10px;
}
.tl-profile-show-row:last-child {
    margin-bottom: 0;
}
.tl-profile-show-date {
    font-size: .80em;
    color: #ff8c00;
    margin-bottom: 4px;
}
.tl-profile-show-date i {
    margin-right: 5px;
}
.tl-profile-show-title {
    font-size: .98em;
    font-weight: 700;
    color: #f0f0f0;
    margin-bottom: 3px;
}
.tl-profile-show-genre {
    font-size: .76em;
    color: #666;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 5px;
}
.tl-profile-show-desc {
    font-size: .88em;
    color: #aaa;
    line-height: 1.5;
    margin-top: 4px;
}
