/*
	Theme Name:   Jannah Child
	Theme URI:    http://jannah.tielabs.com/
	Description:  Jannh Child Theme
	Author:       TieLabs
	Author URI:   https://tielabs.com
	Template:     jannah
	Version:      1.0.2
	License:      license purchased
	License URI:  http://themeforest.net/licenses/regular_extended
	Tags:         Tags: two-columns, buddypress, left-sidebar, right-sidebar, custom-menu, editor-style, featured-images, full-width-template, microformats, rtl-language-support, sticky-post, threaded-comments, translation-ready
	Text Domain:  jannah-child
*/


/* write custom css after this line */

/* Homepage 2x5 card grid */
.jannah-home-card-grid {
	display: grid !important;
	grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
	column-gap: 14px;
	row-gap: 16px;
	margin: 18px 0 12px;
	padding: 0;
	list-style: none;
}

.jannah-home-card-grid > article {
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	width: auto !important;
	display: block;
	height: 100%;
}

.jannah-home-card-grid .jannah-card-grid__item {
	background: #0b0b0c;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	height: 100%;
}

.jannah-home-card-grid .jannah-card-grid__item:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

.jannah-card-grid__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: #fff;
	text-decoration: none;
}

.jannah-card-grid__media {
	position: relative;
	width: 100%;
	padding-top: 62%;
	overflow: hidden;
	background: #111;
}

.jannah-card-grid__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.jannah-card-grid__body {
	padding: 12px 12px 14px;
}

.jannah-card-grid__title {
	font-size: 15px;
	line-height: 1.35;
	margin: 0;
	color: inherit;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

@media (max-width: 1080px) {
	.jannah-home-card-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.jannah-home-card-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.jannah-home-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* No custom grid styles */

/* ================================================
   A-Z Games Page
   ================================================ */

.az-games-container {
	margin: 40px 0;
}

/* Alphabetical Navigation */
.az-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 20px;
	background: rgba(0, 0, 0, 0.5);
	border-radius: 8px;
	margin-bottom: 40px;
	justify-content: center;
	position: sticky;
	top: 80px;
	z-index: 100;
	backdrop-filter: blur(10px);
}

.az-letter {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	font-size: 16px;
	font-weight: 700;
	border-radius: 6px;
	transition: all 0.3s ease;
	text-decoration: none;
}

.az-letter.active {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.az-letter.active:hover {
	background: rgba(255, 255, 255, 0.2);
	transform: translateY(-2px);
}

.az-letter.inactive {
	color: #666;
	cursor: not-allowed;
}

/* Letter Sections */
.az-section {
	margin-bottom: 60px;
}

.az-heading {
	font-size: 48px;
	font-weight: 800;
	margin-bottom: 30px;
	padding-bottom: 15px;
	border-bottom: 3px solid rgba(255, 255, 255, 0.1);
	color: #fff;
}

/* Games Grid */
.az-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 20px;
}

@media (min-width: 1200px) {
	.az-grid {
		grid-template-columns: repeat(5, 1fr);
	}
}

@media (min-width: 768px) and (max-width: 1199px) {
	.az-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 767px) {
	.az-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 15px;
	}
}

/* Game Card */
.az-game {
	background: rgba(0, 0, 0, 0.5);
	border-radius: 8px;
	overflow: hidden;
	transition: all 0.3s ease;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.az-game:hover {
	transform: translateY(-6px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
	border-color: rgba(255, 255, 255, 0.2);
}

.az-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.az-thumb {
	position: relative;
	width: 100%;
	padding-bottom: 133%;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.3);
}

.az-thumb img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.az-game:hover .az-thumb img {
	transform: scale(1.05);
}

/* Overlay with title */
.az-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 15px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 70%, transparent 100%);
	transform: translateY(100%);
	opacity: 0;
	transition: all 0.3s ease;
}

.az-game:hover .az-overlay {
	transform: translateY(0);
	opacity: 1;
}

.az-title {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	color: #fff;
	text-align: center;
}

/* ================================================
   Modern All Games Template
   ================================================ */

/* Page Header */
.modern-page-header {
    display: none;
}

.modern-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.header-content {
    position: relative;
    z-index: 1;
}

