/* ============================================ */
/* PLAYER PANEL STYLES */
/* ============================================ */
.players-panel {
	background: var(--bg-light);
	border-radius: 10px;
	padding: 5px;
	overflow-y: auto;
}

.players-tabs {
	display: flex;
	border-bottom: 2px solid #ddd;
	margin-bottom: 10px;
	flex-wrap: wrap;
	gap: 2px;
}

.players-tab-btn {
	background: var(--bg-light);
	border: none;
	padding: 2px 6px;
	cursor: pointer;
	border-bottom: 2px solid transparent;
	border-radius: 5px 5px 0 0;
	font-size: 12px;
}

.players-tab-btn:hover {
	background: #e9ecef;
}

.players-tab-btn.active {
	background: #869eea;
	border-bottom-color: var(--primary-color);
	font-weight: bold;
}

.players-tab-content {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
}

.players-tab-pane {
	display: none;
}

.players-tab-pane.active {
	display: block;
}

/* ============================================ */
/* PLAYER BOARD STYLES (Vue gÃ©nÃ©rale) */
/* ============================================ */
.player-panel,
.board-player-panel {
	background: white;
	border-radius: 5px;
	padding: 10px;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.board-player-panel {
	width: var(--board-player-panel-size);
}

.player-header {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr 3fr;
	gap: 1px 10px;
	margin-bottom: 5px;
	align-items: center;
}

.player-name {
	background: var(--primary-color);
	color: white;
	padding: 3px 8px;
	border-radius: 15px;
	font-size: 15px;
	text-align: center;
}

.player-mode {
	font-size: 11px;
	padding: 3px 8px;
	border-radius: 12px;
	font-weight: bold;
}

.player-nc {
	font-weight: bold;
	color: var(--primary-color);
	font-size: 12px;
}

.player-lives {
	font-size: 12px;
	color: var(--primary-color);
}

.player-status {
	font-size: 10px;
	color: #666;
}

.player-resource-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	margin: 10px 0;
}

/* Conteneur pour la jauge VCI */
.player-vci-container {
	flex: 1;
	display: flex;
	align-items: flex-end;
	position: relative;
	min-height: 75px;
	min-width: 100px;
}

.player-vci-display {
	margin: 0px;
	flex-shrink: 0;
	height: var(--gauge-vci-size);
	width: var(--gauge-vci-size);
}

.player-vci-labels {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 12px;
	margin: 3px;
}

.player-vci-label {
	align-items: center;
	white-space: nowrap;
}

