/**
 * VGDB Frontend Styles
 */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&display=swap');

 :root {
	--vgdb-bg: #000933; /* Dark Blue */
	--vgdb-panel-bg: rgba(255, 255, 255, 0.05); /* Slightly lighter transparent for panels */
	--vgdb-orange: #f20c59; /* Pink Accent, replacing orange logic */
	--vgdb-text: #E0E0E0;
	--vgdb-text-muted: #888899;
}

/* Base Wrapper */
/* Base Wrap for Single Page (Clean style) */
.vgdb-single-container {
	background: linear-gradient(to bottom, #000933 0%, #000933 85%, #00072a 100%);
	color: var(--vgdb-text);
	font-family: 'Oswald', sans-serif;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	border-bottom: 4px solid var(--vgdb-orange);
}

/* Base Wrap for Hub, Archive and Taxonomies (Site Background style) */
/* === CENTRALIZATION OVERRIDE (For main hub /games/ without news) === */
.vgdb-hub-container,
.vgdb-calendar-container {
	background-color: #000933;
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	background-repeat: no-repeat;
    min-height: 100vh;
    color: var(--vgdb-text);
	font-family: 'Oswald', sans-serif;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
    display: flex;
    flex-direction: column;
    position: relative; /* For persistent overlay */
}

/* Persistent Blue Filter for the whole page - Inverted: Strong on top, soft on bottom */
.vgdb-hub-container::before,
.vgdb-calendar-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(0, 9, 51, 0.95) 0%, 
        rgba(0, 9, 51, 0.85) 30%,
        rgba(0, 9, 51, 0.4) 100%
    );
    z-index: 0;
    pointer-events: none;
}

/* Ensure content stays above the filter */
.vgdb-hub-container > *,
.vgdb-calendar-container > * {
    position: relative;
    z-index: 1;
}

