/**
 * /HeroX/assets/css/world.css
 *
 * Purpose:  Styles fuer Welten-Liste + Welt-Detail
 * Load:     index.php
 * Deps:     app.css (Variablen)
 * Version:  1.3.1 - Fix: Welt-Logo aus Banner herausgeholt (nicht mehr abgeschnitten)
 */

/* --- Welten-Karten (Liste) --- */
.world-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}
.world-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.world-card-banner {
    height: 120px;
    background-size: cover;
    background-position: center;
    background-color: #1a1a2e;
}
.world-card-banner-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}
.world-card-logo__wrap {
    position: absolute;
    top: 92px;
    left: 1rem;
    width: 48px;
    height: 48px;
    z-index: 3;
}
.world-card-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(93, 214, 201, 0.4);
    background: #1a1a2e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.world-card-logo__wrap ~ .card-body {
    padding-top: 1.25rem;
}

/* --- Welt-Detail Banner --- */
.world-banner-lg {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 0.375rem 0.375rem 0 0;
}

/* --- Alignment Grid --- */
.alignment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem;
}
.alignment-cell {
    text-align: center;
    padding: 0.75rem 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid;
    border-radius: 0.375rem;
    transition: background 0.15s;
}
.alignment-cell:hover {
    background: rgba(0, 0, 0, 0.5);
}
.alignment-abbr {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}
.alignment-name {
    color: #adb5bd;
}

/* ================================================================
   World Group Cards — Unlink Button Overlay
   ================================================================ */
.group-card-link-wrap {
    position: relative;
}

.world-group-unlink {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 4;
}

.world-group-unlink__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.world-group-unlink__btn:hover {
    background: rgba(255,107,107,0.25);
    border-color: rgba(255,107,107,0.4);
    color: rgba(255,107,107,0.9);
}

@media (prefers-reduced-motion: reduce) {
    .world-group-unlink__btn {
        transition: none;
    }
}

/* ================================================================
   World Groups — Invite Section
   ================================================================ */
.world-groups-invite {
    padding: 8px 14px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-left: 3px solid rgba(93,214,201,0.35);
    border-radius: 8px;
}