/* F95 Games plugin — game components in the f95theme (f95zone.to.it) style:
   white cards, soft shadows, pink #f00a77 accents, black chips. */

/* --- Breadcrumbs --- */
.f95g-breadcrumbs {
	font-size: 0.85em;
	color: #9a9ba3;
	margin: 0 0 20px;
}

.f95g-breadcrumbs a {
	color: #b9bac2;
}

/* --- Single game header --- */
.f95g-game-header {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	align-items: flex-start;
	background: #1a1b1f;
	padding: 30px;
	border-radius: 5px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.f95g-cover img {
	max-width: 320px;
	width: 100%;
	height: auto;
	border-radius: 5px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.f95g-game-info {
	flex: 1;
	min-width: 280px;
}

.f95g-title {
	margin-top: 0;
	font-size: 34px;
	font-weight: 700;
	color: #f5f5f5;
}

.f95g-meta-table {
	border-collapse: collapse;
	margin: 1em 0;
	width: 100%;
}

.f95g-meta-table th {
	text-align: left;
	padding: 6px 14px 6px 0;
	color: #9a9ba3;
	font-weight: 600;
	white-space: nowrap;
}

.f95g-meta-table td {
	padding: 6px 0;
	color: #f5f5f5;
	font-weight: 500;
}

.f95g-tags {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.f95g-tags li a {
	display: inline-block;
	background: #26272d;
	border-radius: 3px;
	padding: 3px 10px;
	font-size: 0.85em;
	text-decoration: none;
	color: #b9bac2;
	transition: all 0.3s ease;
}

.f95g-tags li a:hover {
	background: #f00a77;
	color: #1a1b1f;
}

/* --- Buttons --- */
.f95g-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 1.6em 0;
}

.f95g-btn {
	display: inline-block;
	background: #f00a77;
	color: #1a1b1f;
	padding: 13px 28px;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-size: 0.95em;
	transition: background 0.3s ease;
}

.f95g-btn:hover,
.f95g-btn:focus {
	background: #c0055c;
	color: #1a1b1f;
}

.f95g-btn-orig {
	background: #e10600;
	text-transform: none;
	font-weight: 700;
}

.f95g-btn-orig:hover,
.f95g-btn-orig:focus {
	background: #ff1a13;
	color: #fff;
}

/* --- Developer links --- */
.f95g-devlinks {
	font-size: 0.9em;
	color: #b9bac2;
}

.f95g-devlinks a {
	margin-left: 4px;
}

/* --- Description / downloads / changelog panels --- */
.f95g-description,
.f95g-downloads,
.f95g-gallery,
.f95g-related,
.f95g-changelog {
	background: #1a1b1f;
	padding: 30px;
	border-radius: 5px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
	margin-top: 30px;
}

.f95g-description h2,
.f95g-downloads h2,
.f95g-gallery h2,
.f95g-related h2 {
	margin-top: 0;
	font-weight: 700;
}

.f95g-download-group {
	margin-bottom: 1.2em;
	padding-bottom: 1.2em;
	border-bottom: 1px solid #26272d;
}

.f95g-download-group:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.f95g-download-group h3 {
	margin-bottom: 0.5em;
	font-size: 18px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #f5f5f5;
}

/* --- Gallery --- */
.f95g-gallery a {
	display: inline-block;
	margin: 0 10px 10px 0;
	border-radius: 4px;
	overflow: hidden;
	max-width: 100%;
}

.f95g-gallery img {
	max-width: 100%;
	height: auto;
	display: block;
	transition: opacity 0.3s ease;
}

.f95g-gallery a:hover img {
	opacity: 0.85;
}

/* --- Changelog --- */
.f95g-changelog summary {
	cursor: pointer;
	font-weight: 700;
	color: #f00a77;
	padding: 4px 0;
	list-style-position: outside;
}

.f95g-changelog-content {
	padding: 15px;
	border: 1px solid #26272d;
	border-top: none;
	border-radius: 0 0 4px 4px;
	font-size: 0.9em;
	max-height: 480px;
	overflow-y: auto;
}

/* --- Source note --- */
.f95g-source {
	color: #9a9ba3;
	font-size: 0.9em;
}

/* --- Related games --- */
.f95g-related ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 14px;
}

.f95g-related a {
	display: block;
	text-decoration: none;
	color: inherit;
}

.f95g-related img {
	width: 100%;
	height: auto;
	border-radius: 4px;
}

.f95g-related span {
	display: block;
	font-size: 0.9em;
	margin-top: 4px;
	font-weight: 600;
	color: #f5f5f5;
}

/* --- Archive / front feed --- */
.f95g-archive-title {
	font-size: 36px;
	font-weight: 800;
}

.f95g-search {
	display: flex;
	gap: 10px;
	margin: 0 0 28px;
}

.f95g-search input[type="search"] {
	flex: 1;
	height: 48px;
	background: #1a1b1f;
	color: #e8e8e8;
	border: 2px solid #33343a;
	border-radius: 6px;
	padding: 6px 16px;
	font-size: 1.05em;
}

.f95g-search input[type="search"]:focus {
	border-color: #f00a77;
	outline: none;
}

.f95g-search button {
	height: 48px;
	padding: 0 34px;
	background: #f00a77;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 1em;
	cursor: pointer;
	transition: background 0.3s ease;
}

.f95g-search button:hover {
	background: #c0055c;
}

.f95g-empty {
	color: #9a9ba3;
}

.f95g-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 20px;
}