.vgdb-hub-container .vgdb-hero-center-layout,
.vgdb-hub-container .vgdb-hero-center-layout .vgdb-hero-info-col,
.vgdb-hub-container .vgdb-hero-center-layout .vgdb-hero-info-box,
.vgdb-hub-container .vgdb-hero-center-layout .vgdb-hero-filters-box {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.vgdb-hub-container .vgdb-hero-center-layout .vgdb-hero-info-box,
.vgdb-hub-container .vgdb-hero-center-layout .vgdb-hero-filters-box {
    width: 100% !important;
    max-width: 1200px !important;
}

.vgdb-hub-container .vgdb-hero-center-layout h1.vgdb-hub-main-title {
    width: 100% !important;
    text-align: center !important;
    font-size: 48px !important;
    margin-bottom: 20px !important;
}

.vgdb-hub-container .vgdb-hero-center-layout .vgdb-hub-description {
    text-align: center !important;
    margin: 0 auto 20px !important;
    max-width: 800px !important;
}

.vgdb-hub-container .vgdb-hero-center-layout .vgdb-alphabet-filter {
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.vgdb-hub-container .vgdb-hero-center-layout .vgdb-hero-search-row {
    justify-content: center !important;
    width: 100% !important;
    max-width: 600px !important;
}

.vgdb-hub-container .vgdb-hero-results-box {
    justify-content: center !important;
    margin-top: 15px !important;
}

.vgdb-hub-container .vgdb-breadcrumbs {
    display: flex !important;
    justify-content: center !important;
    margin: 10px auto 30px !important;
    width: 100% !important;
    gap: 15px !important;
    align-items: center !important;
}

.vgdb-breadcrumbs span.sep {
    opacity: 0.4;
    margin: 0 5px;
}

.vgdb-single-container *,
.vgdb-hub-container *,
.vgdb-calendar-container * {
	box-sizing: border-box;
}

/* === Single Game Page Hero === */
.vgdb-hero {
	position: relative;
	background-size: cover;
	background-position: center top;
	min-height: 500px;
	display: flex;
	align-items: center;
	padding: 50px 20px;
	box-shadow: inset 0 -100px 100px -50px var(--vgdb-bg); /* Blend into content */
}

.vgdb-hero-overlay {
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: linear-gradient(to top, var(--vgdb-bg) 0%, rgba(0,9,51,0.5) 100%);
	z-index: 1;
}

.vgdb-hero-content {
	position: relative;
	z-index: 5;
	max-width: 1200px;
	margin: 0 auto;
	width: 100%;
}

.vgdb-hero-inner {
	display: flex;
	gap: 40px;
	align-items: center;
}

.vgdb-cover-col {
	flex: 0 0 300px;
}

.vgdb-cover-img {
	width: 100%;
	height: auto;
	border-radius: 0;
	box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.vgdb-info-col {
	flex: 1;
}

.vgdb-back-btn {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	display: inline-flex;
	align-items: center;
	margin-bottom: 20px;
	padding: 10px 20px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	transition: all 0.2s;
	position: relative;
	z-index: 99;
	cursor: pointer;
}
.vgdb-back-btn:hover {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	border-color: #fff;
	transform: translateX(-5px);
}

.vgdb-game-title {
	font-size: 48px;
	font-weight: 800;
	margin: 0 0 15px;
	color: #fff;
	line-height: 1.1;
}

.vgdb-game-summary {
	font-size: 18px; /* Slightly larger for Oswald */
	color: #ddd;
	line-height: 1.6;
	margin-bottom: 30px;
	max-width: 800px;
	font-family: sans-serif; /* Keep summary text readable if Oswald is too blocky, usually sans-serif is better for paragraphs */
}

.vgdb-meta-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-bottom: 30px;
}

.vgdb-meta-item {
	display: flex;
	flex-direction: column;
}

.vgdb-meta-label {
	font-size: 11px;
	text-transform: uppercase;
	color: var(--vgdb-text-muted);
	letter-spacing: 1px;
	font-weight: 700;
	margin-bottom: 5px;
}

.vgdb-meta-value {
	font-size: 15px;
	font-weight: 600;
	color: #fff;
}

/* Platform Badges Styles */
.vgdb-platform-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}
.vgdb-plat-badge {
    padding: 3px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff !important;
    transition: all 0.2s ease;
    border: 1px solid rgba(255,255,255,0.1);
}
.vgdb-plat-badge:hover {
    filter: brightness(1.2);
    transform: translateY(-1px);
}
.vgdb-badge-ps { background: #003791; }
.vgdb-badge-xbox { background: #107c10; }
.vgdb-badge-pc { background: #4b4b4b; }
.vgdb-badge-nintendo { background: #e60012; }
.vgdb-badge-default { background: rgba(255,255,255,0.1); }

.vgdb-btn {
	background: #333;
	color: #fff;
	padding: 10px 20px;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 500;
	font-size: 16px;
	letter-spacing: 0.5px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	cursor: pointer;
	text-align: center;
	transition: all 0.2s ease;
	font-family: 'Oswald', sans-serif;
	text-transform: uppercase;
}

.vgdb-btn:hover {
	transform: translateY(-2px);
}

.vgdb-buttons-row {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 15px;
}

.vgdb-btn-orange {
	background: var(--vgdb-orange);
	color: #000;
}
.vgdb-btn-orange:hover {
	background: #e68a00;
	color: #000;
}

.vgdb-btn-dark {
	background: rgba(255,255,255,0.1);
	color: #fff;
	border: 1px solid rgba(255,255,255,0.2);
}
.vgdb-btn-dark:hover {
	background: rgba(255,255,255,0.2);
	color: #fff;
}

.vgdb-btn-amazon {
	background: #ff9900;
	color: #000;
	font-weight: 700;
	border: 1px solid #e68a00;
}
.vgdb-btn-amazon:hover {
	background: #e68a00;
	color: #000;
}

/* === Tabs Section === */
.vgdb-content-section {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px 60px;
}

.vgdb-tabs-nav {
	display: flex;
	gap: 2px;
	margin-top: -30px;
	position: relative;
	z-index: 10;
	background: rgba(255,255,255,0.03);
	padding: 5px;
}

.vgdb-tab-btn {
	flex: 1;
	background: rgba(255,255,255,0.05);
	border: none;
	color: var(--vgdb-text-muted);
	padding: 18px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s;
	text-transform: uppercase;
}

.vgdb-tab-btn:hover {
	background: rgba(255,255,255,0.1);
	color: #fff;
}

.vgdb-tab-btn.active {
	background: var(--vgdb-orange);
	color: #fff;
}

.vgdb-tab-content {
	display: none;
	padding: 40px 0;
}
.vgdb-tab-content.active {
	display: block;
}

/* === Sub Posts Grid (News, Reviews, Guides) === */
.vgdb-post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}

.vgdb-post-card {
	background: var(--vgdb-panel-bg);
	border-radius: 8px;
	overflow: hidden;
	transition: transform 0.2s;
}
.vgdb-post-card:hover {
	transform: translateY(-5px);
}

.vgdb-post-thumb img {
	width: 100%;
	height: 160px;
	object-fit: cover;
	display: block;
}

.vgdb-post-info {
	padding: 15px;
}

.vgdb-post-info h4 {
	margin: 0 0 10px;
	font-size: 16px;
	line-height: 1.4;
}
.vgdb-post-info h4 a {
	color: #fff;
	text-decoration: none;
}

.vgdb-post-date {
	font-size: 12px;
	color: var(--vgdb-text-muted);
}

/* === Gallery Grid === */
.vgdb-gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
.vgdb-gallery-item img {
	width: 100%;
	height: 300px;
	object-fit: cover;
	border-radius: 8px;
	display: block;
	transition: transform 0.3s;
}
.vgdb-gallery-item:hover img {
	transform: scale(1.02);
}

/* === Game Hub & Calendar === */
.vgdb-hub-header {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 20px 20px;
	text-align: center;
}

.vgdb-hub-header h1 {
	font-size: 42px;
	margin: 0 0 10px;
	color: #fff;
}

.vgdb-hub-header p {
	color: var(--vgdb-text-muted);
	margin-bottom: 30px;
}

.vgdb-hub-filters {
	display: flex;
	justify-content: center;
	gap: 15px;
	margin-bottom: 30px;
}

.vgdb-search-input, .vgdb-platform-select {
	padding: 12px 20px;
	background: var(--vgdb-panel-bg);
	border: 1px solid #333;
	border-radius: 6px;
	color: #fff;
	font-size: 16px;
	min-width: 250px;
}
.vgdb-hub-header {
	max-width: 1200px;
	margin: 0 auto;
	padding: 80px 20px 40px;
	text-align: center;
}

.vgdb-hub-main-title {
	font-size: 56px;
	text-transform: uppercase;
	margin: 0 0 40px;
	letter-spacing: -1px;
	color: #fff;
}

.vgdb-hub-controls {
	display: flex;
	flex-direction: column;
	gap: 30px;
	margin-top: 20px;
}

.vgdb-alphabet-filter {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 5px;
}

.vgdb-alphabet-filter a, .vgdb-alphabet-filter button {
	background: rgba(255,255,255,0.05);
	border: 1px solid rgba(255,255,255,0.1);
	color: #fff;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s;
	font-family: inherit;
}
.vgdb-alphabet-filter button[data-letter="all"] {
	width: auto;
	padding: 0 15px;
}

.vgdb-alphabet-filter a:hover, .vgdb-alphabet-filter button:hover, 
.vgdb-alphabet-filter a.active, .vgdb-alphabet-filter button.active {
	background: var(--vgdb-orange);
	color: #fff;
	border-color: var(--vgdb-orange);
}

.vgdb-hub-search-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	background: rgba(0,0,0,0.2);
	padding: 15px;
	border: 1px solid rgba(255,255,255,0.05);
}

.vgdb-search-wrapper {
	position: relative;
	flex: 1;
	max-width: 400px;
}
.vgdb-search-wrapper input {
	width: 100%;
	background: rgba(255,255,255,0.05);
	border: 1px solid rgba(255,255,255,0.1);
	padding: 10px 15px;
	color: #fff;
	font-family: inherit;
}

.vgdb-platform-select {
	background: rgba(255,255,255,0.1);
	border: 1px solid rgba(255,255,255,0.2);
	color: #fff;
	padding: 10px;
	font-family: inherit;
	cursor: pointer;
}
.vgdb-platform-select option {
	background: #000933;
}

.vgdb-game-grid {
	width: 100%;
	max-width: 100%;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
    box-sizing: border-box;
}

@media (max-width: 1100px) {
    .vgdb-game-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 800px) {
    .vgdb-game-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
}

@media (max-width: 500px) {
    .vgdb-game-grid { grid-template-columns: 1fr; }
}

.vgdb-hub-card {
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: 8px;
	overflow: hidden;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
}
.vgdb-hub-card:hover {
	transform: translateY(-8px);
	background: rgba(255, 255, 255, 0.08); /* Stronger glass on hover */
	border-color: var(--vgdb-orange);
	box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.vgdb-hub-cover {
	position: relative;
	overflow: hidden;
	margin-bottom: 12px;
    width: 100%;
    aspect-ratio: 2/3 !important; /* Force height before image loads */
    background: rgba(255,255,255,0.02);
}

.vgdb-hub-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.vgdb-calendar-badge {
	position: absolute;
	bottom: 10px;
	left: 10px;
	background: var(--vgdb-orange);
	color: #000;
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 13px;
	font-weight: bold;
}

.vgdb-hub-info {
	padding: 15px;
	display: flex;
	flex-direction: column;
	flex: 1; /* Stretch to fill remaining space if cards have different heights */
}

.vgdb-hub-info h3 {
	margin: 0 0 8px;
	font-size: 18px;
	color: #fff;
	line-height: 1.2;
    /* Clamping to 2 lines to prevent skeleton jump */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px; /* Fixed height for 2 lines */
}

.vgdb-hub-date {
	color: var(--vgdb-pink);
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 5px;
}

.vgdb-hub-platforms {
	color: rgba(255,255,255,0.5);
	font-size: 12px;
}

/* === Load More === */
.vgdb-load-more-container {
	display: flex;
	justify-content: center;
	padding: 50px 0 80px;
}
.vgdb-loader-spinner {
	width: 50px;
	height: 50px;
	position: relative;
	margin: 0 auto;
}
.vgdb-loader-spinner::before,
.vgdb-loader-spinner::after {
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	border-radius: 50% !important; /* Force round even with global override */
	background-color: var(--vgdb-pink);
	opacity: 0.6;
	animation: vgdb-pulse 2s infinite ease-in-out;
}
.vgdb-loader-spinner::after {
	animation-delay: -1s;
}
@keyframes vgdb-pulse {
	0%, 100% { transform: scale(0); }
	50% { transform: scale(1); }
}

/* === Skeleton Loading - Definitive Zero Shift === */
.skeleton-card {
	pointer-events: none;
	background: rgba(255,255,255,0.05) !important;
	border: 1px solid rgba(255,255,255,0.05) !important;
    padding: 15px !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
}

.skeleton-cover {
    background: rgba(255,255,255,0.05);
    position: relative; /* Change from absolute to relative to respect aspect-ratio */
    width: 100%;
    aspect-ratio: 2/3; /* Definitive size matching real images */
    height: auto;
    overflow: hidden;
}

.skeleton-line {
	height: 12px;
	background: rgba(255,255,255,0.05);
	margin-bottom: 10px;
	position: relative;
	overflow: hidden;
}

.skeleton-line.title { 
    height: 44px; 
    width: 90%; 
    margin-top: 5px;
    margin-bottom: 15px; 
}
.skeleton-line.date { width: 50%; height: 14px; }
.skeleton-line.platforms { width: 70%; height: 26px; margin-top: auto; }

.skeleton-card .skeleton-cover::after, 
.skeleton-card .skeleton-line::after {
	content: "";
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
	animation: vgdb-shimmer 1.8s infinite;
}

/* Cleanup Redundant Hub Centering Classes */
.vgdb-hero-centered-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Cleanup Redundant Systems */
.vgdb-post-grid-legacy {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}

/* === Grid Systems === */
.vgdb-post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}

/* === Split Hero Architecture === */
.split-hero-wrapper {
    background: transparent;
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

.vgdb-hero-archive {
    position: relative;
    padding: 30px 20px 60px;
    margin-bottom: 0px; 
}

@media (max-width: 900px) {
    .vgdb-hero-archive {
        padding: 20px 15px 30px;
        -webkit-mask-image: none;
        mask-image: none;
    }
}

/* Cleaned Hero Archive - Filter handled by container */
.vgdb-hero-archive::before {
    display: none;
}

.vgdb-hero-archive-content {
    max-width: 1200px; /* Same as game grid */
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.vgdb-split-hero-inner {
    display: grid;
    grid-template-columns: 1fr 380px;
    grid-template-areas: 
        "info news"
        "filters news";
    gap: 20px 30px;
    text-align: left;
    align-items: stretch;
    margin-top: 20px;
}

@media (max-width: 900px) {
    .vgdb-split-hero-inner {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }
}

.vgdb-hero-info-col {
    grid-area: info;
    display: flex;
    flex-direction: column;
}

.vgdb-hero-info-box {
    flex: 1; /* Stretch to fill height */
    background: rgba(255, 255, 255, 0.05); 
    backdrop-filter: blur(25px);
    padding: 25px 30px;
    border-radius: 0;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.2), 0 20px 50px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
}

.vgdb-hero-info-col .vgdb-hub-main-title {
    font-family: 'Oswald', sans-serif;
    font-size: 38px;
    line-height: 1.1;
    margin-bottom: 12px;
    text-align: left;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    color: #fff;
}

.vgdb-hero-info-col .vgdb-hub-description {
    text-align: left;
    margin: 0 0 15px 0;
    font-size: 15px;
    color: #ccc;
    line-height: 1.4;
    font-family: sans-serif;
}

/* Integrated Boxed Filters */
.vgdb-hero-filters-box {
    grid-area: filters;
    background: rgba(255, 255, 255, 0.05);
    padding: 18px 25px;
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 900px) {
    .vgdb-hero-filters-box {
        order: 3; /* Closer to games */
        margin-top: 0;
    }
}

.vgdb-hero-filters-box .vgdb-alphabet-filter {
    background: transparent;
    padding: 0;
    margin-bottom: 15px;
    gap: 4px;
    justify-content: flex-start;
    border: none;
}

.vgdb-hero-filters-box .vgdb-alphabet-filter button {
    font-family: 'Oswald', sans-serif;
    width: 25px;
    height: 25px;
    font-size: 11px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.05);
}

.vgdb-hero-search-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

@media (max-width: 600px) {
    .vgdb-hero-search-row {
        flex-direction: column;
    }
    .vgdb-hero-search-row .vgdb-search-wrapper,
    .vgdb-hero-search-row select {
        width: 100% !important;
        flex: none !important;
    }
}

.vgdb-hero-search-row input,
.vgdb-hero-search-row select {
    background: rgba(0,0,0,0.4) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: #fff !important;
    height: 38px;
    padding: 0 12px;
    font-size: 13px;
    border-radius: 6px;
}

.vgdb-hero-results-box {
    font-size: 12px;
    color: var(--vgdb-text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.vgdb-hero-results-box .count {
    color: var(--vgdb-orange);
    font-weight: 800;
    font-size: 14px;
}

/* Consolidated News List */
.vgdb-mini-news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: none;
    overflow: visible;
}

/* Boxed News Column */
.vgdb-hero-news-col {
    grid-area: news;
    display: flex;
    flex-direction: column;
}

@media (max-width: 900px) {
    .vgdb-hero-news-col {
        order: 2;
    }
}

.vgdb-news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.vgdb-news-header h3 {
    font-size: 13px;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
    opacity: 0.9;
    letter-spacing: 1px;
    padding-left: 5px;
    border-left: 3px solid var(--vgdb-orange);
}

.vgdb-more-news-btn {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--vgdb-orange);
    text-decoration: none;
    font-weight: 700;
    opacity: 0.8;
}

.vgdb-more-news-btn:hover { opacity: 1; }

/* Spacing adjusted above */

.vgdb-mini-news-item {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: #fff;
    transition: background 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    -webkit-font-smoothing: antialiased;
    backface-visibility: hidden;
    transform: translateZ(0);
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.vgdb-mini-news-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(252, 12, 89, 0.3);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.vgdb-mini-thumb {
    flex: 0 0 75px;
    height: 75px;
}

.vgdb-mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.vgdb-mini-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vgdb-mini-info h4 {
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 600;
}

.vgdb-mini-info span {
    font-size: 11px;
    color: var(--vgdb-text-muted);
}

.vgdb-more-news-link {
    display: none; /* Replaced by header button */
}

/* === Hero Highlight Game === */
.vgdb-hero-highlight {
    margin-top: 25px;
    position: relative;
    max-width: 450px;
}

.vgdb-hero-highlight .label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: #fff;
    opacity: 0.7;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: 1px;
}

.vgdb-highlight-card {
    display: flex;
    gap: 15px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 12px;
    border-radius: 0;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.vgdb-highlight-card:hover {
    transform: scale(1.02);
    background: rgba(255,255,255,0.12);
    border-color: var(--vgdb-orange);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.vgdb-highlight-card .thumb {
    flex: 0 0 100px;
    height: 140px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.3);
}

.vgdb-highlight-card .info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vgdb-highlight-card h4 {
    font-family: 'Oswald', sans-serif;
    margin: 0 0 5px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.vgdb-highlight-card p {
    margin: 0;
    font-size: 12px;
    color: var(--vgdb-orange);
    font-weight: 600;
}

/* Redundant News styles removed */

/* === Global Archive Components === */
.vgdb-glass-boxed {
    width: 100%; /* Fix: Ensure it takes space during loading */
    max-width: 1200px;
    margin: 0 auto 50px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0 !important;
    padding: 0;
    position: relative;
    z-index: 10;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    overflow: hidden;
}

.vgdb-glass-boxed .vgdb-game-grid {
    padding: 30px; /* Consistent internal padding */
}

.vgdb-load-more-container {
    text-align: center;
    padding: 30px 0 10px;
    margin-top: 20px;
    background: transparent !important; /* Ensure no white strip */
}

#vgdb-load-more-btn {
    background: var(--vgdb-orange);
    color: #fff;
    border: none;
    padding: 12px 35px;
    border-radius: 8px;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(242, 12, 89, 0.4);
}

#vgdb-load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(242, 12, 89, 0.6);
    filter: brightness(1.1);
}
.vgdb-breadcrumbs {
    font-size: 12px;
    color: var(--vgdb-text-muted);
}
.vgdb-breadcrumbs a { color: inherit; text-decoration: none; }
.vgdb-breadcrumbs a:hover { color: var(--vgdb-orange); }
.vgdb-breadcrumbs .active { color: #fff; font-weight: 600; }

@media (max-width: 992px) {
    .vgdb-split-hero-inner { flex-direction: column; }
    .vgdb-hero-news-col { flex: 1; width: 100%; }
}

@media (max-width: 768px) {
	.vgdb-hero-archive { padding: 40px 20px; }
	.vgdb-hero-info-col .vgdb-hub-main-title { font-size: 28px; }
	.vgdb-glass-boxed { margin: 15px; padding: 15px; }
}

/* === Skeleton Shimmer Effect === */
.skeleton-card .skeleton-cover,
.skeleton-card .skeleton-line {
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
}

.skeleton-card .skeleton-cover::after,
.skeleton-card .skeleton-line::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    animation: vgdb-shimmer 1.5s infinite;
}

@keyframes vgdb-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skeleton-line.title { height: 20px; width: 80%; margin-top: 10px; }
.skeleton-line.date { height: 12px; width: 40%; margin-top: 10px; }
.skeleton-line.platforms { height: 12px; width: 60%; margin-top: 10px; }


/* === Trailer Modal === */
.vgdb-modal {
	display: none;
	position: fixed;
	z-index: 99999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.85);
	backdrop-filter: blur(5px);
}

.vgdb-modal-content {
	position: relative;
	margin: 5% auto;
	width: 90%;
	max-width: 1000px;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 15px 50px rgba(0,0,0,0.6);
}

.vgdb-modal-close {
	position: absolute;
	top: -40px;
	right: 0;
	color: #fff;
	font-size: 35px;
	font-weight: bold;
	cursor: pointer;
	z-index: 10000;
	transition: color 0.2s;
}
.vgdb-modal-close:hover {
	color: var(--vgdb-orange);
}

.vgdb-video-wrapper {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	height: 0;
	background: #000;
}
.vgdb-video-wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.vgdb-hero-inner {
		flex-direction: column;
	}
	.vgdb-cover-col {
		flex: 0 0 auto;
		width: 200px;
		margin: 0 auto;
	}
	.vgdb-meta-grid {
		grid-template-columns: 1fr;
	}
	.vgdb-tabs-nav {
		flex-direction: column;
	}
	.vgdb-gallery-grid {
		grid-template-columns: 1fr;
	}
	.vgdb-modal-content {
		margin: 15% auto;
	}
	.vgdb-modal-close {
		top: -35px;
		font-size: 30px;
	}
}

/* === Game Info Panel on Articles (GTA 6 Design) === */
.vgdb-article-panel {
	background-color: #000 !important;
	position: relative !important;
	margin: 40px auto !important;
	padding: 30px !important;
	color: #fff !important;
	font-family: 'Oswald', sans-serif !important;
	border: none !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
    display: block !important;
    float: none !important;
}

/* Background gradient overlay */
.vgdb-article-panel::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    background: linear-gradient(to right, rgba(0, 9, 51, 0.92) 0%, rgba(0, 9, 51, 0.65) 100%) !important;
    z-index: 1 !important;
}

