/* ========================================
   Bug Page Styles (2026/bugs.php)
   ======================================== */

/* Bug Controls Panel (admin only) */
.bug-controls-panel {
	display: none;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 8px;
	padding: 1rem;
	margin-top: 1rem;
	margin-bottom: 0.5rem;
}

.bug-controls-panel.active {
	display: block;
}

.bug-status-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}

.bug-label {
	font-size: 0.85rem;
	font-weight: 600;
	opacity: 0.8;
}

.bug-status-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.bug-btn {
	padding: 0.35rem 0.75rem;
	border-radius: 20px;
	font-size: 0.75rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	border: 1px solid;
}

.bug-btn:hover {
	transform: translateY(-1px);
}

.bug-btn-default {
	background: rgba(170, 170, 170, 0.1);
	border-color: rgba(170, 170, 170, 0.3);
	color: #aaa;
}
.bug-btn-default:hover {
	background: rgba(170, 170, 170, 0.2);
}

.bug-btn-pending {
	background: rgba(52, 152, 219, 0.1);
	border-color: rgba(52, 152, 219, 0.3);
	color: #3498db;
}
.bug-btn-pending:hover {
	background: rgba(52, 152, 219, 0.25);
}

.bug-btn-success {
	background: rgba(46, 204, 113, 0.1);
	border-color: rgba(46, 204, 113, 0.3);
	color: #2ecc71;
}
.bug-btn-success:hover {
	background: rgba(46, 204, 113, 0.25);
}

.bug-btn-partial {
	background: rgba(243, 156, 18, 0.1);
	border-color: rgba(243, 156, 18, 0.3);
	color: #f39c12;
}
.bug-btn-partial:hover {
	background: rgba(243, 156, 18, 0.25);
}

.bug-btn-refused {
	background: rgba(231, 76, 60, 0.1);
	border-color: rgba(231, 76, 60, 0.3);
	color: #e74c3c;
}
.bug-btn-refused:hover {
	background: rgba(231, 76, 60, 0.25);
}

.bug-btn-obsolete {
	background: rgba(149, 165, 166, 0.1);
	border-color: rgba(149, 165, 166, 0.3);
	color: #95a5a6;
}
.bug-btn-obsolete:hover {
	background: rgba(149, 165, 166, 0.25);
}

