/*
Theme Name: GameVN
Theme URI: https://gamevn.com
Author: GameVN Team
Author URI: https://gamevn.com
Description: Theme chuyên dụng cho website chơi game HTML5. Responsive, modern và tối ưu cho hiển thị game.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gamevn
Tags: games, html5-games, responsive, modern, custom-colors
*/

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4c6ef5;
    --secondary-color: #51cf66;
    --accent-color: #ff6b6b;
    --dark-bg: #1a1a1a;
    --darker-bg: #0d0d0d;
    --light-bg: #f8f9fa;
    --text-dark: #2d3436;
    --text-light: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
    --topup-green: #51cf66;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--light-bg);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* ==========================================================================
   Single Game Page - Full Width Layout
   ========================================================================== */

.single-game-fullwidth-layout {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.single-game-fullwidth {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Legacy 2-column layout (if needed) */
.single-game-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

.single-game-main {
    width: 100%;
}

/* ==========================================================================
   Container & Layout
   ========================================================================== */

.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-wrapper {
    background: #fff;
    min-height: calc(100vh - 160px);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    background: #ffffff;
    color: var(--text-dark);
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #f0f0f0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.site-branding h1,
.site-branding .site-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -1px;
}

.site-branding a {
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}

.site-branding a:hover {
    color: var(--primary-color);
}

.site-branding .logo-icon {
    font-size: 40px;
}

/* Header Search Bar */
.header-search {
    flex: 1;
    max-width: 500px;
}

.header-search-form {
    position: relative;
}

.header-search input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.header-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(76, 110, 245, 0.1);
}

.header-search button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
}

/* Header Auth Buttons */
.header-auth {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-signin,
.btn-signup {
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-signin {
    background: transparent;
    color: var(--text-dark);
}

.btn-signin:hover {
    background: #f0f0f0;
}

.btn-signup {
    background: var(--primary-color);
    color: white;
}

.btn-signup:hover {
    background: #3b5bdb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 110, 245, 0.3);
}

/* Navigation */
.main-navigation {
    position: relative;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 15px;
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    position: relative;
    overflow: hidden;
}

/* Hover effect with gradient */
.main-navigation a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.main-navigation a:hover::before {
    opacity: 1;
}

.main-navigation a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

/* Active menu item with bottom border */
.main-navigation .current-menu-item a {
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    position: relative;
}

.main-navigation .current-menu-item a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 20px;
    right: 20px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, #764ba2 100%);
    border-radius: 2px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
}

.menu-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.menu-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.menu-toggle:active::before {
    width: 200px;
    height: 200px;
}

.menu-toggle[aria-expanded="true"] {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* ==========================================================================
   Hero Slider
   ========================================================================== */

.hero-slider {
    margin: 30px 0 50px;
    position: relative;
}

.hero-slide {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 60px 40px;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    align-items: center;
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    max-width: 50%;
}

.hero-slide h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-slide p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.95;
}

.hero-slide .hero-link {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.hero-slide .hero-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.hero-slide-image {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.hero-slide-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Slider dots */
.slider-dots {
    text-align: center;
    margin-top: 20px;
}

.slider-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--primary-color);
    width: 24px;
    border-radius: 5px;
}

/* ==========================================================================
   Game Grid (Home & Archive Pages)
   ========================================================================== */

.games-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: 1fr;
    gap: 24px;
    padding: 40px 0;
}

@media (max-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.game-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 1px solid #f0f0f0;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-color: #e0e0e0;
}

.game-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.game-card-thumbnail,
.game-card-thumb {
    position: relative;
    overflow: hidden;
    padding-top: 100%; /* 1:1 Square Aspect Ratio */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    margin: 12px;
}

.game-card-thumbnail img,
.game-card-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-card-thumbnail img,
.game-card:hover .game-card-thumb img {
    transform: scale(1.1);
}

.game-card-no-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.game-card-no-thumb .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: rgba(255, 255, 255, 0.8);
}

.game-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 193, 7, 0.95);
    color: #000;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.game-badge.featured {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
}

.game-card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.game-card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    min-height: 44.8px; /* 16px * 1.4 * 2 = fixed height for 2 lines */
}

