/*
Theme Name: Android Game Share
Theme URI: https://example.com/android-game-theme
Author: Your Name
Author URI: https://example.com
Description: Theme chia sẻ game Android với bố cục grid linh hoạt, hỗ trợ responsive và tùy chỉnh giao diện qua customizer.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: games, android, grid-layout, responsive, custom-post-type
Text Domain: android-game-share
*/

/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   SITE HEADER
   ============================================ */

.site-header {
    background: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.site-branding {
    flex-shrink: 0;
    z-index: 1001;
}

.site-branding .custom-logo {
    max-height: 50px;
    width: auto;
    display: block;
}

.site-title a {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
    text-decoration: none;
}



/* ============================================
   NAVIGATION MENU - DESKTOP
   ============================================ */

.main-navigation {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    order: 2;
}

.nav-menu {
    display: flex;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    display: block;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 15px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
}
.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
    background: #667eea;
    color: #fff;
}

/* Banner */
.site-banner {
    width: 100%;
    margin: 20px 0;
}

.site-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* Main Content */
.site-content {
    padding: 10px 0;
}

/* Grid Layout */
.games-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.game-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.game-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.game-thumbnail {
    width: 100%;
    position: relative;
    padding-bottom: 100%; /* 1:1 ratio */
    overflow: hidden;
    background: #e0e0e0;
}

.game-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-info {
    padding: 15px;
}

.game-title {
    font-size: 16px;
    margin: 0 0 10px 0;
    font-weight: bold;
}

.game-title a {
    color: #333;
    text-decoration: none;
}

.game-title a:hover {
    color: #007bff;
}

.game-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* Normal Layout */
.games-list .game-item {
    display: flex;
    margin-bottom: 20px;
}

.games-list .game-thumbnail {
    width: 150px;
    min-width: 150px;
    padding-bottom: 0;
    height: 150px;
}

.games-list .game-info {
    flex: 1;
}

/* Single Game Page */
.single-game {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.single-game-header {
    display: flex;
    gap: 130px;
    margin-bottom: 30px;
}

.single-game-thumbnail {
    width: 200px;
    min-width: 200px;
}

.single-game-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.single-game-title {
    font-size: 32px;
    margin-bottom: 20px;
}

.game-content {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 5px;
}

.game-downloads {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.game-downloads h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.download-link {
    display: inline-block;
    background: #28a745;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    margin: 5px 10px 5px 0;
    transition: background 0.3s;
}

.download-link:hover {
    background: #218838;
}

/* Footer */
.site-footer {
    background: #333;
    color: #fff;
    padding: 30px 0;
    text-align: center;
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }
    
    .single-game-header {
        flex-direction: column;
    }
    
    .single-game-thumbnail {
        width: 100%;
    }
    
    .games-list .game-item {
        flex-direction: column;
    }
    
    .games-list .game-thumbnail {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .single-game {
        padding: 20px;
    }
}
/* Header Enhancements */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.custom-logo-link {
    display: block;
    line-height: 0;
}

.site-description {
    font-size: 14px;
    color: #666;
    margin: 5px 0 0 0;
}

/* Responsive Header */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
    }
    
    .main-navigation {
        width: 100%;
    }
    
    .main-navigation ul {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    
    .main-navigation ul.mobile-active {
        display: flex;
    }
    
    .main-navigation a {
        border-bottom: 1px solid #eee;
    }
}
/* Footer Styles */
.site-footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 40px 0 20px 0;
    margin-top: 60px;
}

.footer-navigation {
    margin-bottom: 30px;
    text-align: center;
}

.footer-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

.footer-navigation a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-navigation a:hover {
    color: #3498db;
}

.footer-widgets {
    margin-bottom: 30px;
}

.footer-widget-area {
    max-width: 800px;
    margin: 0 auto;
}

.footer-about {
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.8;
    color: #bdc3c7;
}

.footer-social {
    text-align: center;
}

.footer-social h3 {
    color: #ecf0f1;
    font-size: 18px;
    margin-bottom: 15px;
}

.social-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 0;
    margin: 0;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #34495e;
    color: #ecf0f1;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: #3498db;
    transform: translateY(-3px);
}

.social-links .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.site-info {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    font-size: 14px;
    color: #95a5a6;
}

.site-info a {
    color: #3498db;
    text-decoration: none;
}