.modern-page-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: var(--theme-gradient, linear-gradient(135deg, #e74c3c 0%, #9b59b6 100%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    max-width: fit-content;
}

.modern-page-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Search Bar */
.modern-search-bar {
    margin-bottom: 30px;
}

.search-input-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 18px;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 18px 55px 18px 55px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.search-input:focus {
    outline: none;
    border-color: var(--theme-primary-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px color-mix(in srgb, var(--theme-primary-color) 20%, transparent);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.clear-search {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-search:hover {
    background: var(--theme-primary-color);
    color: #fff;
}

/* Alphabet Filter */
.alphabet-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.alpha-btn {
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.alpha-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-2px);
}

.alpha-btn.active {
    background: var(--theme-gradient, linear-gradient(135deg, #e74c3c 0%, #9b59b6 100%));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 5px 15px color-mix(in srgb, var(--theme-primary-color) 30%, transparent);
}

.alpha-btn[data-letter="all"] {
    min-width: 50px;
}

.alpha-btn[data-letter="0-9"] {
    min-width: 50px;
}

/* No Results Message */
.no-results-message {
    text-align: center;
    padding: 80px 20px;
    margin: 40px 0;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.no-results-icon {
    font-size: 70px;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.no-results-message h3 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 700;
}

.no-results-message p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
}

/* Filter Bar */
.modern-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    gap: 20px;
}

.modern-filter-bar .filter-left {
    display: flex;
    align-items: center;
}

.modern-filter-bar .filter-center {
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0 20px;
}

.modern-filter-bar .filter-center .search-input-wrapper {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.modern-filter-bar .filter-center .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 16px;
    z-index: 2;
}

.modern-filter-bar .filter-center .search-input {
    width: 100%;
    padding: 12px 45px 12px 45px;
    border: 1px solid #d0d0d0;
    border-radius: 25px;
    font-size: 14px;
    background: #f8f9fa;
    color: #333;
}

.modern-filter-bar .filter-center .search-input::placeholder {
    color: #666;
}

.modern-filter-bar .filter-center .search-input:focus {
    outline: none;
    border-color: var(--theme-primary-color, #e74c3c);
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.modern-filter-bar .filter-center .clear-search {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #e0e0e0;
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    font-size: 12px;
}

.modern-filter-bar .filter-center .clear-search:hover {
    background: var(--theme-primary-color, #e74c3c);
    color: #fff;
}

.modern-filter-bar .filter-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.results-count {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.results-count::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--theme-gradient, linear-gradient(180deg, #e74c3c 0%, #9b59b6 100%));
    border-radius: 2px;
}

.view-options {
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px;
    border-radius: 10px;
}

.view-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.view-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.view-btn.active {
    color: #fff;
    background: var(--theme-gradient, linear-gradient(135deg, #e74c3c 0%, #9b59b6 100%));
}

/* Posts Grid */
.modern-posts-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-bottom: 60px;
}

/* Hide list content in grid view */
.list-view-content {
    display: none;
}

/* Show list content in list view */
.modern-posts-grid[data-view="list"] .list-view-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* All Games Page - List View Matching Homepage */
.modern-posts-grid[data-view="list"] {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.modern-posts-grid[data-view="list"] .modern-game-card {
    display: flex;
    max-width: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.modern-posts-grid[data-view="list"] .modern-game-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.modern-posts-grid[data-view="list"] .card-link {
    display: flex;
    width: 100%;
    gap: 0;
    max-height: 160px;
    overflow: hidden;
}

.modern-posts-grid[data-view="list"] .card-thumbnail {
    width: 280px;
    min-width: 280px;
    flex-shrink: 0;
    padding-bottom: 0;
    position: relative;
    display: flex;
    align-items: center;
}

.modern-posts-grid[data-view="list"] .card-thumbnail .card-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Hide hover overlays in list view */
.modern-posts-grid[data-view="list"] .card-overlay {
    display: none;
}

/* Game Card */
.modern-game-card {
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.8), rgba(30, 30, 30, 0.6));
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.modern-game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, color-mix(in srgb, var(--theme-primary-color, #e74c3c) 10%, transparent) 0%, color-mix(in srgb, var(--theme-secondary-color, #9b59b6) 10%, transparent) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.modern-game-card:hover::before {
    opacity: 1;
}

.modern-game-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.2);
}

.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    z-index: 2;
}

/* Card Thumbnail */
.card-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 150%;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-game-card:hover .card-image {
    transform: scale(1.15);
    filter: brightness(1.1);
}

.card-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: rgba(255, 255, 255, 0.2);
}

/* Card Overlay */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-game-card:hover .card-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modern-game-card:hover .overlay-content {
    transform: translateY(0);
}

.card-overlay .play-button {
    width: 40px;
    height: 40px;
    background: var(--theme-gradient, linear-gradient(135deg, #e74c3c 0%, #9b59b6 100%));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    transition: transform 0.3s ease;
}

.modern-game-card:hover .play-button {
    transform: scale(1.1);
}

.card-overlay .play-button i {
    font-size: 16px;
    color: #fff;
}

/* Category Badge */
.category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 3;
    letter-spacing: 0.5px;
}

/* Version Badge (Top Right) */
.version-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 15px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 6px;
}

.version-badge i {
    font-size: 11px;
}

/* Updated Badge */
.updated-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    background: rgba(46, 204, 113, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 3;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.updated-badge i {
    font-size: 10px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Update Date in Overlay */
.update-date {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 8px;
    font-weight: 500;
}

/* List View Update Info */
.list-update-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #2ecc71;
    margin-bottom: 12px;
    font-weight: 600;
}

.list-update-info i {
    font-size: 12px;
}

/* ================================================
   Timeline Updated Games Layout
   ================================================ */

/* Timeline Header */
.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0 50px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.timeline-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--theme-primary-color, #e74c3c);
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0;
}

.timeline-title i {
    color: var(--theme-primary-color, #e74c3c);
    font-size: 28px;
}

/* Timeline Container */
.timeline-container {
    position: relative;
    padding: 20px 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg,
        var(--theme-primary-color, #e74c3c) 0%,
        rgba(255, 255, 255, 0.1) 100%);
}

/* Date Group */
.timeline-date-group {
    margin-bottom: 40px;
}

.timeline-date-marker {
    position: relative;
    margin-bottom: 30px;
    padding-left: 70px;
}

.timeline-date-marker::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: var(--theme-gradient, linear-gradient(135deg, #e74c3c 0%, #9b59b6 100%));
    border-radius: 50%;
    border: 4px solid rgba(20, 20, 20, 1);
    z-index: 2;
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.5);
}

.date-label {
    font-size: 18px;
    font-weight: 700;
    color: var(--theme-primary-color, #e74c3c);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Timeline Game Card */
.timeline-game-card {
    display: flex;
    position: relative;
    margin-bottom: 30px;
    padding-left: 70px;
}

.timeline-connector {
    position: absolute;
    left: 27px;
    top: 30px;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border: 2px solid rgba(20, 20, 20, 1);
    z-index: 2;
}

.timeline-card-content {
    display: flex;
    gap: 0;
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.8), rgba(20, 20, 20, 0.9));
    border-radius: 15px;
    padding: 0;
    flex: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    max-height: 160px;
    overflow: hidden;
}

.timeline-game-card:hover .timeline-card-content {
    transform: translateX(10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Card Image */
.timeline-card-image {
    position: relative;
    width: 280px;
    min-width: 280px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.timeline-card-image a {
    display: block;
    position: relative;
    border-radius: 12px 0 0 12px;
    overflow: hidden;
}

.timeline-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.4s ease;
}

.timeline-game-card:hover .timeline-image {
    transform: scale(1.08);
}

.timeline-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    font-size: 50px;
    color: rgba(255, 255, 255, 0.2);
}

.timeline-category {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 12px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 0.5px;
}

.timeline-version-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--theme-gradient, linear-gradient(135deg, #e74c3c 0%, #9b59b6 100%));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.timeline-version-badge i {
    font-size: 11px;
}

/* Card Info */
.timeline-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 8px 15px;
    overflow: hidden;
}

.timeline-update-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    background: color-mix(in srgb, var(--theme-primary-color, #e74c3c) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--theme-primary-color, #e74c3c) 30%, transparent);
    border-radius: 20px;
    color: var(--theme-primary-color, #e74c3c);
    font-size: 10px;
    font-weight: 600;
    width: fit-content;
    margin-bottom: 4px;
}

.timeline-update-badge i {
    font-size: 12px;
}

.timeline-card-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.2;
}

.timeline-card-title a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.timeline-card-title a:hover {
    background: var(--theme-gradient, linear-gradient(135deg, #e74c3c 0%, #9b59b6 100%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.timeline-card-excerpt {
    font-size: 12px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
    flex: 1;
    overflow: hidden;
}

.timeline-card-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 4px;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.timeline-meta-item i {
    font-size: 13px;
}

.timeline-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--theme-gradient, linear-gradient(135deg, #e74c3c 0%, #9b59b6 100%));
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    width: fit-content;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px color-mix(in srgb, var(--theme-primary-color, #e74c3c) 30%, transparent);
}

.timeline-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--theme-primary-color, #e74c3c) 40%, transparent);
    color: #fff;
}

.timeline-download-btn i {
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .timeline-container::before {
        left: 15px;
    }

    .timeline-date-marker {
        padding-left: 50px;
    }

    .timeline-date-marker::before {
        left: 4px;
    }

    .timeline-game-card {
        padding-left: 50px;
    }

    .timeline-connector {
        left: 12px;
    }

    .timeline-card-content {
        flex-direction: column;
        gap: 15px;
    }

    .timeline-card-image {
        width: 100%;
    }

    .timeline-title {
        font-size: 24px;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .timeline-card-title {
        font-size: 20px;
    }

    .date-label {
        font-size: 14px;
    }
}

/* Timeline Grid View */
.timeline-container[data-view="grid"] {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    padding: 30px 0;
}

.timeline-container[data-view="grid"]::before {
    display: none;
}

.timeline-container[data-view="grid"] .timeline-date-group {
    display: contents;
}

.timeline-container[data-view="grid"] .timeline-date-marker {
    display: none;
}

.timeline-container[data-view="grid"] .timeline-game-card {
    padding: 0;
    margin: 0;
    display: block;
}

.timeline-container[data-view="grid"] .timeline-connector {
    display: none;
}

.timeline-container[data-view="grid"] .timeline-card-content {
    flex-direction: column;
    padding: 0;
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.8), rgba(20, 20, 20, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    max-height: none;
}

.timeline-container[data-view="grid"] .timeline-game-card:hover .timeline-card-content {
    transform: translateY(-10px);
}

.timeline-container[data-view="grid"] .timeline-card-image {
    width: 100%;
    position: relative;
}

.timeline-container[data-view="grid"] .timeline-image {
    height: auto;
    width: 100%;
    object-fit: contain;
}

.timeline-container[data-view="grid"] .timeline-card-info {
    padding: 8px 10px;
}

.timeline-container[data-view="grid"] .timeline-card-title {
    font-size: 12px;
}

.timeline-container[data-view="grid"] .timeline-update-badge {
    display: inline-flex !important;
    margin-bottom: 4px;
    font-size: 9px;
    padding: 2px 6px;
}

.timeline-container[data-view="grid"] .timeline-download-btn {
    width: 100%;
    justify-content: center;
    font-size: 10px;
    padding: 4px 8px;
}

.timeline-container[data-view="grid"] .timeline-version-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

/* Responsive Grid View */
@media (max-width: 1024px) {
    .timeline-container[data-view="grid"] {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .timeline-container[data-view="grid"] {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .timeline-container[data-view="grid"] {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* Overlay Title */
.overlay-title {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    margin: 0;
    padding: 0 8px;
    line-height: 1.3;
}

/* Card Body */
.card-body {
    padding: 24px;
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.9) 0%, rgba(15, 15, 15, 0.95) 100%);
}

.card-title {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.modern-game-card:hover .card-title {
    background: var(--theme-gradient, linear-gradient(135deg, #e74c3c 0%, #9b59b6 100%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.meta-item i {
    font-size: 12px;
}

.card-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.play-now {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--theme-primary-color, #e74c3c);
    transition: all 0.3s ease;
}

.modern-game-card:hover .play-now {
    gap: 12px;
    color: #fff;
}

.play-now i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.modern-game-card:hover .play-now i {
    transform: translateX(3px);
}

/* No Posts */
.modern-no-posts {
    text-align: center;
    padding: 100px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
}

.no-posts-icon {
    font-size: 80px;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.modern-no-posts h3 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 10px;
}

.modern-no-posts p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
}

/* Pagination */
.modern-pagination {
    margin-top: 60px;
    text-align: center;
}

.modern-pagination .pagination {
    display: inline-flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.modern-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modern-pagination .page-numbers:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.modern-pagination .page-numbers.current {
    background: var(--theme-gradient, linear-gradient(135deg, #e74c3c 0%, #9b59b6 100%));
    border-color: transparent;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .modern-posts-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
}

@media (max-width: 1024px) {
    .modern-posts-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .modern-page-title {
        font-size: 32px;
    }

    .modern-page-description {
        font-size: 16px;
    }

    .search-input {
        padding: 15px 50px 15px 50px;
        font-size: 15px;
    }

    .alphabet-filter {
        padding: 20px 15px;
        gap: 6px;
    }

    .alpha-btn {
        min-width: 38px;
        height: 38px;
        font-size: 13px;
    }

    .modern-filter-bar {
        padding: 15px 20px;
        flex-wrap: wrap;
        gap: 15px;
    }

    .modern-posts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .modern-posts-grid[data-view="list"] {
        grid-template-columns: 1fr;
    }

    .modern-posts-grid[data-view="list"] .card-link {
        flex-direction: row;
        max-height: 160px;
    }

    .modern-posts-grid[data-view="list"] .card-thumbnail {
        width: 280px;
        min-width: 280px;
        padding-bottom: 0;
    }

    .modern-posts-grid[data-view="list"] .list-view-content {
        padding: 18px;
    }

    .modern-posts-grid[data-view="list"] .list-title {
        font-size: 18px;
    }

    .card-title {
        font-size: 17px;
    }

    .card-body {
        padding: 18px;
    }
}

@media (max-width: 480px) {
    .modern-page-header {
        padding: 40px 20px 30px;
    }

    .modern-page-title {
        font-size: 28px;
        letter-spacing: 1px;
    }

    .search-input {
        padding: 14px 45px 14px 45px;
        font-size: 14px;
    }

    .search-icon {
        left: 15px;
        font-size: 16px;
    }

    .clear-search {
        right: 15px;
        width: 28px;
        height: 28px;
    }

    .alphabet-filter {
        padding: 15px 10px;
        gap: 5px;
    }

    .alpha-btn {
        min-width: 35px;
        height: 35px;
        font-size: 12px;
        padding: 0 8px;
    }

    .modern-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .play-button {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }
}

/* ========================================
   HOMEPAGE GRID TEMPLATE STYLES
   ======================================== */

/* Hero Section */
.homepage-hero {
    margin-bottom: 40px;
    padding: 40px;
    background: var(--theme-gradient, linear-gradient(135deg, #e74c3c 0%, #9b59b6 100%));
    border-radius: 16px;
    color: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.hero-content h1,
.hero-content h2,
.hero-content h3 {
    color: #fff;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 16px;
    line-height: 1.8;
    opacity: 0.95;
}

/* Search Bar (inline in filter bar) */
.filter-center {
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0 20px;
}

.filter-center .search-input-wrapper {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.filter-center .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 16px;
    z-index: 2;
}

.filter-center .search-input {
    width: 100%;
    padding: 12px 45px 12px 45px;
    border: 1px solid #d0d0d0;
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #333;
}

.filter-center .search-input::placeholder {
    color: #666;
}

.filter-center .search-input:focus {
    outline: none;
    border-color: var(--theme-primary-color, #e74c3c);
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.filter-center .clear-search {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #666;
    font-size: 12px;
}

.filter-center .clear-search:hover {
    background: var(--theme-primary-color, #e74c3c);
    color: #fff;
}

/* Filter Bar */
.homepage-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 2px solid #f0f0f0;
}

.filter-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: var(--theme-primary-color, #e74c3c);
}

.homepage-filter-bar .results-count {
    padding: 8px 20px;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    color: #666;
}

/* Games Grid */
.homepage-posts-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

/* Game Card */
.homepage-game-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.homepage-game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.homepage-game-card .card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Card Thumbnail */
.homepage-card-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 150%;
    overflow: hidden;
    background: #f5f5f5;
}

.homepage-card-thumbnail .card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.homepage-game-card:hover .card-image {
    transform: scale(1.1);
}

.homepage-card-thumbnail .card-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.homepage-card-thumbnail .card-placeholder i {
    font-size: 60px;
    color: #ccc;
}

/* Card Overlay */
.homepage-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.homepage-game-card:hover .homepage-card-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.homepage-game-card:hover .overlay-content {
    transform: translateY(0);
}

.homepage-card-overlay .play-button {
    width: 40px;
    height: 40px;
    background: var(--theme-gradient, linear-gradient(135deg, #e74c3c 0%, #9b59b6 100%));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    transition: transform 0.3s ease;
}

.homepage-game-card:hover .play-button {
    transform: scale(1.1);
}

.homepage-card-overlay .play-button i {
    font-size: 16px;
    color: #fff;
}

.overlay-title {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    margin: 0;
    padding: 0 8px;
    line-height: 1.3;
}

/* Version Badge (Top Right) */
.homepage-version-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 15px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    letter-spacing: 0.5px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
}

.homepage-version-badge i {
    font-size: 11px;
}

/* Card Info */
.homepage-card-info {
    padding: 15px;
    background: #fff;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 13px;
    color: #95a5a6;
}

.card-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-meta i {
    color: var(--theme-primary-color, #e74c3c);
}

/* No Posts Found */
.homepage-no-posts {
    text-align: center;
    padding: 80px 20px;
    background: #f9f9f9;
    border-radius: 12px;
}

.homepage-no-posts .no-posts-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: var(--theme-gradient, linear-gradient(135deg, #e74c3c 0%, #9b59b6 100%));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.homepage-no-posts .no-posts-icon i {
    font-size: 50px;
    color: #fff;
}

.homepage-no-posts h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.homepage-no-posts p {
    font-size: 16px;
    color: #95a5a6;
}

/* Pagination */
.homepage-pagination {
    margin-top: 50px;
    text-align: center;
    clear: both;
    display: block;
}

.homepage-pagination .pagination-wrapper {
    display: inline-block;
}

.homepage-pagination .pagination-wrapper a,
.homepage-pagination .pagination-wrapper span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    color: #666;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0 4px;
    vertical-align: middle;
}

.homepage-pagination .pagination-wrapper a:hover {
    background: var(--theme-primary-color, #e74c3c);
    border-color: var(--theme-primary-color, #e74c3c);
    color: #fff;
    transform: translateY(-2px);
}

.homepage-pagination .pagination-wrapper span.current {
    background: var(--theme-gradient, linear-gradient(135deg, #e74c3c 0%, #9b59b6 100%));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.homepage-pagination .pagination-wrapper .dots {
    border: none;
    background: transparent;
    color: #999;
}

.homepage-pagination .pagination-wrapper a.prev,
.homepage-pagination .pagination-wrapper a.next {
    gap: 8px;
}

.homepage-pagination .pagination-wrapper i {
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .homepage-posts-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .homepage-hero {
        padding: 30px 20px;
    }

    .section-title {
        font-size: 22px;
    }

    .homepage-posts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .homepage-search-bar .search-input {
        padding: 15px 50px 15px 50px;
        font-size: 14px;
    }

    .overlay-title {
        font-size: 16px;
    }

    .homepage-card-overlay .play-button {
        width: 60px;
        height: 60px;
    }

    .homepage-card-overlay .play-button i {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .homepage-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .homepage-filter-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .filter-left {
        width: 100%;
        justify-content: space-between;
    }

    .section-title {
        font-size: 20px;
    }
}

/* View & Theme Switcher Buttons */
.filter-right {
    display: flex;
    gap: 15px;
}

.view-options,
.theme-options {
    display: flex;
    gap: 8px;
    background: #f5f5f5;
    padding: 5px;
    border-radius: 8px;
}

.view-btn,
.theme-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    font-size: 16px;
}

.view-btn:hover,
.theme-btn:hover {
    background: #fff;
    color: var(--theme-primary-color, #e74c3c);
}

.view-btn.active,
.theme-btn.active {
    background: #fff;
    color: var(--theme-primary-color, #e74c3c);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Hide list content in grid view */
.homepage-list-content {
    display: none;
}

/* LIST VIEW STYLES */
.homepage-posts-grid[data-view="list"] {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.homepage-posts-grid[data-view="list"] .homepage-game-card {
    display: flex;
    max-width: 100%;
}

.homepage-posts-grid[data-view="list"] .card-link {
    display: flex;
    width: 100%;
    gap: 0;
    max-height: 160px;
    overflow: hidden;
}

/* In list view, show list content and hide grid-specific elements */
.homepage-posts-grid[data-view="list"] .homepage-list-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.homepage-posts-grid[data-view="list"] .homepage-card-overlay {
    display: none;
}

.homepage-posts-grid[data-view="list"] .homepage-card-info {
    display: none;
}

/* List View: Thumbnail on Left */
.homepage-posts-grid[data-view="list"] .homepage-card-thumbnail {
    width: 280px;
    min-width: 280px;
    padding-bottom: 0;
    position: relative;
    display: flex;
    align-items: center;
}

.homepage-posts-grid[data-view="list"] .homepage-card-thumbnail .card-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.homepage-posts-grid[data-view="list"] .homepage-category-badge {
    top: 15px;
    left: 15px;
}

/* List Content Wrapper */
.list-content-wrapper {
    padding: 8px 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    overflow: hidden;
}

/* List Header */
.list-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
}

.list-title {
    font-size: 15px;
    font-weight: 800;
    color: #2c3e50;
    margin: 0;
    line-height: 1.2;
    flex: 1;
    transition: color 0.3s ease;
}

.homepage-game-card:hover .list-title {
    color: var(--theme-primary-color, #e74c3c);
}

.list-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: linear-gradient(135deg, var(--theme-primary-color, #e74c3c) 0%, #c0392b 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    border-radius: 20px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.list-category-badge i {
    font-size: 10px;
}

/* List Excerpt */
.list-excerpt {
    font-size: 12px;
    line-height: 1.4;
    color: #666;
    margin-bottom: 4px;
    flex: 1;
    overflow: hidden;
}

/* List Footer */
.list-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 6px;
    border-top: 1px solid #f0f0f0;
}

.list-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.list-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #95a5a6;
    font-weight: 500;
}

.list-meta-item i {
    color: var(--theme-primary-color, #e74c3c);
    font-size: 11px;
}

/* Modern List Download Button */
.list-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--theme-gradient, linear-gradient(135deg, #e74c3c 0%, #9b59b6 100%));
    color: #fff;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.3);
    white-space: nowrap;
}

.homepage-game-card:hover .list-download-btn {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.list-download-btn i {
    font-size: 16px;
}

/* List View Hover Effect */
.homepage-posts-grid[data-view="list"] .homepage-game-card:hover {
    transform: translateX(5px);
}

.homepage-posts-grid[data-view="list"] .homepage-game-card:hover .card-image {
    transform: scale(1.05);
}

/* Alternating List Layout (Optional Modern Touch) */
.homepage-posts-grid[data-view="list"] .homepage-game-card:nth-child(even) {
    background: linear-gradient(90deg, #fff 0%, #f8f9fa 100%);
}

/* Responsive List View */
@media (max-width: 768px) {
    .homepage-posts-grid[data-view="list"] .card-link {
        flex-direction: column;
    }

    .homepage-posts-grid[data-view="list"] .homepage-card-thumbnail {
        width: 100%;
        height: 220px;
    }

    .list-content-wrapper {
        padding: 20px;
    }

    .list-title {
        font-size: 20px;
    }

    .list-header {
        flex-direction: column;
        gap: 12px;
    }

    .list-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .list-download-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .list-title {
        font-size: 18px;
    }

    .list-excerpt {
        font-size: 14px;
    }

    .list-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .list-content-wrapper {
        padding: 15px;
    }
}

/* ========================================
   DARK MODE STYLES
   ======================================== */

.homepage-grid-wrapper[data-theme="dark"] .homepage-posts-grid[data-view="list"] .homepage-game-card {
    background: #1a1a1a;
    border: 1px solid #333;
}

.homepage-grid-wrapper[data-theme="dark"] .homepage-posts-grid[data-view="list"] .homepage-game-card:hover {
    background: #222;
    border-color: #444;
}

.homepage-grid-wrapper[data-theme="dark"] .list-title {
    color: #fff;
}

.homepage-grid-wrapper[data-theme="dark"] .homepage-game-card:hover .list-title {
    color: var(--theme-primary-color, #e74c3c);
}

.homepage-grid-wrapper[data-theme="dark"] .list-category-badge {
    background: linear-gradient(135deg, var(--theme-primary-color, #e74c3c) 0%, #c0392b 100%);
}

.homepage-grid-wrapper[data-theme="dark"] .list-excerpt {
    color: #bbb;
}

.homepage-grid-wrapper[data-theme="dark"] .list-footer {
    border-top-color: #333;
}

.homepage-grid-wrapper[data-theme="dark"] .list-meta-item {
    color: #888;
}

.homepage-grid-wrapper[data-theme="dark"] .list-meta-item i {
    color: var(--theme-primary-color, #e74c3c);
}

.homepage-grid-wrapper[data-theme="dark"] .list-download-btn {
    background: var(--theme-gradient, linear-gradient(135deg, #e74c3c 0%, #9b59b6 100%));
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.homepage-grid-wrapper[data-theme="dark"] .homepage-game-card:hover .list-download-btn {
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6);
}

/* Dark mode for alternating rows */
.homepage-grid-wrapper[data-theme="dark"] .homepage-posts-grid[data-view="list"] .homepage-game-card:nth-child(even) {
    background: linear-gradient(90deg, #1a1a1a 0%, #1f1f1f 100%);
}

/* Dark mode for search bar */
.homepage-grid-wrapper[data-theme="dark"] .filter-center .search-input {
    background: #1a1a1a;
    border-color: #333;
    color: #fff;
}

.homepage-grid-wrapper[data-theme="dark"] .filter-center .search-input::placeholder {
    color: #666;
}

.homepage-grid-wrapper[data-theme="dark"] .filter-center .search-icon {
    color: #666;
}

.homepage-grid-wrapper[data-theme="dark"] .filter-center .search-input:focus {
    background: #222;
    border-color: var(--theme-primary-color, #e74c3c);
    box-shadow: 0 2px 12px rgba(231, 76, 60, 0.2);
}

.homepage-grid-wrapper[data-theme="dark"] .filter-center .clear-search {
    background: #333;
    color: #bbb;
}

.homepage-grid-wrapper[data-theme="dark"] .filter-center .clear-search:hover {
    background: var(--theme-primary-color, #e74c3c);
    color: #fff;
}

/* ========================================
   ALL GAMES PAGE - DARK MODE STYLES
   ======================================== */

/* Dark mode for search bar */
.modern-games-wrapper[data-theme="dark"] .modern-filter-bar .filter-center .search-input {
    background: #1a1a1a;
    border-color: #333;
    color: #fff;
}

.modern-games-wrapper[data-theme="dark"] .modern-filter-bar .filter-center .search-input::placeholder {
    color: #666;
}

.modern-games-wrapper[data-theme="dark"] .modern-filter-bar .filter-center .search-icon {
    color: #666;
}

.modern-games-wrapper[data-theme="dark"] .modern-filter-bar .filter-center .search-input:focus {
    background: #222;
    border-color: var(--theme-primary-color, #e74c3c);
    box-shadow: 0 2px 12px rgba(231, 76, 60, 0.2);
}

.modern-games-wrapper[data-theme="dark"] .modern-filter-bar .filter-center .clear-search {
    background: #333;
    color: #bbb;
}

.modern-games-wrapper[data-theme="dark"] .modern-filter-bar .filter-center .clear-search:hover {
    background: var(--theme-primary-color, #e74c3c);
    color: #fff;
}

/* Dark mode for list view */
.modern-games-wrapper[data-theme="dark"] .modern-posts-grid[data-view="list"] .modern-game-card {
    background: #1a1a1a;
    border: 1px solid #333;
}

.modern-games-wrapper[data-theme="dark"] .modern-posts-grid[data-view="list"] .modern-game-card:hover {
    background: #222;
    border-color: #444;
}

.modern-games-wrapper[data-theme="dark"] .list-title {
    color: #fff;
}

.modern-games-wrapper[data-theme="dark"] .modern-game-card:hover .list-title {
    color: var(--theme-primary-color, #e74c3c);
}

.modern-games-wrapper[data-theme="dark"] .list-category-badge {
    background: linear-gradient(135deg, var(--theme-primary-color, #e74c3c) 0%, #c0392b 100%);
}

.modern-games-wrapper[data-theme="dark"] .list-excerpt {
    color: #bbb;
}

.modern-games-wrapper[data-theme="dark"] .list-footer {
    border-top-color: #333;
}

.modern-games-wrapper[data-theme="dark"] .list-meta-item {
    color: #888;
}

.modern-games-wrapper[data-theme="dark"] .list-meta-item i {
    color: var(--theme-primary-color, #e74c3c);
}

.modern-games-wrapper[data-theme="dark"] .list-download-btn {
    background: var(--theme-gradient, linear-gradient(135deg, #e74c3c 0%, #9b59b6 100%));
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.modern-games-wrapper[data-theme="dark"] .modern-game-card:hover .list-download-btn {
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6);
}

/* ========================================
   UPDATED GAMES DARK MODE
   ======================================== */

/* Dark mode for search bar */
.updated-games-wrapper[data-theme="dark"] .modern-filter-bar .filter-center .search-input {
    background: #1a1a1a;
    border-color: #333;
    color: #fff;
}

.updated-games-wrapper[data-theme="dark"] .modern-filter-bar .filter-center .search-input::placeholder {
    color: #666;
}

.updated-games-wrapper[data-theme="dark"] .modern-filter-bar .filter-center .search-icon {
    color: #666;
}

.updated-games-wrapper[data-theme="dark"] .modern-filter-bar .filter-center .search-input:focus {
    background: #222;
    border-color: var(--theme-primary-color, #e74c3c);
    box-shadow: 0 2px 12px rgba(231, 76, 60, 0.2);
}

.updated-games-wrapper[data-theme="dark"] .modern-filter-bar .filter-center .clear-search {
    background: #333;
    color: #bbb;
}

.updated-games-wrapper[data-theme="dark"] .modern-filter-bar .filter-center .clear-search:hover {
    background: var(--theme-primary-color, #e74c3c);
    color: #fff;
}

.updated-games-wrapper[data-theme="dark"] .timeline-title {
    color: var(--theme-primary-color, #e74c3c);
}

.updated-games-wrapper[data-theme="dark"] .timeline-header {
    border-bottom-color: #333;
}

.updated-games-wrapper[data-theme="dark"] .results-count {
    color: #fff;
}

.updated-games-wrapper[data-theme="dark"] .timeline-card-content {
    background: linear-gradient(145deg, #1a1a1a, #151515);
    border-color: #333;
}

.updated-games-wrapper[data-theme="dark"] .timeline-game-card:hover .timeline-card-content {
    background: linear-gradient(145deg, #222, #1a1a1a);
    border-color: #444;
}

.updated-games-wrapper[data-theme="dark"] .timeline-card-title a {
    color: #fff;
}

.updated-games-wrapper[data-theme="dark"] .timeline-card-title a:hover {
    color: var(--theme-primary-color, #e74c3c);
}

.updated-games-wrapper[data-theme="dark"] .timeline-card-excerpt {
    color: #bbb;
}

.updated-games-wrapper[data-theme="dark"] .timeline-card-meta .timeline-meta-item {
    color: #888;
}

.updated-games-wrapper[data-theme="dark"] .timeline-update-badge {
    background: rgba(231, 76, 60, 0.15);
    color: var(--theme-primary-color, #e74c3c);
}

.updated-games-wrapper[data-theme="dark"] .timeline-category {
    background: var(--theme-gradient, linear-gradient(135deg, #e74c3c 0%, #9b59b6 100%));
}

.updated-games-wrapper[data-theme="dark"] .timeline-download-btn {
    background: var(--theme-gradient, linear-gradient(135deg, #e74c3c 0%, #9b59b6 100%));
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.updated-games-wrapper[data-theme="dark"] .timeline-game-card:hover .timeline-download-btn {
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6);
}

.updated-games-wrapper[data-theme="dark"] .date-label {
    color: var(--theme-primary-color, #e74c3c);
}

/* ========================================
   UPDATED GAMES LIGHT MODE
   ======================================== */

/* Light mode for search bar */
.updated-games-wrapper[data-theme="light"] .modern-filter-bar .filter-center .search-input {
    background: #fff;
    border-color: #ddd;
    color: #333;
}

.updated-games-wrapper[data-theme="light"] .modern-filter-bar .filter-center .search-input::placeholder {
    color: #999;
}

.updated-games-wrapper[data-theme="light"] .modern-filter-bar .filter-center .search-icon {
    color: #999;
}

.updated-games-wrapper[data-theme="light"] .modern-filter-bar .filter-center .search-input:focus {
    background: #fff;
    border-color: var(--theme-primary-color, #e74c3c);
    box-shadow: 0 2px 12px rgba(231, 76, 60, 0.15);
}

.updated-games-wrapper[data-theme="light"] .modern-filter-bar .filter-center .clear-search {
    background: #f5f5f5;
    color: #666;
}

.updated-games-wrapper[data-theme="light"] .modern-filter-bar .filter-center .clear-search:hover {
    background: var(--theme-primary-color, #e74c3c);
    color: #fff;
}

.updated-games-wrapper[data-theme="light"] .timeline-title {
    color: var(--theme-primary-color, #e74c3c);
}

.updated-games-wrapper[data-theme="light"] .timeline-header {
    border-bottom-color: #e5e5e5;
}

.updated-games-wrapper[data-theme="light"] .results-count {
    color: #333;
}

.updated-games-wrapper[data-theme="light"] .timeline-card-content {
    background: #fff;
    border-color: #e5e5e5;
}

.updated-games-wrapper[data-theme="light"] .timeline-game-card:hover .timeline-card-content {
    background: #fafafa;
    border-color: #ddd;
}

.updated-games-wrapper[data-theme="light"] .timeline-card-title a {
    color: #333;
}

.updated-games-wrapper[data-theme="light"] .timeline-card-title a:hover {
    color: var(--theme-primary-color, #e74c3c);
}

.updated-games-wrapper[data-theme="light"] .timeline-card-excerpt {
    color: #666;
}

.updated-games-wrapper[data-theme="light"] .timeline-card-meta .timeline-meta-item {
    color: #888;
}

.updated-games-wrapper[data-theme="light"] .timeline-update-badge {
    background: rgba(231, 76, 60, 0.1);
    color: var(--theme-primary-color, #e74c3c);
}

.updated-games-wrapper[data-theme="light"] .timeline-category {
    background: var(--theme-gradient, linear-gradient(135deg, #e74c3c 0%, #9b59b6 100%));
}

.updated-games-wrapper[data-theme="light"] .timeline-download-btn {
    background: var(--theme-gradient, linear-gradient(135deg, #e74c3c 0%, #9b59b6 100%));
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.2);
}

.updated-games-wrapper[data-theme="light"] .timeline-game-card:hover .timeline-download-btn {
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.updated-games-wrapper[data-theme="light"] .date-label {
    color: var(--theme-primary-color, #e74c3c) !important;
}

.updated-games-wrapper[data-theme="light"] .timeline-container::before {
    background: linear-gradient(180deg,
        var(--theme-primary-color, #e74c3c) 0%,
        rgba(0, 0, 0, 0.1) 100%);
}

.updated-games-wrapper[data-theme="light"] .timeline-date-marker::before {
    border-color: #f5f5f5;
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.3);
}

.updated-games-wrapper[data-theme="light"] .timeline-connector {
    background: rgba(0, 0, 0, 0.2);
    border-color: #f5f5f5;
}

.updated-games-wrapper[data-theme="light"] .timeline-update-badge {
    background: rgba(231, 76, 60, 0.1) !important;
    color: var(--theme-primary-color, #e74c3c) !important;
    border-color: rgba(231, 76, 60, 0.2);
}

/* ========================================
   THEME HEADER DARK MODE FIXES
   ======================================== */

/* When theme's main dark mode is active */
body.dark-skin .timeline-title,
body[data-skin="dark"] .timeline-title,
html.dark-skin .timeline-title,
.dark-skin .timeline-title,
body.dark-skin .updated-games-wrapper .timeline-title,
body[data-skin="dark"] .updated-games-wrapper .timeline-title,
html.dark-skin .updated-games-wrapper .timeline-title,
.dark-skin .updated-games-wrapper .timeline-title,
body.dark-skin .updated-games-wrapper[data-theme="light"] .timeline-title,
body[data-skin="dark"] .updated-games-wrapper[data-theme="light"] .timeline-title {
    color: var(--theme-primary-color, #e74c3c) !important;
}

body.dark-skin .homepage-filter-bar .results-count,
body[data-skin="dark"] .homepage-filter-bar .results-count,
html.dark-skin .homepage-filter-bar .results-count,
.dark-skin .homepage-filter-bar .results-count {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

/* ========================================
   LIGHT MODE FIXES (Theme Header Switcher)
   ======================================== */

/* When theme's main light mode is active */
body:not(.dark-skin):not([data-skin="dark"]) .timeline-title,
body.light-skin .timeline-title,
body[data-skin="light"] .timeline-title {
    color: var(--theme-primary-color, #e74c3c) !important;
}

body:not(.dark-skin):not([data-skin="dark"]) .alphabet-filter,
body.light-skin .alphabet-filter,
body[data-skin="light"] .alphabet-filter {
    background: rgba(0, 0, 0, 0.03) !important;
    border-color: rgba(0, 0, 0, 0.05) !important;
}

body:not(.dark-skin):not([data-skin="dark"]) .alpha-btn,
body.light-skin .alpha-btn,
body[data-skin="light"] .alpha-btn {
    background: rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: rgba(0, 0, 0, 0.7) !important;
}

body:not(.dark-skin):not([data-skin="dark"]) .alpha-btn:hover,
body.light-skin .alpha-btn:hover,
body[data-skin="light"] .alpha-btn:hover {
    background: rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
    color: #000 !important;
}

body:not(.dark-skin):not([data-skin="dark"]) .alpha-btn.active,
body.light-skin .alpha-btn.active,
body[data-skin="light"] .alpha-btn.active {
    background: var(--theme-gradient, linear-gradient(135deg, #e74c3c 0%, #9b59b6 100%)) !important;
    border-color: transparent !important;
    color: #fff !important;
}

body:not(.dark-skin):not([data-skin="dark"]) .modern-filter-bar .results-count,
body.light-skin .modern-filter-bar .results-count,
body[data-skin="light"] .modern-filter-bar .results-count {
    color: #333 !important;
}

body:not(.dark-skin):not([data-skin="dark"]) .results-count,
body.light-skin .results-count,
body[data-skin="light"] .results-count {
    color: #333 !important;
}

/* When theme's main dark mode is active - Enhanced selectors */
body.dark-skin .alphabet-filter,
body[data-skin="dark"] .alphabet-filter,
body.dark-mode .alphabet-filter,
html.dark-skin .alphabet-filter,
html[data-dark-mode="true"] .alphabet-filter,
.dark-skin .alphabet-filter {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

body.dark-skin .alpha-btn,
body[data-skin="dark"] .alpha-btn,
body.dark-mode .alpha-btn,
html.dark-skin .alpha-btn,
html[data-dark-mode="true"] .alpha-btn,
.dark-skin .alpha-btn {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

body.dark-skin .alpha-btn:hover,
body[data-skin="dark"] .alpha-btn:hover,
body.dark-mode .alpha-btn:hover,
html.dark-skin .alpha-btn:hover,
html[data-dark-mode="true"] .alpha-btn:hover,
.dark-skin .alpha-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}

body.dark-skin .alpha-btn.active,
body[data-skin="dark"] .alpha-btn.active,
body.dark-mode .alpha-btn.active,
html.dark-skin .alpha-btn.active,
html[data-dark-mode="true"] .alpha-btn.active,
.dark-skin .alpha-btn.active {
    background: var(--theme-gradient, linear-gradient(135deg, #e74c3c 0%, #9b59b6 100%)) !important;
    border-color: transparent !important;
    color: #fff !important;
}

body.dark-skin .modern-filter-bar .results-count,
body[data-skin="dark"] .modern-filter-bar .results-count,
body.dark-mode .modern-filter-bar .results-count,
html.dark-skin .modern-filter-bar .results-count,
html[data-dark-mode="true"] .modern-filter-bar .results-count,
.dark-skin .modern-filter-bar .results-count {
    color: #fff !important;
}

body.dark-skin .results-count,
body[data-skin="dark"] .results-count,
body.dark-mode .results-count,
html.dark-skin .results-count,
html[data-dark-mode="true"] .results-count,
.dark-skin .results-count {
    color: #fff !important;
}

/* Ultra-specific dark mode overrides */
body.dark-skin .alphabet-filter .alpha-btn,
body[data-skin="dark"] .alphabet-filter .alpha-btn,
html.dark-skin .alphabet-filter .alpha-btn,
.dark-skin .alphabet-filter .alpha-btn {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

body.dark-skin .alphabet-filter .alpha-btn:hover,
body[data-skin="dark"] .alphabet-filter .alpha-btn:hover,
html.dark-skin .alphabet-filter .alpha-btn:hover,
.dark-skin .alphabet-filter .alpha-btn:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.15) !important;
}

/* Ultra-specific results count dark mode overrides */
body.dark-skin .modern-filter-bar .filter-left .results-count,
body[data-skin="dark"] .modern-filter-bar .filter-left .results-count,
html.dark-skin .modern-filter-bar .filter-left .results-count,
.dark-skin .modern-filter-bar .filter-left .results-count {
    color: #fff !important;
}

body.dark-skin .filter-left .results-count,
body[data-skin="dark"] .filter-left .results-count,
html.dark-skin .filter-left .results-count,
.dark-skin .filter-left .results-count {
    color: #fff !important;
}

/* Force white text on dark backgrounds (media query approach) */
@media (prefers-color-scheme: dark) {
    .alpha-btn {
        color: #fff !important;
    }
    .results-count {
        color: #fff !important;
    }
}

/* ========================================
   ALPHABET SECTION HEADERS
   ======================================== */

.alphabet-section-header {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 0 15px 0;
    margin: 40px 0 25px;
    border-bottom: 3px solid var(--theme-primary-color, #e74c3c);
    position: relative;
}

.alphabet-heading {
    font-size: 48px;
    font-weight: 800;
    color: var(--theme-primary-color, #e74c3c);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
}

.alphabet-count {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    background: var(--theme-primary-color, #e74c3c);
    margin-left: auto;
}

/* List view specific */
.modern-posts-grid[data-view="list"] .alphabet-section-header {
    width: 100%;
    margin: 50px 0 25px;
}

/* First section header */
.alphabet-section-header:first-child {
    margin-top: 0;
}

/* Light mode for alphabet headers - ensure theme color */
body:not(.dark-skin):not([data-skin="dark"]) .alphabet-section-header,
body.light-skin .alphabet-section-header,
body[data-skin="light"] .alphabet-section-header {
    border-bottom-color: var(--theme-primary-color, #e74c3c) !important;
}

body:not(.dark-skin):not([data-skin="dark"]) .alphabet-heading,
body.light-skin .alphabet-heading,
body[data-skin="light"] .alphabet-heading {
    color: var(--theme-primary-color, #e74c3c) !important;
}

body:not(.dark-skin):not([data-skin="dark"]) .alphabet-count,
body.light-skin .alphabet-count,
body[data-skin="light"] .alphabet-count {
    background: var(--theme-primary-color, #e74c3c) !important;
    color: #fff !important;
}

/* Dark mode for alphabet headers */
body.dark-skin .alphabet-section-header,
body[data-skin="dark"] .alphabet-section-header,
html.dark-skin .alphabet-section-header,
.dark-skin .alphabet-section-header {
    border-bottom-color: var(--theme-primary-color, #e74c3c) !important;
}

body.dark-skin .alphabet-heading,
body[data-skin="dark"] .alphabet-heading,
html.dark-skin .alphabet-heading,
.dark-skin .alphabet-heading {
    color: var(--theme-primary-color, #e74c3c) !important;
}

body.dark-skin .alphabet-count,
body[data-skin="dark"] .alphabet-count,
html.dark-skin .alphabet-count,
.dark-skin .alphabet-count {
    background: var(--theme-primary-color, #e74c3c) !important;
    color: #fff !important;
}

/* ================================================
   Single Game Post Layout
   ================================================ */

/* Game Header */
.game-header {
    margin-bottom: 40px;
}

.game-header-content {
    margin-bottom: 25px;
}

.game-title {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 20px;
    line-height: 1.2;
}

.game-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.game-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    font-size: 14px;
    color: #bbb;
}

.game-meta i {
    color: var(--theme-primary-color, #e74c3c);
    font-size: 13px;
}

.game-category,
.game-version {
    background: var(--theme-gradient, linear-gradient(135deg, #e74c3c 0%, #9b59b6 100%));
    color: #fff;
    font-weight: 600;
}

.game-category i,
.game-version i {
    color: #fff;
}

/* Featured Image */
.game-featured-image {
    margin-bottom: 40px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.game-featured-image .game-thumbnail {
    width: 100%;
    height: auto;
    display: block;
}

/* Section Headings */
.section-heading {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin: 40px 0 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--theme-primary-color, #e74c3c);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-heading i {
    color: var(--theme-primary-color, #e74c3c);
    font-size: 24px;
}

/* Game Description */
.game-description {
    margin-bottom: 40px;
}

.game-content {
    font-size: 16px;
    line-height: 1.8;
    color: #ddd;
}

.game-content p {
    margin-bottom: 20px;
}

.game-content h2,
.game-content h3,
.game-content h4 {
    color: #fff;
    margin: 30px 0 15px;
}

.game-content ul,
.game-content ol {
    margin: 20px 0;
    padding-left: 30px;
    color: #ddd;
}

.game-content li {
    margin-bottom: 10px;
}

/* Screenshots */
.game-screenshots {
    margin-bottom: 40px;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.screenshot-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.screenshot-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Game Info Grid */
.game-info-section {
    margin-bottom: 40px;
}

.game-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.8), rgba(20, 20, 20, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: linear-gradient(145deg, rgba(40, 40, 40, 0.8), rgba(30, 30, 30, 0.9));
    border-color: rgba(255, 255, 255, 0.2);
}

.info-label {
    font-weight: 600;
    color: #aaa;
    font-size: 14px;
}

.info-value {
    font-weight: 600;
    color: #fff;
    font-size: 15px;
}

/* System Requirements */
.system-requirements {
    margin-bottom: 40px;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.requirements-column {
    padding: 25px;
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.8), rgba(20, 20, 20, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.requirements-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--theme-primary-color, #e74c3c);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirements-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #ddd;
    font-size: 14px;
    line-height: 1.6;
}

.requirements-list li:last-child {
    border-bottom: none;
}

.requirements-list strong {
    color: #fff;
    font-weight: 600;
    display: inline-block;
    min-width: 100px;
}

/* Download Section */
.game-download-section {
    margin: 50px 0;
    text-align: center;
}

.game-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 18px 50px;
    background: var(--theme-gradient, linear-gradient(135deg, #e74c3c 0%, #9b59b6 100%));
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
    transition: all 0.3s ease;
}

.game-download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(231, 76, 60, 0.6);
    color: #fff;
}

.game-download-btn i {
    font-size: 20px;
}

/* Sidebar */
.sidebar-sticky {
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.8), rgba(20, 20, 20, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
}

.widget-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-title i {
    color: var(--theme-primary-color, #e74c3c);
    font-size: 18px;
}

/* Popular Posts */
.popular-posts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popular-post-item {
    display: flex;
    gap: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.popular-post-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.popular-post-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.popular-thumb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.popular-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.popular-post-title {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.popular-post-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.popular-post-title a:hover {
    color: var(--theme-primary-color, #e74c3c);
}

.popular-post-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #888;
}

.popular-post-meta i {
    color: var(--theme-primary-color, #e74c3c);
}

/* Responsive */
@media (max-width: 768px) {
    .game-title {
        font-size: 28px;
    }

    .game-meta {
        gap: 10px;
    }

    .section-heading {
        font-size: 22px;
    }

    .screenshots-grid {
        grid-template-columns: 1fr;
    }

    .game-info-grid {
        grid-template-columns: 1fr;
    }

    .requirements-grid {
        grid-template-columns: 1fr;
    }

    .game-download-btn {
        padding: 15px 35px;
        font-size: 16px;
    }
}

/* ================================================
   Game Tabs
   ================================================ */

.game-tabs-container {
    margin: 40px 0;
}

/* Tab Navigation */
.game-tabs-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 3px solid rgba(255, 255, 255, 0.1);
    overflow-x: auto;
    flex-wrap: wrap;
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-bottom: 3px solid transparent;
    border-radius: 12px 12px 0 0;
    color: #999;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    margin-bottom: -3px;
}

.tab-btn i {
    font-size: 18px;
    transition: color 0.3s ease;
}

.tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--theme-primary-color, #e74c3c);
}

.tab-btn:hover i {
    color: var(--theme-primary-color, #e74c3c);
}

.tab-btn.active {
    color: #fff;
    border-color: var(--theme-primary-color, #e74c3c);
    border-bottom-color: var(--theme-primary-color, #e74c3c);
    background: var(--theme-gradient, linear-gradient(135deg, #e74c3c 0%, #9b59b6 100%));
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.tab-btn.active i {
    color: #fff;
}

/* Tab Content */
.game-tabs-content {
    position: relative;
    padding: 30px;
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.8), rgba(20, 20, 20, 0.9));
    border: 2px solid var(--theme-primary-color, #e74c3c);
    border-radius: 15px;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Tabs */
@media (max-width: 768px) {
    .game-tabs-nav {
        gap: 5px;
    }

    .tab-btn {
        padding: 12px 18px;
        font-size: 14px;
    }

    .tab-btn span {
        display: none;
    }

    .tab-btn i {
        font-size: 20px;
    }

    .game-tabs-content {
        padding: 20px;
    }
}

/* All Games List View Hover - Title Color */
.modern-posts-grid[data-view="list"] .modern-game-card:hover .list-title {
    color: var(--theme-primary-color, #e74c3c) !important;
}