.game-card-title a {
    color: var(--text-dark);
}

.game-card-title a:hover {
    color: var(--primary-color);
}

.game-card-stats {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #999;
    margin-top: auto;
    padding-top: 8px;
    min-height: 28px;
}

.game-card-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.game-card-stats .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.game-card-excerpt {
    font-size: 13px;
    color: #868e96;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #999;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.play-button,
.topup-button {
    display: block;
    width: 100%;
    background: var(--topup-green);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.play-button:hover,
.topup-button:hover {
    background: #40c057;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(81, 207, 102, 0.4);
    color: white;
}

/* ==========================================================================
   Single Game Page
   ========================================================================== */

.single-game-header {
    padding: 30px 0 20px;
}

.single-game-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
    text-align: center;
}

.header-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
    gap: 20px;
    flex-wrap: wrap;
}

.meta-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    flex: 1;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
}

.meta-item .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: var(--primary-color);
}

.meta-item a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.meta-item a:hover {
    color: var(--primary-color);
}

.meta-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.share-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.share-buttons-compact {
    display: flex;
    gap: 8px;
    align-items: center;
}

.share-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-btn-icon.share-facebook {
    background: #1877f2;
}

.share-btn-icon.share-twitter {
    background: #1da1f2;
}

.share-btn-icon.share-whatsapp {
    background: #25d366;
}

.share-btn-icon.share-telegram {
    background: #0088cc;
}

.share-btn-icon.share-zalo {
    background: #0068ff;
}

.share-btn-icon.share-linkedin {
    background: #0077b5;
}

.share-btn-icon.share-reddit {
    background: #ff4500;
}

.share-btn-icon.share-pinterest {
    background: #bd081c;
}

.share-btn-icon.share-email {
    background: #7f7f7f;
}

.share-btn-icon.share-copy {
    background: #6c757d;
    border: none;
    cursor: pointer;
}

.share-btn-icon.share-copy.copied {
    background: #28a745;
}

.share-btn-icon.share-copy.copied::after {
    content: "✓";
    position: absolute;
    font-size: 18px;
    color: white;
    font-weight: bold;
}

.game-container-wrapper {
    margin: 30px 0;
    padding: 0;
}

.game-iframe-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    background: var(--dark-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.game-iframe-container iframe {
    display: block;
    width: 100%;
    height: 600px;
    border: none;
}

.game-controls {
    text-align: center;
    margin-top: 20px;
}

.fullscreen-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.fullscreen-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.game-description {
    margin: 30px 0;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.game-description h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-dark);
    font-weight: 700;
}

.game-description p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #333;
}

/* Newsletter Subscribe Section */
.game-newsletter-section {
    margin: 40px 0 50px 0;
    padding: 0;
}

.newsletter-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 40px 40px 80px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: visible;
}

.newsletter-container::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -5%;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.newsletter-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    color: white;
    position: relative;
    z-index: 1;
}

.newsletter-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.newsletter-icon .dashicons {
    font-size: 36px;
    width: 36px;
    height: 36px;
    color: white;
}

.newsletter-text h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: white;
}

