/**
 * /assets/css/admin-worlds.css
 *
 * Purpose:  Glassmorphism-Styling fuer Admin Welten-Verwaltung
 * Deps:     app.css (Variablen), admin-users.css (shared glass components)
 * Load:     index.php
 * Version:  1.0.0
 */

/* ============================================================================
 * Section Title
 * ========================================================================== */
.admin-worlds-title {
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--accent);
}

/* ============================================================================
 * World Card – Glass Card
 * ========================================================================== */
.admin-world-card {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px) saturate(1.3);
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid rgba(93, 214, 201, 0.4);
    border-radius: 12px;
    padding: 0;
    margin-bottom: 0.75rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.admin-world-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 40%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.04), transparent);
    pointer-events: none;
    border-radius: inherit;
}

.admin-world-card:hover {
    border-color: rgba(93, 214, 201, 0.55);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

/* ============================================================================
 * Card Header (Icon + Info + Toggle)
 * ========================================================================== */
.admin-world-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    position: relative;
    z-index: 1;
}

.admin-world-card__icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(93, 214, 201, 0.15);
    border: 1px solid rgba(93, 214, 201, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--accent);
}

.admin-world-card__info {
    flex: 1;
    min-width: 0;
}

.admin-world-card__name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #e6edf3;
}

.admin-world-card__name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.admin-world-card__name a:hover {
    color: var(--accent);
}

.admin-world-card__meta {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.15rem;
}

.admin-world-card__dates {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 2px;
}

.admin-world-card__toggle {
    flex-shrink: 0;
}

/* ============================================================================
 * GM Row (Spielleiter Badges)
 * ========================================================================== */
.admin-world-card__gm-row {
    padding: 0 1rem 0.5rem 1rem;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.admin-badge-gm {
    background: rgba(255, 193, 7, 0.12);
    color: rgba(255, 211, 107, 0.9);
    border: 1px solid rgba(255, 193, 7, 0.2);
    font-weight: 600;
    font-size: 0.7rem;
    padding: 0.2em 0.5em;
    border-radius: 4px;
}

/* ============================================================================
 * Edit Panel – Glass Inset
 * ========================================================================== */
.admin-world-card__edit {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1rem;
}

.admin-world-edit-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

.admin-world-edit-section label {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.25rem;
    letter-spacing: 0.02em;
}

/* ============================================================================
 * GM Manage Badges (with remove button)
 * ========================================================================== */
.admin-world-gm-badge {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.25);
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    color: rgba(255, 211, 107, 0.9);
    font-weight: 600;
}

.admin-btn-gm-remove {
    background: none;
    border: none;
    color: rgba(255, 107, 107, 0.6);
    padding: 0 0.15rem;
    font-size: 0.7rem;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.admin-btn-gm-remove:hover {
    color: #ff6b6b;
}

/* ============================================================================
 * Edit Footer (Action Buttons)
 * ========================================================================== */
.admin-world-edit-footer {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ============================================================================
 * Reduced Motion
 * ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .admin-world-card {
        transition: none;
    }
}