@media (max-width: 768px) {
    .vgdb-article-panel::before {
        background: linear-gradient(to bottom, rgba(0, 9, 51, 0.95) 0%, rgba(0, 9, 51, 0.75) 100%) !important;
    }
}

.vgdb-article-panel-inner {
	display: flex !important;
	flex-direction: row !important;
    flex-wrap: wrap !important;
	align-items: stretch !important;
	gap: 30px !important;
	padding: 0 !important;
    position: relative !important;
    z-index: 5 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    float: none !important;
    margin: 0 !important;
}

.vgdb-article-panel .vgdb-ap-cover {
	flex: 0 0 160px !important; 
    width: 160px !important;
    max-width: 160px !important;
	background: transparent !important;
    display: block !important;
    position: relative !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.vgdb-article-panel .vgdb-ap-cover img {
	width: 100% !important;
    max-width: 100% !important;
	height: auto !important;
	aspect-ratio: 2/3 !important;
	object-fit: cover !important;
	display: block !important;
	box-shadow: 0 10px 40px rgba(0,0,0,0.8) !important;
    border: 2px solid rgba(255,255,255,0.1) !important;
    position: static !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.vgdb-ap-info {
	flex: 1 !important;
	display: flex !important;
	flex-direction: column !important;
	padding: 0 !important;
    position: relative !important;
    float: none !important;
    margin: 0 !important;
}

.vgdb-ap-title {
	margin: 0 0 15px !important;
	font-size: 26px !important;
    color: #fff !important;
    font-weight: 700 !important;
	text-transform: uppercase !important;
	line-height: 1.2 !important;
    font-family: 'Oswald', sans-serif !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #f20c59 !important; /* Red underline */
    display: block !important;
    letter-spacing: 0.5px !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5) !important;
}

/* Force override Foxiz link bleeding inside panel */
.vgdb-article-panel a,
.vgdb-article-panel h3 a { 
    color: #fff !important; 
    text-decoration: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
}

.vgdb-article-panel a:hover,
.vgdb-article-panel h3 a:hover {
    color: #fff !important;
    text-decoration: none !important;
}

.vgdb-ap-table {
	width: 100% !important;
	margin-bottom: 20px !important;
	border-collapse: collapse !important;
    background: transparent !important;
    border: none !important;
}

.vgdb-article-panel .vgdb-ap-table th, 
.vgdb-article-panel .vgdb-ap-table td {
	padding: 8px 0 !important;
	border-bottom: 1px solid rgba(255,255,255,0.05) !important; 
    background: transparent !important;
    color: #fff !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
}

.vgdb-article-panel .vgdb-ap-table th {
	text-align: left !important;
	width: 35% !important;
    opacity: 0.8 !important;
    font-weight: 400 !important;
}

.vgdb-article-panel .vgdb-ap-table td {
	text-align: right !important;
	font-weight: 700 !important;
}

.vgdb-article-panel .vgdb-ap-table td a {
	color: #fff !important;
    background: transparent !important;
}

.vgdb-article-panel .vgdb-ap-table td a:hover {
    color: var(--vgdb-orange) !important;
}

.vgdb-ap-buttons {
	margin-top: auto !important;
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 10px !important;
}

.vgdb-article-panel .vgdb-ap-buttons .vgdb-btn {
	flex: 1 1 30% !important;
	padding: 10px 15px !important;
	font-size: 13px !important;
	letter-spacing: 1px !important;
	font-weight: 700 !important;
    text-transform: uppercase !important;
    border-radius: 0 !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    background: rgba(255,255,255,0.05) !important;
    color: #fff !important;
    justify-content: center !important;
    align-items: center !important;
    box-shadow: none !important;
    text-decoration: none !important;
    text-align: center !important;
    display: flex !important;
}

.vgdb-article-panel .vgdb-ap-buttons .vgdb-btn:hover {
    background: rgba(255,255,255,0.2) !important;
    border-color: #fff !important;
    color: #fff !important;
}

.vgdb-article-panel .vgdb-ap-buttons .vgdb-btn-amazon {
	flex: 1 1 100% !important;
	padding: 14px 20px !important;
	font-size: 15px !important;
	background: #ff9900 !important;
    color: #000 !important;
    border: none !important;
}

.vgdb-article-panel .vgdb-ap-buttons .vgdb-btn-amazon:hover {
    background: #e68a00 !important;
    transform: translateY(-2px) !important;
    color: #000 !important;
}

/* Mobile responsive for GTA 6 Design */
@media (max-width: 768px) {
    .vgdb-article-panel { padding: 25px 15px !important; margin: 25px auto !important; }
	.vgdb-article-panel-inner { 
		display: flex !important;
		flex-direction: column !important; 
		align-items: center !important; 
        gap: 20px !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
	}
	.vgdb-article-panel .vgdb-ap-cover { 
		flex: 0 0 auto !important;
		width: 150px !important; 
        max-width: 100% !important;
		margin: 0 auto !important;
        display: block !important;
	} 
	.vgdb-ap-info { 
        width: 100% !important; 
        min-width: 100% !important;
        text-align: center !important; 
        display: block !important; 
        visibility: visible !important;
        margin: 0 !important;
    }
	.vgdb-article-panel .vgdb-ap-table th { width: 45% !important; text-align: left !important; }
	.vgdb-article-panel .vgdb-ap-table td { text-align: right !important; }
    .vgdb-ap-title { 
        text-align: center !important; 
        font-size: 24px !important; 
        display: block !important; 
        visibility: visible !important;
        margin-bottom: 20px !important;
    }
    .vgdb-article-panel .vgdb-ap-buttons .vgdb-btn {
        background: rgba(255, 255, 255, 0.15) !important;
        border-color: rgba(255, 255, 255, 0.4) !important;
        padding: 14px 15px !important;
    }
}

/* Sharp Corners Override - Consistent with Site Standard */
.vgdb-single-container *, .vgdb-hub-container *, .vgdb-calendar-container *, .vgdb-article-panel *, .vgdb-modal *, .vgdb-btn {
	border-radius: 0 !important;
}

/* === Portal Home v3 Professional Design === */
/* End of Portal Styles */

/* === Article Panel: Structural Highlight Strip (Cat 8428) === */
.vgdb-ap-structural-strip {
    display: flex !important;
    align-items: center !important; /* Centered visually */
    padding: 20px 0 !important; /* Clean flush padding */
    text-decoration: none !important;
    color: #fff !important;
    margin: 15px 0 !important;
    transition: background 0.3s ease !important;
    position: relative !important;
    z-index: 40 !important;
    overflow: hidden !important;
    /* Prevent font thickness blinking on hover */
    -webkit-font-smoothing: antialiased !important;
    transform: translateZ(0) !important;
    backface-visibility: hidden !important;
    /* Clean transparent look with separating lines */
    background: transparent !important;
    border: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
    gap: 20px !important;
}

.vgdb-ap-structural-strip:hover {
    background: rgba(255, 255, 255, 0.03) !important;
}

.vgdb-ap-ss-thumb {
    width: 80px !important;
    height: 80px !important;
    flex-shrink: 0 !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}

.vgdb-ap-ss-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.vgdb-ap-ss-info { flex: 1 !important; }

.vgdb-ap-ss-label {
    display: inline-block !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: #f20c59 !important;
    margin-bottom: 5px !important;
}

.vgdb-ap-ss-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    margin: 0 0 5px !important;
    line-height: 1.3 !important;
    color: #fff !important;
}