.bug-reply-input {
	width: 100%;
	padding: 0.6rem 1rem;
	background: rgba(0, 0, 0, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 6px;
	color: var(--color-text);
	font-size: 0.9rem;
}

.bug-reply-input:focus {
	outline: none;
	border-color: var(--color-alt);
}

/* Bug Status Display */
.bug-status-display {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin-top: 1rem;
	padding: 0.75rem 1rem;
	background: rgba(0, 0, 0, 0.15);
	border-radius: 8px;
	border-left: 3px solid var(--color-alt);
}

.bug-toggle-btn {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: var(--color-text);
	padding: 0.35rem 0.6rem;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s;
	font-size: 0.85rem;
}

.bug-toggle-btn:hover {
	background: var(--color-alt);
	border-color: var(--color-alt);
}

.bug-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.4rem 0.9rem;
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.bug-badge-pending {
	background: rgba(52, 152, 219, 0.15);
	color: #3498db;
	border: 1px solid rgba(52, 152, 219, 0.3);
}

.bug-badge-success {
	background: rgba(46, 204, 113, 0.15);
	color: #2ecc71;
	border: 1px solid rgba(46, 204, 113, 0.3);
}

.bug-badge-partial {
	background: rgba(243, 156, 18, 0.15);
	color: #f39c12;
	border: 1px solid rgba(243, 156, 18, 0.3);
}

.bug-badge-refused {
	background: rgba(231, 76, 60, 0.15);
	color: #e74c3c;
	border: 1px solid rgba(231, 76, 60, 0.3);
}

.bug-badge-obsolete {
	background: rgba(149, 165, 166, 0.15);
	color: #95a5a6;
	border: 1px solid rgba(149, 165, 166, 0.3);
}

.bug-reply-text {
	flex: 1;
	font-size: 0.9rem;
	line-height: 1.5;
	padding-left: 0.5rem;
	border-left: 2px solid rgba(255, 255, 255, 0.1);
}

/* Light theme */
.theme-light .bug-controls-panel {
	background: rgba(0, 0, 0, 0.02);
	border-color: rgba(0, 0, 0, 0.08);
}

.theme-light .bug-reply-input {
	background: rgba(0, 0, 0, 0.03);
	border-color: rgba(0, 0, 0, 0.12);
	color: #333;
}

.theme-light .bug-status-display {
	background: rgba(0, 0, 0, 0.03);
}

.theme-light .bug-toggle-btn {
	background: rgba(0, 0, 0, 0.05);
	border-color: rgba(0, 0, 0, 0.12);
	color: #333;
}

.theme-light .bug-reply-text {
	border-left-color: rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
	.bug-status-row {
		flex-direction: column;
		align-items: flex-start;
	}

	.bug-status-buttons {
		width: 100%;
	}

	.bug-btn {
		flex: 1;
		text-align: center;
		font-size: 0.7rem;
		padding: 0.3rem 0.5rem;
	}

	.bug-status-display {
		flex-direction: column;
		align-items: flex-start;
	}

	.bug-reply-text {
		margin-top: 0.5rem;
		padding-left: 0;
		border-left: none;
		padding-top: 0.5rem;
		border-top: 1px solid rgba(255, 255, 255, 0.1);
		width: 100%;
	}
}

/* === Bugs Page Layout & Components === */
.bugs-section {
	padding: 2rem 1rem;
	max-width: 1000px;
	margin: 0 auto;
	min-height: 60vh;
}

.bugs-container {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.bugs-info-box {
	display: flex;
	gap: 1.5rem;
	align-items: flex-start;
	background: linear-gradient(135deg, rgba(var(--color-alt-rgb), 0.08) 0%, rgba(var(--color-alt-rgb), 0.03) 100%);
	border: 1px solid rgba(var(--color-alt-rgb), 0.2);
	border-radius: 12px;
	padding: 1.5rem;
}

.bugs-info-box .info-icon {
	font-size: 2rem;
	color: var(--color-alt);
	opacity: 0.8;
}

.bugs-info-box .info-content {
	flex: 1;
}

.bugs-info-box .info-content strong {
	font-size: 1.1rem;
	display: block;
	margin-bottom: 0.5rem;
	color: var(--color-alt);
}

.bugs-info-box .info-content p {
	margin: 0;
	font-size: 0.9rem;
	opacity: 0.8;
	line-height: 1.6;
}

.bugs-info-box .info-content em {
	opacity: 0.7;
	font-size: 0.85rem;
}

/* Filters */
.bugs-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-label {
	font-size: 0.9rem;
	opacity: 0.7;
	margin-right: 0.5rem;
}

.filter-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.5rem 1rem;
	border-radius: 30px;
	font-size: 0.85rem;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.25s ease;
	border: 1px solid rgba(255, 255, 255, 0.15);
	background: rgba(255, 255, 255, 0.03);
	color: var(--color-text);
}

.filter-pill:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.25);
	transform: translateY(-1px);
}

.filter-pill.active {
	background: var(--color-alt);
	border-color: var(--color-alt);
	color: #fff;
}

.filter-pill i {
	font-size: 0.85em;
	opacity: 0.8;
}

/* Status-specific filter colors */
.filter-pending {
	border-color: rgba(52, 152, 219, 0.3);
}
.filter-pending.active {
	background: #3498db;
	border-color: #3498db;
}

.filter-success {
	border-color: rgba(46, 204, 113, 0.3);
}
.filter-success.active {
	background: #2ecc71;
	border-color: #2ecc71;
}

.filter-partial {
	border-color: rgba(243, 156, 18, 0.3);
}
.filter-partial.active {
	background: #f39c12;
	border-color: #f39c12;
}

.filter-refused {
	border-color: rgba(231, 76, 60, 0.3);
}
.filter-refused.active {
	background: #e74c3c;
	border-color: #e74c3c;
}

.filter-obsolete {
	border-color: rgba(149, 165, 166, 0.3);
}
.filter-obsolete.active {
	background: #95a5a6;
	border-color: #95a5a6;
}

/* Comments container */
.bugs-comments {
	margin-top: 1rem;
}

/* Light theme adjustments */
.theme-light .bugs-info-box {
	background: linear-gradient(135deg, rgba(139, 115, 85, 0.1) 0%, rgba(139, 115, 85, 0.03) 100%);
	border-color: rgba(139, 115, 85, 0.25);
}

.theme-light .bugs-filters {
	border-bottom-color: rgba(0, 0, 0, 0.08);
}

.theme-light .filter-pill {
	background: rgba(0, 0, 0, 0.03);
	border-color: rgba(0, 0, 0, 0.12);
	color: var(--color-text);
}

