/* ========================================
   BLOCK 2: Page-Specific CSS (bigbrother-dashboard)
   (this page only)

   The BigBrother master admin hub — the landing surface after a
   successful sign-in. A grid of tiles, one per admin capability
   listed in bigbrother-architecture.md §8.1. Master-only.
   ======================================== */

/* Page wrapper */
.bb-hub-wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

/* Top bar: greeting + logout */
.bb-hub-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.bb-hub-greet {
    font-size: .95rem;
    color: var(--dark-grey);
}
.bb-hub-greet strong { font-weight: 700; }
.bb-hub-logout {
    font-size: .85rem;
    font-weight: 600;
    color: var(--dark-grey);
    border: 1px solid var(--mid-grey);
    background-color: var(--white);
    border-radius: 4px;
    padding: .4rem .85rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .15s, color .15s, border-color .15s;
}
.bb-hub-logout:hover {
    background-color: var(--dull-red);
    color: var(--white);
    border-color: var(--dull-red);
}

/* Master-only banner */
.bb-banner {
    background-color: var(--dark-grey);
    color: var(--light-grey);
    border-left: 4px solid var(--dull-red);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    gap: .8rem;
    font-size: .95rem;
    line-height: 1.4;
}
.bb-banner .bb-lock { font-size: 1.6rem; flex-shrink: 0; }
.bb-banner strong { color: var(--light-grey); }

/* Tile grid */
.bb-tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.1rem;
}

/* Tile */
.bb-tile {
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    border: 1px solid var(--mid-grey);
    border-radius: 8px;
    padding: 1.2rem 1.25rem 1.3rem;
    text-decoration: none;
    color: var(--dark-grey);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
    transition: transform .12s, box-shadow .12s, border-color .12s;
    min-height: 150px;
}
.bb-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .14);
    border-color: var(--dull-blue);
}
.bb-tile-icon {
    font-size: 1.9rem;
    line-height: 1;
    margin-bottom: .65rem;
}
.bb-tile-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 .3rem;
    color: var(--dark-grey);
}
.bb-tile-desc {
    font-size: .85rem;
    line-height: 1.4;
    color: var(--mid-grey);
    margin: 0;
    flex: 1;
}

/* Status pill — bottom of a tile */
.bb-tile-status {
    align-self: flex-start;
    margin-top: .85rem;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: .2rem .55rem;
    border-radius: 999px;
}
.bb-tile-status.is-ready    { background-color: var(--green); color: var(--white); }
.bb-tile-status.is-pending  { background-color: var(--amber-warn-bg); color: var(--amber-warn-text); border: 1px solid var(--amber-warn); }
.bb-tile-status.is-soon     { background-color: var(--light-grey); color: var(--mid-grey); }

/* Responsive */
@media (max-width: 768px) {
    .bb-hub-bar { flex-direction: column; align-items: stretch; gap: .6rem; }
    .bb-tile-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .bb-tile-grid { grid-template-columns: 1fr; }
}
