/* === ACP_GLOBAL [DEFAULT] === */

:root {
    --gold: #c5a059;
    --gold-dark: #8e6d2d;
    --gold-main: #C5A059;
    --gold-bright: #E8D48B;
    --bg-dark: #141414;
    --bg-panel: #1a1a1a;
    --bg-sidebar: #0f0f0f;
    --bg-content: #0d0d0d;
    --text-main: #e8e8e8;
    --text-muted: #aaa;
    --border-color: #2a2a2a;
    --border-line: #222;
    --admin-red: #ff4444;
}
* { box-sizing: border-box; }
body {
    background-color: #111111;
    color: var(--text-main);
    font-family: "Segoe UI", Roboto, sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
:root {
    --glass-bg: rgba(8, 7, 6, 0.55);
    --glass-border: rgba(197, 160, 89, 0.18);
    --realm-alb: #c0392b;
    --realm-hib: #27ae60;
    --realm-mid: #2980b9;
    --realm-gradient: linear-gradient(90deg, var(--realm-alb) 0%, var(--gold) 25%, var(--realm-hib) 50%, var(--gold) 75%, var(--realm-mid) 100%);
    --shadow-deep: 0 20px 60px rgba(0,0,0,0.55);
}


.cms-debug-missing { color:red; font-weight:bold; }
.cms-debug-known { border-bottom:1px dotted #999; }

/* === TEAM [DEFAULT] === */


.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1px;
    background: rgba(197,160,89,0.06);
}
.team-card {
    text-align: center;
    padding: 35px 25px;
    background: rgba(10,10,10,0.97);
    transition: background 0.3s;
}
.team-card:hover { background: rgba(197,160,89,0.02); }
.team-avatar {
    width: 90px; height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(197,160,89,0.2);
}
.team-avatar-placeholder {
    width: 90px; height: 90px;
    border-radius: 50%;
    background: #0a0a0a;
    border: 1px solid #111;
    margin: 0 auto;
    display: flex; align-items: center; justify-content: center;
}
.team-name {
    font-family: "Cinzel", serif;
    margin: 0 0 6px 0;
    color: #ccc;
    letter-spacing: 2px;
    font-size: 1em;
    font-weight: 400;
}
.team-role {
    color: rgba(197,160,89,0.5);
    margin-bottom: 14px;
    font-size: 0.72em;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: "Cinzel", serif;
}
.team-lang-tag {
    border: 1px solid #1a1a1a;
    padding: 2px 8px;
    font-size: 0.65em;
    color: rgba(197,160,89,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: "Cinzel", serif;
}



.team-description {
    max-width: 700px;
    margin: 0 0 30px 0;
    font-size: 0.85em;
    color: #666;
    line-height: 1.8;
    border-left: 2px solid rgba(197,160,89,0.2);
    padding-left: 16px;
}


.team-description {
    font-size: 0.88em;
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
    
}


.team-description {
    font-size: 0.88em;
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
}





.team-description {
    margin: 0 0 36px 0;
    padding: 20px 28px;
    font-size: 0.85em;
    color: #555;
    line-height: 1.8;
    border-top: 1px solid rgba(197,160,89,0.15);
    border-bottom: 1px solid rgba(197,160,89,0.15);
    border-left: 3px solid rgba(197,160,89,0.08);
    border-right: 3px solid rgba(197,160,89,0.08);
    clip-path: polygon(8px 0%, calc(100% - 8px) 0%, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0% calc(100% - 8px), 0% 8px);
    transition: border-color 0.4s, box-shadow 0.4s, color 0.4s;
}
.team-description:hover {
    border-top-color: rgba(197,160,89,0.5);
    border-bottom-color: rgba(197,160,89,0.5);
    border-left-color: rgba(197,160,89,0.25);
    border-right-color: rgba(197,160,89,0.25);
    box-shadow: 0 0 18px rgba(197,160,89,0.07), inset 0 0 30px rgba(197,160,89,0.03);
    color: #777;
}


.team-description {
    margin: 0 0 36px 0;
    padding: 22px 28px;
    font-size: 0.85em;
    color: #555;
    line-height: 1.8;
    background: rgba(197,160,89,0.02);
    border: 1px solid rgba(197,160,89,0.12);
    clip-path: polygon(
        16px 0%, calc(100% - 16px) 0%,
        100% 16px, 100% calc(100% - 16px),
        calc(100% - 16px) 100%, 16px 100%,
        0% calc(100% - 16px), 0% 16px
    );
    transition: all 0.4s ease;
    position: relative;
}
.team-description::before {
    content: "";
    position: absolute;
    top: 4px; left: 4px; right: 4px; bottom: 4px;
    border: 1px solid rgba(197,160,89,0.05);
    clip-path: polygon(
        12px 0%, calc(100% - 12px) 0%,
        100% 12px, 100% calc(100% - 12px),
        calc(100% - 12px) 100%, 12px 100%,
        0% calc(100% - 12px), 0% 12px
    );
    pointer-events: none;
    transition: border-color 0.4s;
}
.team-description:hover {
    color: #888;
    border-color: rgba(197,160,89,0.4);
    background: rgba(197,160,89,0.04);
    box-shadow:
        0 0 20px rgba(197,160,89,0.06),
        0 0 60px rgba(197,160,89,0.04),
        inset 0 0 30px rgba(197,160,89,0.03);
}
.team-description:hover::before {
    border-color: rgba(197,160,89,0.15);
}


.team-description {
    max-width: 600px !important;
}
.team-card:hover {
    background: rgba(197,160,89,0.035);
    box-shadow: inset 0 1px 0 rgba(197,160,89,0.15), 0 12px 30px rgba(0,0,0,0.4);
    transform: translateY(-3px);
}
.team-avatar, .team-avatar-placeholder { transition: border-color 0.3s, box-shadow 0.3s; }
.team-card:hover .team-avatar, .team-card:hover .team-avatar-placeholder {
    border-color: rgba(197,160,89,0.5); box-shadow: 0 0 20px rgba(197,160,89,0.2);
}



.team-grid {
    gap: 18px;
    background: transparent;
    padding: 6px 0;
}


.team-card {
    position: relative;
    padding: 40px 26px 30px;
    background: linear-gradient(180deg, rgba(20,17,12,0.9), rgba(8,7,6,0.96));
    border: 1px solid rgba(197,160,89,0.1);
    border-radius: 3px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s, box-shadow 0.3s;
    isolation: isolate;
}
.team-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--realm-gradient, linear-gradient(90deg,#c0392b,#c5a059,#27ae60,#c5a059,#2980b9));
    opacity: 0.55; transition: opacity 0.3s;
}
.team-card::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(120% 60% at 50% 0%, rgba(197,160,89,0.06), transparent 60%);
    opacity: 0; transition: opacity 0.35s;
}
.team-card:hover {
    transform: translateY(-4px);
    border-color: rgba(197,160,89,0.3);
    box-shadow: 0 18px 45px rgba(0,0,0,0.55), inset 0 1px 0 rgba(197,160,89,0.12);
    background: linear-gradient(180deg, rgba(24,20,14,0.92), rgba(10,8,6,0.97));
}
.team-card:hover::before { opacity: 0.9; }
.team-card:hover::after  { opacity: 1; }


.team-avatar-wrap {
    position: relative; width: 104px; height: 104px; margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
}
.team-avatar-wrap::before {
    content: ''; position: absolute; inset: -5px;
    background: linear-gradient(135deg, rgba(197,160,89,0.5), rgba(142,109,45,0.15));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    opacity: 0.6; transition: opacity 0.3s;
}
.team-card:hover .team-avatar-wrap::before { opacity: 1; }
.team-avatar, .team-avatar-placeholder {
    width: 96px; height: 96px; border-radius: 0;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    object-fit: cover; border: none; position: relative; z-index: 1;
    transition: filter 0.3s;
}
.team-avatar-placeholder {
    background: radial-gradient(circle at 50% 35%, #1c1710, #0a0805);
    display: flex; align-items: center; justify-content: center;
}
.team-avatar-placeholder i { font-size: 34px; color: rgba(197,160,89,0.35); }
.team-card:hover .team-avatar { filter: brightness(1.08) saturate(1.05); }


.team-name {
    color: #e8ddc4; letter-spacing: 3px; font-size: 1.05em;
    text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}
.team-role {
    color: var(--gold, #c5a059); opacity: 0.85; margin-bottom: 16px;
}


.team-lang-row { display: flex; justify-content: center; gap: 5px; flex-wrap: wrap; }
.team-lang-tag {
    border: 1px solid rgba(197,160,89,0.2);
    background: rgba(197,160,89,0.04);
    color: rgba(197,160,89,0.7);
    padding: 3px 9px; border-radius: 2px;
    transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.team-card:hover .team-lang-tag {
    border-color: rgba(197,160,89,0.4); color: #d8c48f; background: rgba(197,160,89,0.08);
}


.team-card--owner::before { background: linear-gradient(90deg, #8b1a1a, #c0392b, #e74c3c, #c0392b, #8b1a1a); opacity: 0.75; }
.team-card--owner .team-avatar-wrap::before { background: linear-gradient(135deg, #c0392b, rgba(197,160,89,0.4)); }
.team-card--owner:hover { box-shadow: 0 18px 45px rgba(0,0,0,0.55), 0 0 22px rgba(192,57,43,0.18); }

.team-card--admin .team-avatar-wrap::before { animation: teamAdminGlow 3s ease-in-out infinite; }
@keyframes teamAdminGlow { 0%,100% { opacity: 0.55; } 50% { opacity: 1; } }

.team-card--staff::before { background: linear-gradient(90deg, transparent, var(--gold,#c5a059), transparent); opacity: 0.4; }

@media screen and (max-width: 768px) {
    .team-grid { gap: 12px; }
    .team-card { padding: 30px 18px 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .team-card--admin .team-avatar-wrap::before { animation: none; }
    .team-card:hover { transform: none; }
}



.role-player { color:#fff; }
.role-associate { color:#3498db; }
.role-gm { color:#e67e22; }
.role-admin { color:var(--gold); }
.role-superadmin { color:#f1c40f; font-weight:bold; }
.role-guest { color:#666; }