.vgdb-ap-ss-more {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    color: #f20c59 !important;
}

.vgdb-ap-s-score {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    background: #f20c59 !important;
    color: #fff !important;
    padding: 5px 12px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    font-family: 'Oswald', sans-serif !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4) !important;
}

.vgdb-ap-s-score i {
    font-size: 8px !important;
    margin-bottom: 2px !important;
}

/* === Article Panel: Suggestions Strip (Cat 16540) - BOTTOM === */
.vgdb-ap-footer-posts {
    margin: 30px -30px -30px -30px !important; /* Perfect flush with 30px padded container */
    background: rgba(0, 0, 0, 0.4) !important;
    padding: 30px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    position: relative !important;
    z-index: 30 !important;
}

.vgdb-ap-footer-title {
    font-size: 13px !important;
    color: #f20c59 !important;
    text-transform: uppercase !important;
    font-weight: 600 !important; /* Slightly bolder for premium feel */
    margin: 0 0 20px !important;
    letter-spacing: 1.5px !important;
    display: block !important;
}

.vgdb-ap-extra-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 15px !important;
}

.vgdb-ap-extra-card {
    display: flex !important;
    /* Clean transparent look */
    background: transparent !important;
    padding: 10px 15px !important;
    text-decoration: none !important;
    color: #fff !important;
    transition: background 0.3s !important;
    align-items: flex-start !important;
    position: relative !important;
    z-index: 50 !important;
    /* Prevent font thickness blinking on hover */
    -webkit-font-smoothing: antialiased !important;
    transform: translateZ(0) !important;
    backface-visibility: hidden !important;
    /* Dividers between articles */
    border: none !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: none !important;
}