/* Uniform card: fixed cover ratio, aligned titles and rows */
.f95g-card {
	background: #1a1b1f;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
	transition: box-shadow 0.3s ease, transform 0.3s ease;
	display: flex;
	flex-direction: column;
}

.f95g-card:hover {
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
	transform: translateY(-3px);
}

.f95g-card-link {
	text-decoration: none;
	color: inherit;
	display: block;
}

.f95g-card-thumb {
	position: relative;
	overflow: hidden;
	aspect-ratio: 3 / 4;
	background: #26272d;
}

.f95g-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.f95g-card-noimg {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #55565e;
	font-size: 0.9em;
}

.f95g-card-version {
	position: absolute;
	bottom: 8px;
	right: 8px;
	background: #121316;
	color: #f5f5f5;
	font-size: 0.75em;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 3px;
	border: 1px solid #33343a;
}

.f95g-card-title {
	font-family: 'Montserrat', 'Heebo', sans-serif;
	font-size: 1em;
	font-weight: 700;
	line-height: 1.35;
	height: 2.7em;
	overflow: hidden;
	margin: 12px 14px 8px;
	color: #f5f5f5;
}

/* Red Download button on every card */
.f95g-card-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0 14px;
	padding: 10px 0;
	background: #e10600;
	color: #fff !important;
	border-radius: 5px;
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 0.9em;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	text-decoration: none;
	transition: background 0.3s ease;
}

.f95g-card-btn:hover,
.f95g-card-btn:focus {
	background: #ff1a13;
	color: #fff !important;
}

.f95g-card-btn svg {
	transform: translateY(-1px);
}

.f95g-card-tags {
	padding: 10px 14px 14px;
	height: 2.2em;
	overflow: hidden;
}

.f95g-card-tags a {
	font-size: 0.78em;
	color: #8a8b93;
	margin-right: 8px;
	text-decoration: none;
}

.f95g-card-tags a:hover {
	color: #f00a77;
}

.f95g-pagination {
	margin: 2em 0;
}

@media (max-width: 640px) {
	.f95g-game-header {
		flex-direction: column;
		padding: 16px;
	}

	.f95g-cover img {
		max-width: 100%;
	}

	.f95g-description,
	.f95g-downloads,
	.f95g-gallery,
	.f95g-related,
	.f95g-changelog {
		padding: 16px;
	}
}