.theme-light .filter-pill:hover {
	background: rgba(0, 0, 0, 0.06);
	border-color: rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
	.bugs-info-box {
		flex-direction: column;
		gap: 1rem;
		text-align: center;
	}

	.bugs-filters {
		justify-content: center;
	}

	.filter-label {
		width: 100%;
		text-align: center;
		margin-bottom: 0.5rem;
	}
}

/* --- Global Comment Content & Citations --- */

.comment-content {
	line-height: 1.6;
	overflow-wrap: break-word;
}

.comment-content blockquote {
	position: relative;
	margin: 1.5rem 0;
	padding: 1.25rem 1.5rem 1.25rem 3.5rem;
	background: rgba(255, 255, 255, 0.04);
	border-left: 3px solid var(--color-alt);
	border-radius: 0 8px 8px 0;
	color: rgba(255, 255, 255, 0.9);
	font-style: normal;
}

.comment-content blockquote::before {
	content: "\f10d"; /* fa-quote-left */
	font-family: "FontAwesome";
	position: absolute;
	top: 1.25rem;
	left: 1.25rem;
	font-size: 1rem;
	color: var(--color-alt);
	opacity: 0.7;
}

.comment-content blockquote p {
	margin-bottom: 0.5rem;
}

.comment-content blockquote p:last-child {
	margin-bottom: 0;
}

/* Style for the user name (User a Ã©crit :) to make it look like a header */
.comment-content blockquote strong:first-child,
.comment-content blockquote p:first-child strong:first-child {
	color: var(--color-link);
	display: block;
	margin-bottom: 0.25rem;
	font-weight: 600;
	font-size: 0.9em;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* Light Theme overrides */
.theme-light .comment-content blockquote {
	background: rgba(0, 0, 0, 0.03);
	color: #333;
}

/* -------------------------------------------------------------------
   Modern Film Grid & Popover Card (autre.php 2026)
------------------------------------------------------------------- */

/* Grid Layout - matching index.php tiles */
.film-grid-container {
	display: flex;
	flex-wrap: wrap;
	padding: 0 0.6vw 80px 0.6vw; /* Exact match to tile margin */
	justify-content: flex-start;
}

@media (max-width: 768px) {
	.film-grid-container {
		justify-content: center;
		padding: 0 0.6vw 80px 0.6vw;
	}
}

/* Base Card - matching index.php .tiles__line-img */
.film-card-popover {
	--tile-margin: 0.18vw;
	display: block;
	position: relative;
	flex: none;
	width: calc(25% - var(--tile-margin) * 2);
	aspect-ratio: 3/2;
	margin: var(--tile-margin);
	background-size: cover;
	background-position: center;
	border-radius: 0;
	cursor: pointer;
	box-shadow: none;
	transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), z-index 0s 0.3s;
	z-index: 1;
	text-decoration: none !important;
}

@media (max-width: 992px) {
	.film-card-popover {
		width: calc(50% - var(--tile-margin) * 2); /* 2 per line on tablet */
	}
}

@media (max-width: 600px) {
	.film-card-popover {
		width: calc(100% - var(--tile-margin) * 2); /* 1 per line mobile */
	}
}

/* Header styles simplified to let global classes work with minimal overrides */
.content.banner {
	padding: 8vh 4vw 4vh 4vw;
}

/* Default Title Content Container */
.film-card-popover__content {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
}

.film-card-popover__content .film-title {
	transform: translateY(0);
	opacity: 1;
	font-size: min(2rem, 3.1vh);
	text-transform: uppercase;
}

@media (max-width: 768px) {
	.film-card-popover__content .film-title {
		font-size: 1.1rem;
		padding: 1rem;
	}
}

/* Gradient Overlay on Image */
.film-card-popover::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 40%, transparent 100%);
	border-radius: 0;
	transition: opacity 0.3s;
}

/* Popover Details Panel */
.film-card-popover__details {
	position: absolute;
	top: 98%; /* Slightly overlaps to avoid gaps */
	left: 0;
	width: 100%;
	background: #1e1e24; /* Dark theme background */
	color: #b0b0b0;
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	visibility: hidden;
	transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
	border-bottom-left-radius: 6px;
	border-bottom-right-radius: 6px;
	z-index: 10;
	pointer-events: none;
}

.film-card-popover__details-inner {
	padding: 15px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Hover Effects */
.film-card-popover:hover {
	transform: translateY(-8px) scale(1.02);
	z-index: 100; /* Bring to front */
	transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), z-index 0s;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}

.film-card-popover:hover .film-card-popover__details {
	max-height: 250px; /* Enough to show content */
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/* Detail Rows */
.detail-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.95rem;
}

