/* =====================================================================
   BNI Roster — Frontend Shortcode Styles
   [bni_roster]
===================================================================== */

:root {
    --bni-red:       #c8102e;
    --bni-gold:      #f5a500;
    --bni-dark:      #1a1a2e;
    --bni-light:     #f8f8f8;
    --bni-border:    #e4e4e4;
    --bni-text:      #333;
    --bni-muted:     #888;
    --bni-radius:    10px;
    --bni-shadow:    0 2px 12px rgba(0,0,0,.07);
}

/* ---- Wrap ---- */
.bni-roster-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--bni-text);
    max-width: 960px;
    margin: 0 auto;
}

/* ---- Header ---- */
.bni-roster-header {
    margin-bottom: 24px;
}
.bni-roster-title {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 800;
    color: var(--bni-dark);
    margin: 0 0 4px;
    line-height: 1.2;
}
.bni-roster-subtitle {
    color: var(--bni-muted);
    font-size: 14px;
    margin: 0;
}
.bni-roster-empty {
    color: var(--bni-muted);
    font-style: italic;
    padding: 24px 0;
}

/* ---- Filter bar ---- */
.bni-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid var(--bni-border);
    border-radius: var(--bni-radius);
    box-shadow: var(--bni-shadow);
}
.bni-filter-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--bni-dark);
    white-space: nowrap;
}
.bni-filter-bar select {
    padding: 6px 10px;
    border: 1px solid var(--bni-border);
    border-radius: 6px;
    font-size: 14px;
    color: var(--bni-text);
    background: #fff;
    min-width: 200px;
    cursor: pointer;
}
.bni-filter-clear {
    background: none;
    border: 1px solid var(--bni-border);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    color: var(--bni-muted);
    cursor: pointer;
    transition: all .15s;
}
.bni-filter-clear:hover {
    background: var(--bni-red);
    color: #fff;
    border-color: var(--bni-red);
}

/* ---- Cards grid ---- */
.bni-roster-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

/* ---- Single meeting card ---- */
.bni-card-meeting {
    background: #fff;
    border: 1px solid var(--bni-border);
    border-radius: var(--bni-radius);
    box-shadow: var(--bni-shadow);
    overflow: hidden;
    transition: box-shadow .2s, transform .15s;
}
.bni-card-meeting:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.12);
    transform: translateY(-2px);
}

/* --- State variants --- */
.bni-card-today {
    border-color: var(--bni-gold);
    box-shadow: 0 0 0 2px var(--bni-gold), var(--bni-shadow);
}
.bni-card-next {
    border-color: var(--bni-red);
    box-shadow: 0 0 0 2px rgba(200,16,46,.25), var(--bni-shadow);
}
.bni-card-highlighted {
    border-color: #1a7f4e;
    box-shadow: 0 0 0 2px rgba(26,127,78,.3), var(--bni-shadow);
}

/* ---- Date header strip ---- */
.bni-card-date-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px 10px;
    background: var(--bni-dark);
    color: #fff;
}
.bni-card-today   .bni-card-date-header { background: var(--bni-gold); color: #1a1a2e; }
.bni-card-next    .bni-card-date-header { background: var(--bni-red);  color: #fff; }
.bni-card-highlighted .bni-card-date-header { background: #1a7f4e; color: #fff; }

.bni-card-date-main {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.bni-date-day {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .8px;
    opacity: .8;
}
.bni-date-full {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}
.bni-card-badges {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
}

/* ---- Badges ---- */
.bni-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
}
.bni-badge-today   { background: rgba(0,0,0,.25); color: #fff; }
.bni-badge-next    { background: rgba(255,255,255,.25); color: #fff; }
.bni-badge-you     { background: #fff; color: #1a7f4e; }
.bni-card-today .bni-badge-today { background: rgba(0,0,0,.15); color: #1a1a2e; }

/* ---- "You're on" banner ---- */
.bni-your-role-banner {
    background: #e8f8f0;
    color: #1a7f4e;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 14px;
    border-bottom: 1px solid #c3ecd6;
}

/* ---- Roles grid ---- */
.bni-roles-grid {
    padding: 8px 0;
}
.bni-role-row {
    display: grid;
    grid-template-columns: 22px 1fr auto;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    font-size: 13px;
    border-bottom: 1px solid #f5f5f5;
    transition: background .1s;
}
.bni-role-row:last-child { border-bottom: none; }
.bni-role-row:hover { background: #fafafa; }

.bni-role-speaker {
    background: rgba(255,220,0,.06);
}
.bni-role-speaker .bni-role-label {
    font-weight: 700;
    color: var(--bni-dark);
}
.bni-role-me {
    background: #e8f8f0 !important;
}
.bni-role-me .bni-role-name {
    font-weight: 700;
    color: #1a7f4e;
}
.bni-role-unassigned .bni-role-name {
    color: #bbb;
}

.bni-role-icon  { font-size: 14px; line-height: 1; text-align: center; }
.bni-role-label { color: var(--bni-muted); font-size: 12px; }
.bni-role-name  { font-size: 13px; font-weight: 500; text-align: right; }

.bni-unassigned { color: #ccc; font-style: italic; font-weight: 400; }

.bni-you-tag {
    display: inline-block;
    background: #1a7f4e;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 5px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: .3px;
}

/* ---- Meta pills ---- */
.bni-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 14px 10px;
    background: var(--bni-light);
    border-top: 1px solid var(--bni-border);
}
.bni-meta-pill {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 9px;
    background: #fff;
    border: 1px solid var(--bni-border);
    border-radius: 12px;
    color: var(--bni-muted);
    white-space: nowrap;
}
.bni-meta-event {
    background: #fff8e8;
    border-color: #f5cc80;
    color: #8a6000;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .bni-roster-cards {
        grid-template-columns: 1fr;
    }
    .bni-filter-bar select {
        min-width: 160px;
        width: 100%;
    }
}
