/*
 * استایل شورتکد نمایش روم‌های تورنمنت با ظرفیت زنده
 * بدون هیچ آیکون/شکلک؛ فقط تایپوگرافی و رنگ
 */

.nb-rooms-wrapper {
	max-width: 1100px;
	margin: 30px auto;
	font-family: inherit;
	box-sizing: border-box;
}

.nb-rooms-wrapper * {
	box-sizing: border-box;
}

.nb-rooms-section-title {
	color: #fff;
	font-size: 18px;
	margin: 28px 0 14px;
	border-right: 3px solid #ff9900;
	padding-right: 10px;
}

.nb-rooms-section-title:first-child {
	margin-top: 0;
}

.nb-rooms-empty {
	background: rgba(16, 21, 29, 0.9);
	border: 1px dashed rgba(255, 255, 255, 0.12);
	border-radius: 12px;
	padding: 24px;
	text-align: center;
	color: #9aa4b2;
}

.nb-rooms-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
	gap: 16px;
}

.nb-room-card {
	background: #101820;
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 14px;
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.nb-room-full {
	opacity: 0.75;
}

.nb-room-card-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 8px;
}

.nb-room-title {
	color: #fff;
	font-size: 16px;
	margin: 0;
}

.nb-room-type-badge {
	flex-shrink: 0;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	white-space: nowrap;
}

.nb-room-type-free {
	background: #d4edda;
	color: #1e7e34;
}

.nb-room-type-paid {
	background: #fff3cd;
	color: #8a6d00;
}

.nb-room-desc {
	color: #9aa4b2;
	font-size: 13px;
	line-height: 1.7;
	margin: 0;
}

.nb-room-schedule {
	color: #d7dce2;
	font-size: 12px;
	background: rgba(255, 255, 255, 0.04);
	border-radius: 6px;
	padding: 6px 10px;
	display: inline-block;
}

.nb-room-capacity-bar {
	background: #1c2733;
	border-radius: 20px;
	height: 8px;
	overflow: hidden;
}

.nb-room-capacity-fill {
	height: 100%;
	background: linear-gradient(90deg, #00c896 0%, #ff9900 70%, #ff5c33 100%);
	border-radius: 20px;
	transition: width 0.3s ease;
}

.nb-room-capacity-text {
	color: #9aa4b2;
	font-size: 12px;
	margin-top: 4px;
}

.nb-room-capacity-text strong {
	color: #fff;
}

.nb-room-price {
	color: #00c896;
	font-weight: 700;
	font-size: 15px;
}

.nb-room-price span {
	color: #6b7684;
	font-weight: 400;
	font-size: 12px;
}

.nb-room-payment {
	background: rgba(255, 255, 255, 0.04);
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 12px;
	color: #d7dce2;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.nb-room-payment-row {
	display: flex;
	justify-content: space-between;
	gap: 8px;
}

.nb-room-payment-note {
	flex-direction: column;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	padding-top: 6px;
	margin-top: 2px;
}

.nb-room-payment-note a {
	color: #ff9900;
	word-break: break-all;
}

.nb-room-join-btn {
	display: block;
	text-align: center;
	padding: 12px 16px;
	border: none;
	border-radius: 10px;
	background: linear-gradient(135deg, #ff9900 0%, #ff5c33 100%);
	color: #fff !important;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	cursor: pointer;
	margin-top: auto;
}

.nb-room-join-disabled {
	background: #3a4048;
	color: #8a919a !important;
	cursor: not-allowed;
}

.nb-room-participants {
	background: rgba(255, 255, 255, 0.03);
	border-radius: 8px;
	padding: 6px 10px;
}

.nb-room-participants summary {
	color: #ff9900;
	font-size: 12px;
	cursor: pointer;
	list-style: none;
}

.nb-room-participants summary::-webkit-details-marker {
	display: none;
}

.nb-room-participants-list {
	list-style: none;
	margin: 10px 0 2px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
	max-height: 180px;
	overflow-y: auto;
}

.nb-room-participants-list li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 12px;
	color: #d7dce2;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	padding-bottom: 6px;
}

.nb-room-participant-team {
	color: #00c896;
	font-size: 11px;
	font-weight: 700;
	white-space: nowrap;
}

.nb-room-participant-pending {
	color: #ffb84d;
	font-size: 11px;
	white-space: nowrap;
}

@media (max-width: 480px) {
	.nb-rooms-grid {
		grid-template-columns: 1fr;
	}
}
