/* ============================================================
   CHAT – DESKTOP, zwei Container: Bier + Chat
   ============================================================ */

/* ----------------------------
   CARD HEADER ACTION
   ---------------------------- */
.card-header {
    position: relative;
}

.chat-action {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chat-button {
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.chat-label {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
    font-weight: 500;
}

/* ----------------------------
   BIER-KACHEL
   ---------------------------- */
.beer-wrapper {
    flex: 0 0 auto;
}


.beer-container {
    position: sticky;
    top: 0;
    z-index: 5;
    padding-bottom: 4px; /* optional kleiner Abstand unter Kachel */
}

/* ----------------------------
   SCROLLBAR FÜR CHAT
   ---------------------------- */
@media (min-width: 901px) {
	.chat-list {
		display: flex;
		flex-direction: column;
		max-height: 300px;      /* Höhe des scrollbaren Bereichs */
		overflow-y: auto;
		gap: 4px;               /* Abstand zwischen Chat-Kacheln */
		margin-top: 10px;       /* Abstand zwischen Bier-Kachel und Chat */
		padding-right: 12px;
		box-sizing: border-box;
	}
}

/* ----------------------------
   CHAT-KACHELN
   ---------------------------- */
.chat-item {
    display: grid;
    grid-template-columns: 85px 1fr;
    grid-template-rows: auto auto;
    gap: 1px 8px;
    padding: 3px 6px;
    border-radius: 6px;
    background: #F3F6FB;
    border: 1px solid #E1E5EB;
}

/* Zebra-Farben */
.chat-item:nth-child(even) {
    background: #E8EDF5;
}

/* Linke Spalte */
.chat-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.chat-tag {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 1px 8px;
    border-radius: 999px;
    width: fit-content;
    max-width: 100%;
    white-space: nowrap;
}

.chat-tag.general   { background: #2D9CDB; color:#fff; }
.chat-tag.fun       { background: #F2C94C; color:#000; }
.chat-tag.important { background: #EB5757; color:#fff; }

.chat-time {
    font-size: 8px;
    color: var(--color-muted);
    text-align: center;
    margin-top: -1px;
    margin-bottom: -2px;
}

/* Rechte Spalte */
.chat-right {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: flex;
    align-items: center;
}

.chat-text {
    font-size: 12px;
    line-height: 1.2;
}



.chat-item.beer-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    align-items: center;
    padding: 3px 6px;
    border-radius: 8px;

    background: var(--color-accent); /* Vereinsgelb */
    border: 1px solid #bfa200;       /* etwas dunkleres Gelb */

    max-width: 85%;
    color: #1a1a1a;                  /* guter Kontrast */
    font-weight: 600;
}
.beer-left .chat-tag {
    background: #fff3a0;
    color: #5a4e1a;
    font-size: 11px;
    padding: 3px 10px;
}
.beer-player {
    font-weight: 700;
    color: #1a1a1a;
    margin-left: 4px;
}
.beer-time {
    font-size: 9px;
    color: #5a4e1a;
    margin-left: 6px;
}

/* ----------------------------
   SCROLLBAR STYLING
   ---------------------------- */
.chat-list::-webkit-scrollbar { width: 6px; }
.chat-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}