.detail-label {
	text-transform: uppercase;
	font-size: 0.7rem;
	letter-spacing: 0.5px;
	color: #888;
	font-weight: 600;
}

.detail-value {
	color: #eee;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 65%;
	text-align: right;
}

/* Ratings */
.stats-row {
	display: flex;
	justify-content: space-between; /* Spread them out */
	background: rgba(0, 0, 0, 0.2);
	padding: 8px;
	border-radius: 4px;
	margin-top: 5px;
}

.rating-box {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 0.9rem;
	color: #fff;
}

.rating-box i {
	font-size: 0.9rem;
}

.text-yellow {
	color: #ffcc00;
}
.text-blue {
	color: #3498db;
}
.rating-count {
	font-size: .85rem;
	color: #999;
	margin-left: 2px;
}

/* -------------------------------------------------------------------
   Modern Entity Page Styles (autre.php 2026)
------------------------------------------------------------------- */

.autre-header {
	position: relative;
	min-height: 50vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	padding: 6rem 4vw 4rem 4vw;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	overflow: visible;
}

.autre-header::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(17, 17, 17, 0.4) 0%, rgba(10, 10, 10, 0.9) 100%);
	z-index: 1;
}

.autre-header > * {
	position: relative;
	z-index: 2;
}

.autre-header .content__pretitle {
	margin-top: 0;
	letter-spacing: 0.2em;
	font-size: 1.1rem;
	color: var(--color-alt);
}

.autre-header .content__title {
	font-size: 4rem;
	font-weight: 100;
	margin-bottom: 2rem;
	text-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
	line-height: 0.9;
}

.autre-header .content__text {
	max-width: 800px;
	font-size: 1.15rem;
	line-height: 1.6;
	opacity: 0.9;
	margin-bottom: 2rem;
}

/* Toolbar & Sorting */
.autre-toolbar {
	display: flex;
	gap: 2rem;
	margin-top: 2rem;
	align-items: center;
	flex-wrap: wrap;
}

.autre-toolbar-sort {
	display: flex;
	gap: 1.5rem;
	text-transform: uppercase;
	font-size: 0.85rem;
	letter-spacing: 0.1em;

/* Actions Menu Dropdown Fixes */
.autre-toolbar .dropdown {
position: relative;
}

.autre-toolbar .dropdown-toggle {
text-transform: uppercase;
font-size: 0.85rem;
letter-spacing: 0.1em;
text-decoration: none !important;
padding: 0;
color: #fff !important;
font-weight: 600;
background: none !important;
border: none !important;
cursor: pointer;
}

.autre-toolbar .dropdown-menu {
background: #1a1a1a !important;
border: 1px solid rgba(255, 255, 255, 0.1) !important;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
padding: 8px 0 !important;
z-index: 10000 !important;
min-width: 200px;
margin-top: 10px !important;
display: none;
}

/* Force menu display when active */
.autre-toolbar .dropdown.show .dropdown-menu,
.autre-toolbar .show > .dropdown-menu {
display: block !important;
}

.autre-toolbar .dropdown-item {
color: rgba(255, 255, 255, 0.8) !important;
padding: 12px 20px !important;
font-size: 0.9rem !important;
transition: all 0.2s !important;
background: transparent !important;
display: block;
width: 100%;
}

.autre-toolbar .dropdown-item:hover {
background: rgba(255, 255, 255, 0.05) !important;
color: #fff !important;
padding-left: 25px !important;
text-decoration: none !important;
}

/* Pagination Modern Redesign */
.pagination-cl-2026 {
display: flex;
justify-content: center;
align-items: center;
gap: 15px;
list-style: none;
padding: 0;
margin: 60px 0;
}

.pagination-cl-2026 .page-link {
background: rgba(255, 255, 255, 0.05) !important;
border: 1px solid rgba(255, 255, 255, 0.1) !important;
color: #fff !important;
padding: 12px 30px !important;
border-radius: 6px !important;
transition: all 0.3s !important;
text-decoration: none !important;
font-size: 0.9rem !important;
display: inline-block !important;
min-width: 140px;
text-align: center;
line-height: 1.4 !important;
}

.pagination-cl-2026 .page-link:hover {
background: var(--color-alt) !important;
border-color: var(--color-alt) !important;
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.pagination-cl-2026 .page-item.disabled .page-link {
background: transparent !important;
border-color: transparent !important;
opacity: 0.5 !important;
color: #888 !important;
min-width: auto;
padding: 0 10px !important;
cursor: default;
}

