/* ===== GLOBAL BACKGROUND ===== */
body {
    margin: 0;
    padding: 20px;
    font-family: Arial, sans-serif;
    color: white;
    background-image: url("blue-space.jpg");
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* ===== TITLE ===== */
h1 {
    margin-left: 10px;
    font-size: 36px;
    text-shadow: 0 0 8px black;
}

/* ============================================================
   FULL FACTION BLOCK (default viewer)
   ============================================================ */
.faction {
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 35px;
    box-shadow: 0 0 12px rgba(0,0,0,0.7);
}

/* ===== FACTION HEADER ===== */
.faction-header {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    padding-bottom: 10px;
}

.faction-header:hover {
    filter: brightness(1.2);
}

.faction-header h2 {
    font-size: 26px;
    margin: 0;
    text-shadow: 0 0 6px black;
}

/* ===== ICON ===== */
.faction-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px black);
}

/* ===== COLLAPSIBLE CONTENT ===== */
.faction-content {
    display: none;
    margin-top: 15px;
}

/* ===== IMAGE GRID ===== */
.big-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

/* ===== IMAGE BOX ===== */
.image-box {
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 0 6px rgba(0,0,0,0.9);
}

.image-box img {
    width: 100%;
    border: 2px solid rgba(255,255,255,0.7);
    border-radius: 6px;
    box-shadow: 0 0 10px black;
}

/* ===== CAPTIONS ===== */
.caption {
    margin-top: 8px;
    font-size: 15px;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 6px black;
}

/* ===== DRAFT MODE EXPANSION BOX ===== */
.draft-details {
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.20);
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
}

#site-version {
    position: fixed;
    top: 10px;
    right: 10px;
    color: white;
    background: rgba(0,0,0,0.4);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    z-index: 9999;
}

#img-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    text-align: center;
    padding-top: 40px;
}

#img-modal img {
    max-width: 90%;
    max-height: 90%;
    border: 3px solid white;
    border-radius: 10px;
    box-shadow: 0 0 20px black;
    cursor: pointer;
}

/* ===== COMPLEXITY SECTION ===== */
.complexity-container {
    margin-top: 15px;
    margin-bottom: 20px;
}

.complexity-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 6px;
    text-shadow: 0 0 6px black;
}

.complexity-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: gray;
    border: 1px solid rgba(255,255,255,0.6);
}

.dot.green { background: #00ff00; }
.dot.yellow { background: #ffdd00; }
.dot.red { background: #ff0000; }