/* ==============================================
   WALLBOARD ROOM TILE SYSTEM
   Room availability list tiles

   Sizes: standard (120px), small (88px), compact (50px)
   States: free, busy, pending
   ============================================== */

/* ==============================================
   BASE TILE
   ============================================== */
.wb-tile {
    background-color: white;
    border-radius: 4px;
    border: 1px solid;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
}

/* ==============================================
   TILE HEADER (colored bar with room name)
   ============================================== */
.wb-tile__header {
    padding: 10px 12px 10px 44px;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wb-tile__name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.wb-tile__capacity {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: rgba(0,0,0,0.6);
    flex-shrink: 0;
}

.wb-tile__capacity i {
    font-size: 0.9em;
}

/* ==============================================
   TILE BODY (Now/Next info)
   ============================================== */
.wb-tile__body {
    padding: 8px 12px 12px 12px;
    color: #333;
}

.wb-tile__now,
.wb-tile__next {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.wb-tile__now {
    font-size: 14px;
    margin-bottom: 4px;
}

.wb-tile__next {
    font-size: 13px;
    color: #666;
}

.wb-tile__label {
    font-weight: 600;
    color: #555;
    margin-right: 4px;
}

/* ==============================================
   NUMBER BUBBLE
   ============================================== */
.wb-tile__bubble {
    position: absolute;
    left: 10px;
    top: 10px;
    width: 28px;
    height: 28px;
    background: white;
    border: 2px solid #4c4c4c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: #4c4c4c;
    font-feature-settings: 'tnum';
}

/* ==============================================
   SIZE VARIANTS
   ============================================== */

/* Standard (120px) - shows all info */
.wb-tile--standard {
    height: 120px;
}

.wb-tile--standard .wb-tile__header {
    font-size: 1.35em;
    line-height: 1.4;
    padding: 12px 12px 12px 48px;
}

.wb-tile--standard .wb-tile__now {
    font-size: 15px;
}

.wb-tile--standard .wb-tile__next {
    font-size: 13px;
}

.wb-tile--standard .wb-tile__bubble {
    top: 14px;
}

/* Small (88px) - condensed but readable */
.wb-tile--small {
    height: 88px;
}

.wb-tile--small .wb-tile__header {
    font-size: 1.2em;
    line-height: 1.3;
    padding: 8px 12px 8px 44px;
}

.wb-tile--small .wb-tile__body {
    padding: 4px 12px 8px 12px;
}

.wb-tile--small .wb-tile__now {
    font-size: 13px;
    margin-bottom: 2px;
}

.wb-tile--small .wb-tile__next {
    font-size: 12px;
}

.wb-tile--small .wb-tile__bubble {
    top: 10px;
    width: 24px;
    height: 24px;
    font-size: 12px;
}

/* Compact (50px) - header only */
.wb-tile--compact {
    height: 50px;
}

.wb-tile--compact .wb-tile__header {
    font-size: 1.1em;
    line-height: 1;
    height: 100%;
}

.wb-tile--compact .wb-tile__body {
    display: none;
}

.wb-tile--compact .wb-tile__bubble {
    top: 11px;
    width: 22px;
    height: 22px;
    font-size: 11px;
}

/* Super-compact (32px) - minimal single line */
.wb-tile--super-compact {
    height: 32px;
    margin-bottom: 3px;
}

.wb-tile--super-compact .wb-tile__header {
    font-size: 0.95em;
    line-height: 1;
    height: 100%;
    padding: 6px 8px 6px 32px;
}

.wb-tile--super-compact .wb-tile__body {
    display: none;
}

.wb-tile--super-compact .wb-tile__capacity {
    display: none;
}

.wb-tile--super-compact .wb-tile__bubble {
    top: 5px;
    width: 18px;
    height: 18px;
    font-size: 10px;
}

/* ==============================================
   STATE VARIANTS
   ============================================== */

/* Free - Green */
.wb-tile--free {
    border-color: #4bd396;
}

.wb-tile--free .wb-tile__header {
    background-color: #b6eed7;
}

/* Busy - Red */
.wb-tile--busy {
    border-color: #f5707a;
}

.wb-tile--busy .wb-tile__header {
    background-color: #fac6c9;
}

/* Pending - Amber */
.wb-tile--pending {
    border-color: #f9c851;
}

.wb-tile--pending .wb-tile__header {
    background-color: #fbeabd;
}

/* ==============================================
   TILE BADGES
   ============================================== */
.wb-tile__badges {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-shrink: 0;
}

.wb-tile__badge {
    position: static;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: default;
}

.wb-tile__badge.wb-indicator__badge--square {
    border-radius: 20%;
}

.wb-tile--compact .wb-tile__badge,
.wb-tile--super-compact .wb-tile__badge {
    width: 16px;
    height: 16px;
    font-size: 8px;
}