.player-vci-v { color: #28a745; }
.player-vci-c { color: #dc3545; }
.player-vci-i { color: #ffc107; }

/* Conteneur pour les jauges J/S */
.player-js-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin-top: 2px;
	gap: 1px 10px;
}

.player-js-display {
	display: flex;
	width: var(--gauge-js-width);
	height: var(--gauge-js-height);
}

.player-js-label,
.player-rv-label {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
}

/* Conteneur pour la jauge RV */
.player-rv-container {
	margin-top: 2px;
}

.player-rv-display {
	display: flex;
	width: var(--gauge-rv-width);
	height: (var(--gauge-rv-width) * 0.6);
	align-items: center;
	justify-content: center;
}

/* ============================================ */
/* PLAYER DETAIL STYLES (Vue dÃ©taillÃ©e) */
/* ============================================ */
.player-detail-section {
	margin: 0;
	padding: 5px;
	background: white;
	border-radius: 5px;
}

.player-detail-section h6 {
	margin: 0 0 8px 0;
	color: var(--primary-color);
	font-size: 12px;
	font-weight: bold;
}

/* Carte dÃ©taillÃ©e */
.player-detail-card {
	transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
	transform-origin: center;
	z-index: 1;
	aspect-ratio: 7/10;
}

.player-detail-card .current-card {
	border: 1px solid #ddd;
	border-radius: 8px;
	background: white;
	overflow: hidden;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	box-shadow: 0 5px 8px rgba(0,0,0,0.7);
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.player-detail-card .no-card {
	text-align: center;
	color: #6c757d;
	font-style: italic;
	padding: 20px;
	height: 500px;
}

.player-detail-card .card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px;
	border-bottom: 2px solid #ccc;
	flex-shrink: 0;
}

.player-detail-card .nc1-3 .card-header {
	background: linear-gradient(135deg, #8B4513, #D2691E);
	color: white;
	border-bottom-color: #8B4513;
}

.player-detail-card .nc4-6 .card-header {
	background: linear-gradient(135deg, #FFD700, #FFA500);
	color: var(--text-color);
	border-bottom-color: #FFD700;
}

.player-detail-card .nc7-9 .card-header {
	background: linear-gradient(135deg, #9370DB, #DDA0DD);
	color: white;
	border-bottom-color: #9370DB;
}

.player-detail-card .card-title {
	font-size: 14px;
	font-weight: bold;
	margin-bottom: 2px;
}

.player-detail-card .card-meta {
	font-size: 11px;
	opacity: 0.9;
}

.player-detail-card .card-content {
	padding: 8px;
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
}

/* Zones de cartes */
.player-detail-card .zone {
	border-radius: 6px;
	border-left: 1px solid;
	padding: 8px;
	margin-bottom: 4px;
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	opacity: 0.3;
}

.player-detail-card .zone.enfer {
	background: var(--bg-card-enfer);
	border-left-color: var(--border-card-enfer);
}

.player-detail-card .zone.terre {
	background: var(--bg-card-terre);
	border-left-color: var(--border-card-terre);
}

.player-detail-card .zone.ciel {
	background: var(--bg-card-ciel);
	border-left-color: var(--border-card-ciel);
}

.player-detail-card .zone.active {
	border: 1px solid;
	border-radius: 8px;
	opacity: 1.0;
}

.player-detail-card .zone.enfer.active {
	border-color: var(--border-card-enfer);
	background: var(--bg-card-enfer-active);
}

.player-detail-card .zone.terre.active {
	border-color: var(--border-card-terre);
	background: var(--bg-card-terre-active);
}

.player-detail-card .zone.ciel.active {
	border-color: var(--border-card-ciel);
	background: var(--bg-card-ciel-active);
}

.player-detail-card .zone-header {
	font-weight: bold;
	font-size: 12px;
	color: #444;
	margin-bottom: 6px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.player-detail-card .zone-narratif {
	font-size: 11px;
	line-height: 1.4;
	margin-bottom: 8px;
	color: #444;
	font-style: italic;
}

/* MÃ©caniques de cartes */
.player-detail-card .mechanic-header {
	font-weight: bold;
	font-size: 10px;
	color: #666;
	margin-bottom: 4px;
	text-transform: uppercase;
}

.player-detail-card .mechanic-content {
	font-size: 11px;
	line-height: 1.3;
}

.player-detail-card .direct-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.direct-text, .choice-text, .test-text {
	flex: 1;
}

.player-detail-card .direct-effects,
.player-detail-card .choice-effects,
.player-detail-card .test-effects {
	font-size: 10px;
	font-weight: bold;
	white-space: nowrap;
	flex-shrink: 0;
}

/* Choix */
.player-detail-card .choice-option {
	display: flex;
	align-items: flex-start;
	padding: 4px;
}

.player-detail-card .choice-option.selected {
	background: #c8f5c8;
	border-radius: 2px;
}

.player-detail-card .choice-letter {
	font-weight: bold;
	color: #666;
	min-width: 20px;
	flex-shrink: 0;
}

/* Tests */
.player-detail-card .test-condition {
	font-weight: bold;
	margin-bottom: 3px;
	color: #495057;
}

.player-detail-card .test-outcome {
	font-size: 10px;
	padding: 4px;
	border-radius: 3px;
	border: 1px solid transparent;
}

.player-detail-card .test-outcome.success {
	color: var(--success-color);
}

.player-detail-card .test-outcome.failure {
	color: var(--error-color);
}

.player-detail-card .test-outcome.success.selected {
	background: #c3e6cb;
	border-radius: 2px;
}

.player-detail-card .test-outcome.failure.selected {
	background: #f5c6cb;
	border-radius: 2px;
}

/* Ã‰changes */
.player-detail-exchanges {
	font-size: 11px;
	color: #666;
}


/* selection de choix */
.choice-option.clickable {
	cursor: pointer;
	transition: all 0.2s ease;
	border: 1px solid transparent;
	border-radius: 4px;
	padding: 4px 8px;
	margin: 2px 0;
}

.choice-option.clickable:hover {
	background-color: #f8f9fa;
	border-color: #007bff;
	box-shadow: 0 2px 4px rgba(0,123,255,0.1);
	transform: translateX(2px);
}

.choice-option.clickable:active {
	background-color: #e9ecef;
	transform: translateX(1px);
}

.choice-option.selected {
	background-color: #d4edda;
	border-color: #28a745;
	font-weight: 500;
}

.choice-option.clickable .choice-letter {
	font-weight: bold;
	color: #007bff;
}

.choice-option.clickable:hover .choice-letter {
	color: #0056b3;
}