.vgdb-ap-extra-card:last-child {
    border-right: none !important;
}

.vgdb-ap-extra-card:hover {
    background: rgba(255, 255, 255, 0.03) !important;
}

.vgdb-ap-extra-thumb {
    width: 60px !important;
    height: 60px !important;
    flex-shrink: 0 !important;
    margin-right: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.vgdb-ap-extra-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.vgdb-ap-extra-info {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    flex: 1 !important;
}

.vgdb-ap-extra-info h4 {
    margin: 0 0 5px !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;
    color: #fff !important;
}

.vgdb-ap-extra-more {
    font-size: 10px !important;
    color: #f20c59 !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    margin-top: auto !important;
}

@media (max-width: 900px) {
    .vgdb-ap-structural-strip {
        padding: 15px 0 !important;
        flex-direction: row !important;
    }
    .vgdb-ap-ss-thumb {
        width: 60px !important;
        height: 60px !important;
    }
    .vgdb-ap-ss-title {
        font-size: 15px !important;
    }
    .vgdb-ap-footer-posts {
        margin: 30px -30px -30px -30px !important;
        padding: 25px !important;
    }
    .vgdb-ap-extra-grid {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
    .vgdb-ap-extra-card {
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        padding: 15px 0 !important;
    }
    .vgdb-ap-extra-card:last-child {
        border-bottom: none !important;
    }
}