.newsletter-text p {
    margin: 0;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.newsletter-form-inline {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.newsletter-form-inline .gamevn-newsletter-form-wrapper {
    margin: 0;
}

.newsletter-form-inline .newsletter-form {
    display: flex;
    gap: 12px;
    align-items: center;
}

.newsletter-form-inline .form-field {
    margin: 0;
}

.newsletter-form-inline input[type="email"] {
    min-width: 280px;
    padding: 14px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    font-size: 15px;
    transition: all 0.3s ease;
}

.newsletter-form-inline input[type="email"]:focus {
    outline: none;
    border-color: white;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.newsletter-form-inline .newsletter-submit {
    padding: 14px 32px;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-form-inline .newsletter-submit:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.newsletter-form-inline .form-message {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 15px;
    padding: 16px 20px;
    border-radius: 10px;
    font-size: 15px;
    text-align: center;
    font-weight: 600;
    display: none;
    animation: slideDown 0.3s ease;
}

.newsletter-form-inline .form-message.success,
.newsletter-form-inline .form-message.error {
    display: block;
}

.newsletter-form-inline .form-message.success {
    background: rgba(255, 255, 255, 0.95);
    color: #51cf66;
    border: 2px solid #51cf66;
    box-shadow: 0 4px 12px rgba(81, 207, 102, 0.3);
}

.newsletter-form-inline .form-message.error {
    background: rgba(255, 255, 255, 0.95);
    color: #ff6b6b;
    border: 2px solid #ff6b6b;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Facebook Comments Section */
.gamevn-facebook-comments {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.comments-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 30px 0;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 3px solid #f0f0f0;
}

.comments-title .dashicons {
    color: var(--primary-color);
    font-size: 28px;
    width: 28px;
    height: 28px;
}

.fb-comments-wrapper {
    margin: 0;
}

/* Game Tags */
.game-tags {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.game-tags strong {
    margin-right: 10px;
    color: var(--text-dark);
}

.game-tags a {
    display: inline-block;
    padding: 5px 12px;
    margin: 4px;
    background: white;
    border-radius: 6px;
    font-size: 13px;
    color: var(--primary-color);
    transition: all 0.2s ease;
}

.game-tags a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Horizontal Games Section */
.horizontal-games-section {
    margin: 60px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.scroll-controls {
    display: flex;
    gap: 10px;
}

.scroll-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.scroll-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(76, 110, 245, 0.3);
}

.scroll-btn:active {
    transform: scale(0.95);
}

.games-horizontal-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
}

.games-horizontal-scroll::-webkit-scrollbar {
    height: 8px;
}

.games-horizontal-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.games-horizontal-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.games-horizontal-scroll::-webkit-scrollbar-thumb:hover {
    background: #3b5bdb;
}

.games-horizontal-scroll .game-card {
    flex: 0 0 220px;
    min-width: 220px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: #f8f9fa;
    color: var(--text-dark);
    padding: 50px 0 30px;
    border-top: 1px solid #e0e0e0;
}

.footer-content {
    text-align: center;
}

/* Contact Us Section */
.contact-us-section {
    margin-bottom: 40px;
}

.contact-us-section h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.contact-btn.email {
    background: #4c6ef5;
}

.contact-btn.whatsapp {
    background: #25d366;
}

.contact-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.contact-btn.discord {
    background: #5865f2;
}

/* Footer Info */
.footer-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto 30px;
    text-align: left;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #666;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    margin-top: 30px;
}

.footer-bottom p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.footer-bottom a {
    color: var(--text-dark);
    font-weight: 600;
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination,
.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span,
.page-numbers {
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    background: #fff;
    border: none;
    border-radius: 8px;
    color: var(--text-dark);
    transition: all 0.2s ease;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.pagination a:hover,
.page-numbers:hover {
    background: #f8f9fa;
    color: var(--primary-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.pagination .current,
.page-numbers.current {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(76, 110, 245, 0.3);
    cursor: default;
}

.page-numbers.current:hover {
    transform: none;
}

.page-numbers.dots {
    background: transparent;
    box-shadow: none;
    cursor: default;
    min-width: 24px;
    color: #999;
}

.page-numbers.dots:hover {
    background: transparent;
    color: #999;
    transform: none;
    box-shadow: none;
}

.page-numbers.prev,
.page-numbers.next {
    font-weight: 700;
    min-width: auto;
    padding: 0 16px;
}

/* Screen Reader Text */
.nav-links .screen-reader-text {
    display: none;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }
    
    * {
        max-width: 100%;
    }
    
    .header-inner {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .header-search {
        order: 3;
        width: 100%;
        max-width: 100%;
    }
    
    .header-auth {
        order: 2;
    }
    
    .menu-toggle {
        display: block;
        order: 4;
    }
    
    .main-navigation {
        width: 100%;
        order: 5;
    }
    
    .main-navigation ul {
        display: none;
        flex-direction: column;
        gap: 0;
        width: 100%;
        background: white;
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        margin-top: 10px;
        overflow: hidden;
    }
    
    .main-navigation.toggled ul {
        display: flex;
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .main-navigation a {
        display: block;
        padding: 16px 20px;
        border-bottom: 1px solid #f5f5f5;
        border-radius: 0;
        transform: none;
        box-shadow: none;
    }
    
    .main-navigation a:hover {
        background: linear-gradient(90deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
        transform: translateX(8px);
        padding-left: 28px;
    }
    
    .main-navigation li:last-child a {
        border-bottom: none;
    }
    
    .main-navigation .current-menu-item a::after {
        display: none;
    }
    
    .main-navigation .current-menu-item a {
        background: linear-gradient(90deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
        border-left: 4px solid var(--primary-color);
        padding-left: 16px;
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .hero-slide {
        flex-direction: column;
        padding: 40px 30px;
        min-height: auto;
    }
    
    .hero-slide-content {
        max-width: 100%;
    }
    
    .hero-slide h2 {
        font-size: 32px;
    }
    
    .hero-slide-image {
        position: relative;
        width: 100%;
        margin-top: 20px;
    }
    
    .single-game-title {
        font-size: 32px;
    }
    
    .game-iframe-container {
        aspect-ratio: 16/9;
    }
    
    .game-iframe-container iframe {
        height: 100%;
        min-height: 350px;
        max-height: 60vh;
    }
    
    .site-branding h1,
    .site-branding .site-title {
        font-size: 20px;
    }
    
    .contact-buttons {
        gap: 10px;
    }
    
    .contact-btn {
        font-size: 13px;
        padding: 12px 20px;
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Touch-friendly buttons and links */
    button,
    .sort-option,
    .category-tab,
    .view-all,
    .menu-toggle {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Tap highlight color */
    * {
        -webkit-tap-highlight-color: rgba(102, 126, 234, 0.1);
    }
    
    /* Word break for long titles */
    .game-title,
    .game-card-title {
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    .footer-info {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    /* Single Game Full Width Layout - Mobile */
    .single-game-fullwidth {
        padding: 20px 15px;
    }
    
    .single-game-title {
        font-size: 28px;
    }
    
    .header-meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin: 0 -15px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .meta-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        width: 100%;
    }
    
    .meta-right {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .share-label {
        font-size: 13px;
    }
    
    .share-buttons-compact {
        gap: 6px;
        flex-wrap: wrap;
        width: 100%;
    }
    
    .share-btn-icon {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }
    
    .share-btn-icon svg {
        width: 16px;
        height: 16px;
    }
    
    /* Horizontal Scroll on Mobile */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .scroll-controls {
        align-self: flex-end;
    }
    
    .scroll-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .games-horizontal-scroll {
        gap: 15px;
        margin: 0 -15px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .games-horizontal-scroll .game-card {
        flex: 0 0 180px;
        min-width: 180px;
    }
    
    /* Newsletter Section - Mobile */
    .newsletter-container {
        flex-direction: column;
        padding: 30px 20px 60px 20px;
        gap: 25px;
        text-align: center;
    }
    
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-text h3 {
        font-size: 20px;
    }
    
    .newsletter-text p {
        font-size: 14px;
    }
    
    .newsletter-form-inline .newsletter-form {
        flex-direction: column;
        width: 100%;
    }
    
    .newsletter-form-inline input[type="email"] {
        width: 100%;
        min-width: auto;
    }
    
    .newsletter-form-inline .newsletter-submit {
        width: 100%;
    }
    
    .newsletter-form-inline .form-message {
        position: relative;
        margin-top: 15px;
        left: auto;
        right: auto;
    }
    
    /* Comments Section - Mobile */
    .gamevn-facebook-comments {
        padding: 25px 20px;
        margin: 30px 0;
    }
    
    .comments-title {
        font-size: 20px;
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .comments-title .dashicons {
        font-size: 24px;
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .game-card-content {
        padding: 12px;
    }
    
    .game-card-title {
        font-size: 14px;
    }
    
    .topup-button {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .game-iframe-container iframe {
        height: 300px;
    }
    
    .single-game-title {
        font-size: 24px;
    }
    
    .hero-slide h2 {
        font-size: 24px;
    }
    
    .hero-slide p {
        font-size: 14px;
    }
    
    .btn-signin,
    .btn-signup {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.no-game-notice {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
}

.no-game-notice p {
    margin: 0;
    color: #856404;
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(108, 99, 255, 0.3);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
