﻿/* =========================================
   Frontend RoleList Details
   Prefix: .rld-
   ========================================= */

.rld-card {
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 1rem;
    padding: 1rem 1rem;
    box-shadow: 0 0.15rem 0.5rem rgba(0,0,0,0.08);
}

/* Title gold */
.rld-title-gold {
    color: rgba(212,175,55,0.98);
    text-shadow: 0 2px 10px rgba(0,0,0,0.18);
}

/* Roles list (left column) */
.rld-details-grid {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.rld-role-row {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    padding: .6rem .7rem;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: .85rem;
    background: rgba(255,255,255,0.55);
}

/* logo */
.rld-logo-box {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: .7rem;
    background: #faf6ff;
    border: 1px solid rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(37, 25, 70, 0.05);
}

.rld-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.rld-logo-placeholder {
    color: rgba(0,0,0,0.45);
    font-weight: 800;
}

.rld-role-text {
    min-width: 0;
}

.rld-role-title {
    font-weight: 900;
    line-height: 1.2;
}

/* ✅ EN in parentheses - normal (not bold), incl. parentheses */
.rld-role-eng-normal {
    font-weight: 400;
    opacity: .85;
    margin-left: .35rem;
}

.rld-role-ability {
    margin-top: .25rem;
    color: rgba(15,23,42,0.88);
    line-height: 1.35;
}

/* Zone titles centered + bigger */
.rld-zone-title {
    font-weight: 900;
    letter-spacing: .2px;
    margin: 0.75rem 0 0.4rem;
    color: rgba(0,0,0,0.92);
}

.rld-zone-title--center {
    text-align: center;
    font-size: 2rem;
    margin: 1rem 0 .75rem;
}

/* =========================
   Type colors (TEXT) - LEFT
   ========================= */
.rld-type-0 {
    color: rgba(2, 132, 199, 0.98);
}
/* Townsfolk - морско синьо */
.rld-type-1 {
    color: rgba(30, 58, 138, 0.98);
}
/* Outsider - тъмно синьо */
.rld-type-2 {
    color: rgba(220, 38, 38, 0.98);
}
/* Minion - червено */
.rld-type-3 {
    color: rgba(128, 0, 32, 0.98);
}
/* Demon - бордо */
.rld-type-4 {
    color: rgba(124, 58, 237, 0.98);
}
/* Traveler - лилаво */
.rld-type-5 {
    color: rgba(212, 175, 55, 0.98);
}
/* Fabled - златно */
.rld-type-6 {
    color: rgba(22, 163, 74, 0.98);
}
/* Loric - зелено */
.rld-type-7 {
    color: rgba(0,0,0,0.92);
}
/* System */

/* =========================
   RIGHT column (night orders)
   ========================= */

/* ✅ main title same size as zone title */
.rld-night-title-main {
    font-weight: 950;
    letter-spacing: .25px;
    font-size: 2rem; /* ✅ като лявото заглавие */
    margin-bottom: .35rem;
    color: rgba(0,0,0,0.92);
}

/* smaller titles for each column */
.rld-night-col-title {
    font-weight: 900;
    letter-spacing: .2px;
    margin-bottom: .5rem;
    font-size: .95rem;
    color: rgba(0,0,0,0.72);
}

.rld-night-list {
    list-style: none;
    margin: 0;
    padding: .5rem;
    border-radius: .9rem;
    border: 1px solid rgba(0,0,0,0.10);
    background: rgba(255,255,255,0.55);
}

.rld-night-item {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    padding: .45rem .55rem;
    border-radius: .75rem;
    border: 1px solid rgba(0,0,0,0.08);
    background: rgba(255,255,255,0.75);
    margin-bottom: .45rem;
    /* ✅ всичко вътре черно */
    color: rgba(0,0,0,0.92);
}

    .rld-night-item:last-child {
        margin-bottom: 0;
    }

    /* ✅ type-colored background ONLY (text stays black) */
    .rld-night-item.rld-type-0 {
        background: rgba(2,132,199,0.14);
        border-color: rgba(2,132,199,0.32);
    }

    .rld-night-item.rld-type-1 {
        background: rgba(30,58,138,0.14);
        border-color: rgba(30,58,138,0.32);
    }

    .rld-night-item.rld-type-2 {
        background: rgba(220,38,38,0.14);
        border-color: rgba(220,38,38,0.32);
    }

    .rld-night-item.rld-type-3 {
        background: rgba(128,0,32,0.14);
        border-color: rgba(128,0,32,0.32);
    }

    .rld-night-item.rld-type-4 {
        background: rgba(124,58,237,0.14);
        border-color: rgba(124,58,237,0.32);
    }

    .rld-night-item.rld-type-5 {
        background: rgba(212,175,55,0.16);
        border-color: rgba(212,175,55,0.40);
    }

    .rld-night-item.rld-type-6 {
        background: rgba(22,163,74,0.14);
        border-color: rgba(22,163,74,0.32);
    }
/* System (type 7) - няма клас, остава дефолт фон */

/* mini image */
.rld-night-mini {
    width: 26px;
    height: 26px;
    border-radius: .6rem;
    object-fit: contain;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    padding: 3px;
}

.rld-night-order {
    font-weight: 900;
    opacity: .75;
    min-width: 2.1rem;
    text-align: right;
    color: rgba(0,0,0,0.92);
}

.rld-night-name {
    font-weight: 850;
    min-width: 0;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.2;
    color: rgba(0,0,0,0.92);
}