.site-info a:hover {
    text-decoration: underline;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .site-footer {
        padding: 30px 0 15px 0;
    }
    
    .footer-navigation ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .social-links {
        gap: 10px;
    }
}
/* Single Game Page */
.single-game {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.single-game-header {
    display: flex;
    gap: 120px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.single-game-thumbnail {
    flex-shrink: 0;
}

.single-game-thumbnail img {
    width: 300px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.single-game-meta {
    flex: 1;
}

.single-game-title {
    font-size: 36px;
    margin: 0 0 25px 0;
    color: #1a1a1a;
    line-height: 1.3;
}

.game-metadata {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.meta-label {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-weight: 600;
}

.meta-label .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.meta-value a {
    color: #007bff;
    text-decoration: none;
}

.meta-value a:hover {
    text-decoration: underline;
}

.game-content {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 5px;
}

.game-content p {
    margin-bottom: 5px;
}

.game-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* Download Links */
.game-downloads {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.game-downloads h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px 0;
    font-size: 24px;
    color: #fff;
}

.game-downloads h3 .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

.download-links-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.download-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    border: 2px solid rgba(255,255,255,0.3);
}

.download-link:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.download-icon .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.download-notice {
    margin: 0;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.download-notice small {
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0.9;
}

/* Tags */
.game-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.tags-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: #666;
}

.tag-link {
    background: #007bff;
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
}

.tag-link:hover {
    background: #0056b3;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-next {
    text-align: right;
}

.post-navigation a {
    display: block;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.post-navigation a:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.nav-subtitle {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 5px;
    font-weight: 600;
}

.nav-title {
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: #007bff;
}

/* Responsive Single Game */
@media (max-width: 768px) {
    .single-game {
        padding: 20px;
    }
    
    .single-game-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .single-game-thumbnail img {
        width: 100%;
    }
    
    .single-game-title {
        font-size: 28px;
    }
    
    .game-downloads {
        padding: 20px;
    }
    
    .download-links-wrapper {
        flex-direction: column;
    }
    
    .download-link {
        justify-content: center;
    }
    
    .post-navigation {
        flex-direction: column;
    }
    
    .nav-next {
        text-align: left;
    }
}
/* Archive Page */
.page-header {
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: #fff;
    text-align: center;
}

.page-title {
    margin: 0 0 10px 0;
    font-size: 36px;
    color: #fff;
}

.archive-description {
    margin: 15px auto 0;
    max-width: 800px;
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.95;
}

/* Layout Switcher */
.layout-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.switcher-label {
    font-size: 14px;
    font-weight: 600;
}

.layout-btn {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.layout-btn:hover {
    background: rgba(255,255,255,0.3);
}

.layout-btn.active {
    background: rgba(255,255,255,0.4);
    border-color: rgba(255,255,255,0.6);
}

.layout-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Game Category Badge */
.game-category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(102, 126, 234, 0.95);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

/* Read More Button */
.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #007bff;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s;
}

.read-more-btn:hover {
    background: #0056b3;
    transform: translateX(3px);
}

.read-more-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Download Count */
.download-count {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #28a745;
    font-weight: 600;
}

/* ============================================
   PAGINATION STYLING - HORIZONTAL NUMBERS
   ============================================ */

.pagination {
    display: flex;  /* ✅ ĐỔI từ inline sang flex */
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination .current,
.pagination .dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
}

.pagination a:hover {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.pagination .current {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
    cursor: default;
}

.pagination .dots {
    background: transparent;
    border: none;
    color: #999;
    pointer-events: none;
}

/* Prev/Next buttons */
.pagination .prev,
.pagination .next {
    font-weight: 700;
}

.pagination .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin: 0 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .pagination {
        gap: 5px;
    }
    
    .pagination a,
    .pagination .current {
        min-width: 36px;
        height: 36px;
        font-size: 14px;
        padding: 0 10px;
    }
    
    /* Ẩn text trên mobile, chỉ giữ icon */
    .pagination .prev span:not(.dashicons),
    .pagination .next span:not(.dashicons) {
        display: none;
    }
}


/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results .page-header {
    background: #f8f9fa;
    color: #333;
}

.no-results .page-title {
    color: #333;
}

.no-results .page-content {
    margin-top: 30px;
}

.no-results .button {
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    margin-top: 20px;
    transition: background 0.3s;
}

.no-results .button:hover {
    background: #0056b3;
}

/* Archive Responsive */
@media (max-width: 768px) {
    .page-header {
        padding: 10px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .layout-switcher {
        margin-top: 15px;
    }
    
    .game-category-badge {
        top: 5px;
        right: 5px;
        font-size: 11px;
        padding: 4px 10px;
    }
}
/* Sidebar Styles */
.widget-area {
    padding: 20px;
}

.widget {
    background: #fff;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.widget-title {
    font-size: 20px;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
    color: #333;
    font-weight: 700;
}

/* Search Widget */
.widget_search .search-form {
    display: flex;
    gap: 10px;
}

.widget_search .search-field {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
}

.widget_search .search-field:focus {
    outline: none;
    border-color: #667eea;
}

.widget_search .search-submit {
    background: #667eea;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.widget_search .search-submit:hover {
    background: #5568d3;
}

/* Recent Games Widget */
.widget_recent_games ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_recent_games li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.widget_recent_games li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.widget_recent_games a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.widget_recent_games a:hover {
    color: #667eea;
}

.widget_recent_games .widget-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.widget_recent_games .widget-post-title {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

/* Categories Widget */
.widget_categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_categories li {
    margin-bottom: 10px;
}

.widget_categories a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s;
}

.widget_categories a:hover {
    background: #667eea;
    color: #fff;
}

.widget_categories .category-count {
    font-size: 12px;
    opacity: 0.8;
}

/* Tag Cloud Widget */
.widget_tag_cloud .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.widget_tag_cloud .tagcloud a {
    background: #e9ecef;
    color: #495057;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px !important;
    transition: all 0.3s;
    display: inline-block;
}

.widget_tag_cloud .tagcloud a:hover {
    background: #667eea;
    color: #fff;
}

/* Admin Notice Widget */
.widget_notice {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.widget_notice p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.widget_notice a {
    color: #856404;
    font-weight: 600;
}

/* Sidebar Responsive */
@media (max-width: 1024px) {
    .widget-area {
        padding: 15px;
    }
    
    .widget {
        padding: 20px;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .widget-area {
        margin-top: 40px;
    }
}
/* Page Template Styles */
.single-page {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.entry-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #667eea;
}

.entry-title {
    font-size: 36px;
    margin: 0;
    color: #1a1a1a;
    line-height: 1.3;
}

.post-thumbnail {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.entry-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content h2 {
    font-size: 28px;
    margin: 35px 0 20px 0;
    color: #1a1a1a;
    font-weight: 700;
}

.entry-content h3 {
    font-size: 24px;
    margin: 30px 0 15px 0;
    color: #1a1a1a;
    font-weight: 700;
}

.entry-content h4 {
    font-size: 20px;
    margin: 25px 0 15px 0;
    color: #333;
    font-weight: 700;
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 20px 30px;
    padding: 0;
}

.entry-content li {
    margin-bottom: 10px;
}

.entry-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    margin: 20px 0;
    padding: 20px 25px;
    font-style: italic;
    color: #555;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.entry-content a {
    color: #667eea;
    text-decoration: underline;
    transition: color 0.3s;
}

.entry-content a:hover {
    color: #5568d3;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.entry-content table th,
.entry-content table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.entry-content table th {
    background: #f8f9fa;
    font-weight: 700;
}

.entry-content code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.entry-content pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.entry-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* Page Links */
.page-links {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.page-links > span,
.page-links > a {
    padding: 8px 15px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: all 0.3s;
}

.page-links > a:hover {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

.page-links > span {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

/* Entry Footer */
.entry-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.edit-link a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f8f9fa;
    color: #333;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.edit-link a:hover {
    background: #667eea;
    color: #fff;
}

/* Comments Section */
.comments-area {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-top: 30px;
}

.comments-title {
    font-size: 24px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #667eea;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.comment-author {
    font-weight: 700;
    margin-bottom: 10px;
}

.comment-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.comment-content p {
    margin-bottom: 10px;
}

.reply {
    margin-top: 10px;
}

.reply a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.reply a:hover {
    text-decoration: underline;
}

/* Comment Form */
.comment-respond {
    margin-top: 40px;
}

.comment-reply-title {
    font-size: 22px;
    margin-bottom: 20px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-form-comment textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
}

.comment-form-comment textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-submit .submit {
    background: #667eea;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.form-submit .submit:hover {
    background: #5568d3;
}

/* Page Responsive */
@media (max-width: 768px) {
    .single-page {
        padding: 25px;
    }
    
    .entry-title {
        font-size: 28px;
    }
    
    .entry-content {
        font-size: 15px;
    }
    
    .entry-content h2 {
        font-size: 24px;
    }
    
    .entry-content h3 {
        font-size: 20px;
    }
    
    .comments-area {
        padding: 25px;
    }
}
/* 404 Error Page */
.error-404 {
    padding: 60px 0;
}

.error-404-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.error-404-icon {
    margin-bottom: 30px;
}

.error-404-icon svg {
    max-width: 200px;
    height: auto;
}

.error-404 .page-header {
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin-bottom: 20px;
    border-radius: 0;
}

.error-404 .page-title {
    font-size: 42px;
    color: #1a1a1a;
    margin: 0;
}

.error-message {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* 404 Search */
.error-404-search {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.error-404-search h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #333;
}

.error-404-search .search-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.error-404-search .search-field {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
}

.error-404-search .search-field:focus {
    outline: none;
    border-color: #667eea;
}

.error-404-search .search-submit {
    background: #667eea;
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.error-404-search .search-submit:hover {
    background: #5568d3;
}

/* Helpful Links */
.error-404-links {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 40px;
    text-align: left;
}

.error-404-links h2 {
    font-size: 22px;
    margin-bottom: 25px;
    color: #333;
    text-align: center;
}

.helpful-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.helpful-links > li {
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.helpful-links > li:last-child {
    margin-bottom: 0;
}

.helpful-links > li > a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s;
}

.helpful-links > li > a:hover {
    color: #667eea;
}

.helpful-links .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #667eea;
}

.category-links {
    list-style: none;
    padding: 15px 0 0 35px;
    margin: 10px 0 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-links li a {
    display: inline-block;
    background: #667eea;
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s;
}

.category-links li a:hover {
    background: #5568d3;
}

/* Recent Games on 404 */
.error-404-recent-games {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.error-404-recent-games h2 {
    font-size: 22px;
    margin-bottom: 30px;
    color: #333;
}

.recent-games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.game-item-mini {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.game-item-mini:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.game-item-mini a {
    text-decoration: none;
    color: #333;
}

.game-thumb-mini {
    width: 100%;
    padding-bottom: 100%;
    position: relative;
    overflow: hidden;
    background: #e0e0e0;
}

.game-thumb-mini img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-title-mini {
    padding: 15px;
    font-size: 14px;
    margin: 0;
    text-align: center;
    font-weight: 600;
}

/* 404 Responsive */
@media (max-width: 1024px) {
    .recent-games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .error-404 {
        padding: 40px 0;
    }
    
    .error-404 .page-title {
        font-size: 32px;
    }
    
    .error-message {
        font-size: 16px;
    }
    
    .error-404-search,
    .error-404-links,
    .error-404-recent-games {
        padding: 25px;
    }
    
    .error-404-search .search-form {
        flex-direction: column;
    }
    
    .error-404-search .search-submit {
        width: 100%;
    }
    
    .category-links {
        padding-left: 0;
    }
    
    .recent-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .error-404-icon svg {
        max-width: 150px;
    }
    
    .error-404 .page-title {
        font-size: 28px;
    }
}
/* List Layout Meta */
.game-meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.game-meta-list .meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #555;
}

.game-meta-list .meta-item strong {
    color: #333;
}

.game-meta-list .meta-item .dashicons {
    color: #667eea;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.game-meta-list .meta-item a {
    color: #667eea;
    text-decoration: none;
}

.game-meta-list .meta-item a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .game-meta-list {
        flex-direction: column;
        gap: 10px;
    }
}
.game-additional-info {
    margin-top: 10px;
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #1a1a1a;
}
.game-additional-info .addition-item {
    background: #f0f3fa;
    border-radius: 12px;
    padding: 6px 16px;
}
/* ============================================
   RATING & VIEWS STYLING
   ============================================ */

/* Star Rating */
.game-rating-stars {
    display: flex;
    align-items: center;
    gap: 3px;
    margin: 8px 0;
    font-size: 16px;
}

.game-rating-stars .star {
    color: #ffc107;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.game-rating-stars .star.filled {
    color: #ffc107;
}

.game-rating-stars .star.empty {
    color: #ddd;
}

.game-rating-stars .rating-number {
    font-size: 13px;
    color: #666;
    margin-left: 5px;
    font-weight: 600;
}

/* Views Count */
.game-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    font-size: 13px;
    color: #666;
}

.game-stats .views-count {
    display: flex;
    align-items: center;
    gap: 4px;
}

.game-stats .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #667eea;
}

/* List Layout Stats */
.game-stats-list {
    display: flex;
    gap: 15px;
    margin: 10px 0;
    padding: 10px;
    background: #f0f3fa;
    border-radius: 6px;
    font-size: 14px;
}

.game-stats-list .views-count {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #555;
}

.game-stats-list .dashicons {
    color: #667eea;
}

/* Rating in Grid */
.games-grid .game-rating-stars {
    font-size: 14px;
}

.games-grid .game-rating-stars .rating-number {
    font-size: 11px;
}

/* Rating in List */
.games-list .game-rating-stars {
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .game-rating-stars {
        font-size: 14px;
    }
    
    .game-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}
/* ============================================
   USER RATING SYSTEM
   ============================================ */

.game-user-rating {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    color: #fff;
}

.game-user-rating h3 {
    margin: 0 0 20px 0;
    color: #fff;
    font-size: 22px;
}

.current-rating {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
}

.current-rating .game-rating-stars {
    color: #fff;
}

.current-rating .rating-number {
    color: #fff;
}

.rating-form p {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.star-rating-input {
    display: flex;
    gap: 10px;
    font-size: 36px;
    cursor: pointer;
    margin: 15px 0;
}

.star-rating-input .rating-star {
    color: rgba(255,255,255,0.3);
    transition: all 0.2s;
    user-select: none;
}

.star-rating-input .rating-star:hover,
.star-rating-input .rating-star.hover {
    color: #ffc107;
    transform: scale(1.2);
}

.rating-message {
    margin-top: 15px;
    font-size: 14px;
    min-height: 20px;
}

.rating-message .loading {
    color: #fff;
    opacity: 0.8;
}

.rating-message .success {
    color: #4caf50;
    font-weight: 600;
}

.rating-message .error {
    color: #ff5252;
    font-weight: 600;
}

.already-rated {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0 0 0;
}

/* Not Rated Yet */
.game-rating-stars.not-rated {
    font-size: 13px;
    color: #999;
    font-style: italic;
}

.not-rated-text {
    color: #999;
}

/* Half star support */
.star.half {
    background: linear-gradient(90deg, #ffc107 50%, #ddd 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
/* ============================================
   RELATED GAMES SECTION
   ============================================ */

.related-games {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-top: 40px;
}

.related-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    margin: 0 0 30px 0;
    color: #1a1a1a;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
}

.related-title .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: #667eea;
}

.related-games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-game-item {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
}

.related-game-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.related-game-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-game-thumbnail {
    width: 100%;
    padding-bottom: 100%;
    position: relative;
    overflow: hidden;
    background: #e0e0e0;
}

.related-game-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-game-item:hover .related-game-thumbnail img {
    transform: scale(1.1);
}

.related-game-info {
    padding: 15px;
}

.related-game-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
    line-height: 1.4;
}

.related-game-info .game-rating-stars {
    font-size: 14px;
    margin: 0;
}

/* Responsive Related Games */
@media (max-width: 1024px) {
    .related-games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .related-games {
        padding: 25px;
    }
    
    .related-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .related-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .related-games-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   MOBILE MENU - FIXED FINAL VERSION
   ============================================ */

@media (max-width: 768px) {
    
    /* Header Layout */
    .site-header {
        padding: 12px 0;
    }
    
    .header-inner {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        position: relative;
    }
    
    /* Logo - Bên trái */
    .site-branding {
        order: 1;
        flex: 0 0 auto;
        z-index: 1001;
    }
    
    .site-branding .custom-logo {
        max-height: 45px;
    }
    
    /* Hamburger Button - Bên phải */
    .mobile-menu-toggle {
        display: flex !important;
        order: 2;
        flex: 0 0 auto;
        background: transparent;
        border: none;
        padding: 8px;
        cursor: pointer;
        flex-direction: column;
        gap: 5px;
        width: 44px;
        height: 44px;
        justify-content: center;
        align-items: center;
        z-index: 1001;
    }
    
    .menu-icon-bar {
        display: block;
        width: 28px;
        height: 3px;
        background: #333;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle.active .menu-icon-bar:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-menu-toggle.active .menu-icon-bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active .menu-icon-bar:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Navigation Menu - Ẩn mặc định */
    .main-navigation {
        order: 3;
        flex: 0 0 100%;
        width: 100%;
        margin-top: 10px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        background: #fff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        border-radius: 8px;
    }
    
    /* Navigation Menu - Hiện khi active */
    .main-navigation.mobile-active {
        max-height: 600px;
        overflow-y: auto;
    }
    
    /* Menu Items */
    .nav-menu {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 10px 0 !important;
        margin: 0 !important;
        list-style: none !important;
    }
    
    .nav-menu li {
        width: 100% !important;
        border-bottom: 1px solid #f0f0f0 !important;
        margin: 0 !important;
    }
    
    .nav-menu li:last-child {
        border-bottom: none !important;
    }
    
    .nav-menu a {
        display: block !important;
        padding: 16px 20px !important;
        color: #333 !important;
        text-decoration: none !important;
        border-radius: 0 !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        transition: all 0.3s !important;
    }
    
    .nav-menu a:hover,
    .nav-menu .current-menu-item > a {
        background: #f0f3fa !important;
        color: #667eea !important;
    }
    
}

/* Desktop - Ẩn hamburger button */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .main-navigation {
        display: flex !important;
        flex: 1;
        justify-content: flex-end;
        max-height: none !important;
        overflow: visible !important;
    }
    
    .nav-menu {
        display: flex !important;
        flex-direction: row !important;
        gap: 5px !important;
        align-items: center !important;
    }
    
    .nav-menu a {
        padding: 10px 20px !important;
        border-radius: 25px !important;
    }
}
/* ============================================
   SINGLE POST STYLING
   ============================================ */

.single-post-main {
    padding: 40px 0;
}

.single-post-article {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

/* Post Header */
.entry-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.entry-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: #666;
}

.entry-meta > span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.entry-meta .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #667eea;
}

.entry-meta a {
    color: #667eea;
    text-decoration: none;
}

.entry-meta a:hover {
    text-decoration: underline;
}

/* Featured Image */
.post-thumbnail {
    margin: 30px 0;
    border-radius: 12px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* Post Content */
.entry-content {
    font-size: 17px;
    line-height: 1.8;
    color: #333;
    margin: 30px 0;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.entry-content h2 {
    font-size: 28px;
}

.entry-content h3 {
    font-size: 24px;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.entry-content a {
    color: #667eea;
    text-decoration: underline;
}

.entry-content ul,
.entry-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.entry-content li {
    margin-bottom: 10px;
}

/* Post Footer - Tags */
.entry-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.tags-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: #333;
}

.tags-label .dashicons {
    color: #667eea;
}

.tag-link {
    display: inline-block;
    padding: 6px 15px;
    background: #f0f3fa;
    color: #667eea;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.tag-link:hover {
    background: #667eea;
    color: #fff;
}

/* Related Posts */
.related-posts {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-top: 40px;
}

.related-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    margin: 0 0 30px 0;
    color: #1a1a1a;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
}

.related-title .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: #667eea;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-post-item {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
}

.related-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.related-post-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-post-thumbnail {
    width: 100%;
    padding-bottom: 66.67%; /* 3:2 ratio */
    position: relative;
    overflow: hidden;
    background: #e0e0e0;
}

.related-post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-post-item:hover .related-post-thumbnail img {
    transform: scale(1.1);
}

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

.related-post-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
    line-height: 1.4;
}

.related-post-date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #666;
}

.related-post-date .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Page Links */
.page-links {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .single-post-article {
        padding: 25px;
    }
    
    .entry-title {
        font-size: 28px;
    }
    
    .entry-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .entry-content {
        font-size: 16px;
    }
    
    .related-posts {
        padding: 25px;
    }
    
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}
/* ============================================
   LIVE SEARCH BOX
   ============================================ */

.search-box-container {
    margin: 20px auto 30px;
    max-width: 600px;
}

.live-search-form {
    position: relative;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.3s;
}

.search-input-wrapper:focus-within {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.search-field {
    flex: 1;
    padding: 15px 20px;
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
}

.search-submit {
    background: #667eea;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.search-submit:hover {
    background: #5568d3;
}

.search-submit .dashicons {
    color: #fff;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Live Search Results Dropdown */
.live-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 10px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    max-height: 500px;
    overflow-y: auto;
    z-index: 999;
}

.search-results-content {
    padding: 10px;
}

/* Results List */
.search-results-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-result-item {
    border-bottom: 1px solid #f0f0f0;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 10px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
    border-radius: 8px;
}

.search-result-link:hover {
    background: #f8f9fa;
}

.search-result-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: #e0e0e0;
}

.search-result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-info {
    flex: 1;
}

.search-result-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #333;
    line-height: 1.3;
}

.search-result-type {
    display: inline-block;
    padding: 3px 10px;
    background: #f0f3fa;
    color: #667eea;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
}

/* View All Link */
.search-view-all {
    padding: 10px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s;
}

.view-all-link:hover {
    background: #f0f3fa;
}

.view-all-link .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Loading State */
.search-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.search-loading .dashicons {
    animation: spin 1s linear infinite;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* No Results */
.no-results {
    text-align: center;
    padding: 30px 20px;
    color: #999;
}

.search-error {
    text-align: center;
    padding: 20px;
    color: #f44336;
}

/* Responsive */
@media (max-width: 768px) {
    .search-box-container {
        max-width: 100%;
    }
    
    .search-field {
        font-size: 14px;
        padding: 12px 15px;
    }
    
    .live-search-results {
        max-height: 400px;
    }
}
/* ============================================
   BREADCRUMB NAVIGATION
   ============================================ */

.breadcrumb-nav {
    background: #f8f9fa;
    padding: 12px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item a {
    color: #667eea;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

.breadcrumb-item a:hover {
    color: #5568d3;
    text-decoration: underline;
}

.breadcrumb-item .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-right: 3px;
}

/* Separator */
.breadcrumb-item:not(:last-child)::after {
    content: '›';
    margin-left: 8px;
    color: #999;
    font-size: 16px;
    font-weight: 300;
}

/* Active/Current Item */
.breadcrumb-item.active {
    color: #333;
    font-weight: 600;
}

.breadcrumb-item.active span {
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive */
@media (max-width: 768px) {
    .breadcrumb-nav {
        padding: 10px 0;
        margin-bottom: 20px;
    }
    
    .breadcrumb {
        font-size: 13px;
        gap: 6px;
    }
    
    .breadcrumb-item .dashicons {
        font-size: 14px;
        width: 14px;
        height: 14px;
    }
    
    .breadcrumb-item:not(:last-child)::after {
        margin-left: 6px;
    }
    
    .breadcrumb-item.active span {
        max-width: 150px;
    }
}

/* Dark background variant (optional) */
.breadcrumb-nav.dark-bg {
    background: #2c3e50;
    border-bottom-color: #34495e;
}

.breadcrumb-nav.dark-bg .breadcrumb-item a {
    color: #3498db;
}

.breadcrumb-nav.dark-bg .breadcrumb-item.active {
    color: #ecf0f1;
}

.breadcrumb-nav.dark-bg .breadcrumb-item:not(:last-child)::after {
    color: #7f8c8d;
}
/* ============================================
   GAME SCREENSHOTS GALLERY
   ============================================ */

.game-screenshots-section {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin: 40px 0;
}

.screenshots-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    margin: 0 0 25px 0;
    color: #1a1a1a;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
}

.screenshots-title .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: #667eea;
}

/* Gallery Grid - Dynamic based on count */
.screenshots-gallery {
    display: grid;
    gap: 15px;
}

/* 1 screenshot - Single large */
.screenshots-gallery.screenshots-count-1 {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
}

/* 2 screenshots - 2 columns */
.screenshots-gallery.screenshots-count-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* 3 screenshots - 3 columns */
.screenshots-gallery.screenshots-count-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* 4+ screenshots - 2x2 grid */
.screenshots-gallery.screenshots-count-4,
.screenshots-gallery.screenshots-count-5,
.screenshots-gallery.screenshots-count-6 {
    grid-template-columns: repeat(3, 1fr);
}

/* 7+ screenshots - 3 columns */
.screenshots-gallery:not([class*="screenshots-count-"]) {
    grid-template-columns: repeat(3, 1fr);
}

/* Screenshot Thumbnail */
.screenshot-thumb {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f0f0;
    aspect-ratio: 16 / 9;
}

.screenshot-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.screenshot-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.screenshot-thumb:hover img {
    transform: scale(1.1);
}

/* Overlay */
.screenshot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.screenshot-thumb:hover .screenshot-overlay {
    opacity: 1;
}

.screenshot-overlay .dashicons {
    color: #fff;
    font-size: 40px;
    width: 40px;
    height: 40px;
}

/* Responsive */
@media (max-width: 1024px) {
    .screenshots-gallery.screenshots-count-4,
    .screenshots-gallery.screenshots-count-5,
    .screenshots-gallery.screenshots-count-6,
    .screenshots-gallery:not([class*="screenshots-count-"]) {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .game-screenshots-section {
        padding: 25px;
    }
    
    .screenshots-title {
        font-size: 20px;
    }
    
    .screenshots-gallery.screenshots-count-2,
    .screenshots-gallery.screenshots-count-3,
    .screenshots-gallery.screenshots-count-4,
    .screenshots-gallery.screenshots-count-5,
    .screenshots-gallery.screenshots-count-6,
    .screenshots-gallery:not([class*="screenshots-count-"]) {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .screenshots-gallery {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .screenshots-gallery.screenshots-count-1,
    .screenshots-gallery.screenshots-count-2,
    .screenshots-gallery.screenshots-count-3,
    .screenshots-gallery.screenshots-count-4,
    .screenshots-gallery.screenshots-count-5,
    .screenshots-gallery.screenshots-count-6,
    .screenshots-gallery:not([class*="screenshots-count-"]) {
        grid-template-columns: 1fr;
    }
}

/* Lightbox Custom Styling (Optional) */
.lb-data .lb-caption {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.lb-nav a.lb-prev,
.lb-nav a.lb-next {
    opacity: 1;
}
/* ============================================
   TOP RATED GAMES PAGE
   ============================================ */

.top-rated-page .page-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 3px solid #667eea;
}

.top-rated-page .page-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 36px;
    color: #1a1a1a;
    margin: 0 0 15px 0;
}

.top-rated-page .page-title .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: #ffc107;
}

.page-description {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Rating Tabs */
.rating-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-link {
    padding: 12px 30px;
    background: #fff;
    color: #667eea;
    text-decoration: none;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
}

.tab-link:hover {
    border-color: #667eea;
    background: #f0f3fa;
}

.tab-link.active {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

/* Top Rated List */
.top-rated-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Top Game Item */
.top-game-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s;
    position: relative;
}

.top-game-item:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

/* Top 3 special styling */
.top-game-item.rank-1 {
    background: linear-gradient(135deg, #fff9e6 0%, #fff 100%);
    border: 2px solid #ffc107;
}

.top-game-item.rank-2 {
    background: linear-gradient(135deg, #f5f5f5 0%, #fff 100%);
    border: 2px solid #c0c0c0;
}

.top-game-item.rank-3 {
    background: linear-gradient(135deg, #fff5f0 0%, #fff 100%);
    border: 2px solid #cd7f32;
}

/* Rank Badge */
.rank-badge {
    flex-shrink: 0;
    width: 60px;
    text-align: center;
}

.rank-medal {
    font-size: 48px;
    display: block;
    line-height: 1;
}

.rank-number {
    font-size: 28px;
    font-weight: 700;
    color: #667eea;
}

/* Thumbnail */
.top-game-item .game-thumbnail {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
	padding-bottom: 5px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.top-game-item .game-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.top-game-item:hover .game-thumbnail img {
    transform: scale(1.1);
}

/* Game Info */
.top-game-item .game-info {
    flex: 1;
}

.top-game-item .game-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.top-game-item .game-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s;
}

.top-game-item .game-title a:hover {
    color: #667eea;
}

/* Rating Display */
.game-rating-display {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.stars-large {
    display: flex;
    gap: 3px;
}

.stars-large .star {
    font-size: 22px;
    color: #ffc107;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.stars-large .star.empty {
    color: #ddd;
}

.rating-score {
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
}

.rating-votes {
    font-size: 14px;
    color: #999;
}

/* Game Meta */
.game-meta {
    display: flex;
    gap: 20px;
    margin: 10px 0;
    font-size: 14px;
    color: #666;
}

.game-meta > span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.game-meta .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.game-meta a {
    color: #667eea;
    text-decoration: none;
}

.game-meta a:hover {
    text-decoration: underline;
}

.game-excerpt {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-top: 10px;
}

/* Game Actions */
.game-actions {
    flex-shrink: 0;
}

.view-game-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: #667eea;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
}

.view-game-btn:hover {
    background: #5568d3;
    transform: translateX(5px);
}

.view-game-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Empty State */
.no-rated-games {
    padding: 60px 20px;
}

.empty-state {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.empty-state .dashicons {
    font-size: 80px;
    width: 80px;
    height: 80px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 24px;
    margin: 0 0 15px 0;
    color: #333;
}

.empty-state p {
    color: #999;
    margin-bottom: 25px;
}

.empty-state .button {
    display: inline-block;
    padding: 12px 30px;
    background: #667eea;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .top-rated-page .page-title {
        font-size: 28px;
    }
    
    .top-game-item {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .rank-badge {
        width: 100%;
    }
    
    .top-game-item .game-thumbnail {
        width: 100%;
        max-width: 200px;
        height: 200px;
    }
    
    .game-rating-display {
        justify-content: center;
    }
    
    .game-meta {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .game-actions {
        width: 100%;
    }
    
    .view-game-btn {
        width: 100%;
        justify-content: center;
    }
}
