/* ==========================================================================
   immortalguardians.net — Guild page (composition, trends, activity)
   Loaded after site.css + roster.css (reuses .wow-class, .ig-class-icon, etc.).
   ========================================================================== */

.ig-guild-title {
    font-size: 2.1rem;
    margin: 1em 0 0.4em;
    font-variant: small-caps;
    letter-spacing: 0.02em;
    padding-bottom: 0.25em;
    border-bottom: 1px solid var(--ig-border);
}
.ig-guild-meta { color: var(--ig-muted); font-size: 0.9rem; margin: 0 0 2em; }

.ig-guild-section { margin: 0 0 2.2em; }
.ig-guild-section h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.15rem;
    font-variant: small-caps;
    letter-spacing: 0.03em;
    color: var(--ig-fg);
    padding-bottom: 0.2em;
    border-bottom: 1px solid var(--ig-border);
    margin: 0 0 0.9em;
}
.ig-guild-note { font-size: 0.82rem; margin: 0.6em 0 0; }

/* --- Bars (roles + classes) ---------------------------------------------- */
.ig-bar {
    flex: 1;
    height: 10px;
    background: var(--ig-bg-elevated);
    border-radius: 5px;
    overflow: hidden;
}
.ig-bar > span {
    display: block;
    height: 100%;
    background: var(--ig-accent);
    border-radius: 5px;
    min-width: 2px;
}

.ig-rolebar, .ig-classbar {
    display: flex;
    align-items: center;
    gap: 0.7em;
    padding: 0.3em 0;
}
.ig-rolebar-label {
    width: 92px; flex: none;
    display: inline-flex; align-items: center; gap: 0.45em;
    font-family: 'Oswald', sans-serif; text-transform: uppercase;
    font-size: 0.82rem; letter-spacing: 0.05em;
}
.ig-role-icon { display: inline-flex; }
.ig-role-icon .ig-icon { width: 1.05em; height: 1.05em; margin-right: 0; opacity: 1; }
.ig-role-tank   .ig-role-icon { color: #4a90d9; }
.ig-role-healer .ig-role-icon { color: #56b870; }
.ig-role-dps    .ig-role-icon { color: #cf4d49; }
.ig-rolebar-n, .ig-classbar-n {
    width: 38px; flex: none; text-align: right;
    color: var(--ig-muted); font-variant-numeric: tabular-nums; font-size: 0.9rem;
}
.ig-classbar .ig-class-icon { width: 24px; height: 24px; }
.ig-classbar-name {
    width: 116px; flex: none;
    font-family: 'Oswald', sans-serif; font-weight: 400; font-size: 0.95rem;
}

/* role colours (standard tank/healer/dps) */
.ig-role-tank   .ig-bar > span { background: #4a90d9; }
.ig-role-healer .ig-bar > span { background: #56b870; }
.ig-role-dps    .ig-bar > span { background: #cf4d49; }

/* class-coloured bar fills (scoped under .ig-bar so they out-specify the
   default .ig-bar > span fill). */
.ig-bar > .wow-bar-warrior      { background: #C79C6E; }
.ig-bar > .wow-bar-paladin      { background: #F58CBA; }
.ig-bar > .wow-bar-hunter       { background: #ABD473; }
.ig-bar > .wow-bar-rogue        { background: #FFF569; }
.ig-bar > .wow-bar-priest       { background: #FFFFFF; }
.ig-bar > .wow-bar-death-knight { background: #C41F3B; }
.ig-bar > .wow-bar-shaman       { background: #0070DE; }
.ig-bar > .wow-bar-mage         { background: #69CCF0; }
.ig-bar > .wow-bar-warlock      { background: #9482C9; }
.ig-bar > .wow-bar-monk         { background: #00FF96; }
.ig-bar > .wow-bar-druid        { background: #FF7D0A; }
.ig-bar > .wow-bar-demon-hunter { background: #A330C9; }
.ig-bar > .wow-bar-evoker       { background: #33937F; }

/* --- Trend chart --------------------------------------------------------- */
.ig-trend { width: 100%; max-width: 640px; height: auto; display: block; }
.ig-trend-total  { stroke: var(--ig-muted); stroke-width: 2; }
.ig-trend-active { stroke: var(--ig-accent); stroke-width: 2; }
.ig-key { display: inline-flex; align-items: center; gap: 0.35em; margin-right: 1.2em; }
.ig-key::before { content: ""; width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.ig-key-total::before  { background: var(--ig-muted); }
.ig-key-active::before { background: var(--ig-accent); }

/* --- Activity feed ------------------------------------------------------- */
.ig-activity { list-style: none; padding: 0; margin: 0; }
.ig-activity li {
    display: flex;
    align-items: center;
    gap: 0.55em;
    padding: 0.45em 0;
    border-top: 1px solid var(--ig-border);
}
.ig-activity li:first-child { border-top: none; }
.ig-activity .ig-class-icon { width: 24px; height: 24px; }
.ig-activity-what { flex: 1; min-width: 0; }
.ig-activity-time { flex: none; font-size: 0.85rem; }

@media (max-width: 560px) {
    .ig-classbar-name { width: 92px; font-size: 0.88rem; }
    .ig-rolebar-label { width: 52px; }
}
