/* Game Info Component Styles - RTL/LTR Support */

/* ===== RTL/LTR Support ===== */
.game-info-container {
    direction: inherit;
}

[dir="rtl"] .game-info-container {
    direction: rtl;
}

[dir="ltr"] .game-info-container {
    direction: ltr;
}

/* ===== Base Styling ===== */
.game-info-container {
    background: linear-gradient(135deg,
        rgba(15, 23, 42, 0.95) 0%,
        rgba(30, 41, 59, 0.95) 50%,
        rgba(15, 23, 42, 0.95) 100%
    );
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.game-info-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(147, 51, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ===== Header Section ===== */
.game-info-header {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg,
        rgba(15, 23, 42, 0.9) 0%,
        rgba(30, 41, 59, 0.9) 100%
    );
    backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.game-info-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
        rgba(147, 51, 234, 0.1),
        transparent 30%,
        rgba(59, 130, 246, 0.1),
        transparent 70%,
        rgba(16, 185, 129, 0.1)
    );
    animation: gradient-flow 8s ease-in-out infinite;
}

@keyframes gradient-flow {
    0%, 100% { opacity: 0.3; transform: translateX(-100%); }
    50% { opacity: 0.6; transform: translateX(100%); }
}

.game-info-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(135deg,
        #60a5fa 0%,
        #a78bfa 25%,
        #34d399 50%,
        #fbbf24 75%,
        #f87171 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow-shift 6s ease-in-out infinite;
    text-align: center;
}

@keyframes rainbow-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ===== Search Bar Enhanced ===== */
.game-info-search {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.game-info-search input {
    width: 100%;
    padding: 16px 50px 16px 16px;
    background: rgba(17, 24, 39, 0.8);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

[dir="rtl"] .game-info-search input {
    padding: 16px 16px 16px 50px;
}

.game-info-search input:focus {
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow:
        0 0 0 4px rgba(59, 130, 246, 0.1),
        0 0 20px rgba(59, 130, 246, 0.2);
    outline: none;
    transform: translateY(-2px);
}

.game-info-search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(156, 163, 175, 0.8);
    transition: color 0.3s ease;
}

[dir="rtl"] .game-info-search-icon {
    right: auto;
    left: 16px;
}

.game-info-search input:focus + .game-info-search-icon {
    color: rgba(59, 130, 246, 0.8);
}

/* ===== Sidebar Enhanced ===== */
.game-info-sidebar {
    background: linear-gradient(135deg,
        rgba(17, 24, 39, 0.9) 0%,
        rgba(31, 41, 55, 0.9) 100%
    );
    backdrop-filter: blur(20px);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 20px;
    padding: 24px;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 24px;
}

.game-info-sidebar h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

[dir="rtl"] .game-info-sidebar h3 {
    flex-direction: row-reverse;
}

.game-info-category-btn {
    width: 100%;
    text-align: start;
    padding: 16px 20px;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

[dir="rtl"] .game-info-category-btn {
    text-align: end;
}

.game-info-category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    right: 100%;
    bottom: 0;
    background: linear-gradient(90deg,
        transparent,
        rgba(59, 130, 246, 0.1),
        transparent
    );
    transition: all 0.5s ease;
    z-index: 0;
}

.game-info-category-btn:hover::before {
    left: 100%;
    right: -100%;
}

.game-info-category-btn span {
    position: relative;
    z-index: 1;
}

.game-info-category-btn.active {
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 0.2) 0%,
        rgba(147, 51, 234, 0.2) 100%
    );
    border-color: rgba(59, 130, 246, 0.4);
    color: white;
    box-shadow:
        0 4px 15px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

[dir="rtl"] .game-info-category-btn.active {
    transform: translateX(-4px);
}

.game-info-category-btn:not(.active) {
    background: rgba(31, 41, 55, 0.4);
    color: rgba(156, 163, 175, 1);
}

.game-info-category-btn:not(.active):hover {
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 0.1) 0%,
        rgba(147, 51, 234, 0.1) 100%
    );
    color: white;
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateX(2px);
}

[dir="rtl"] .game-info-category-btn:not(.active):hover {
    transform: translateX(-2px);
}

.game-info-category-count {
    background: rgba(59, 130, 246, 0.2);
    color: rgba(59, 130, 246, 1);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.game-info-category-btn.active .game-info-category-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

/* ===== Cards Grid ===== */
.game-info-grid {
    display: grid;
    gap: 24px;
}

/* Responsive Grid */
@media (min-width: 640px) {
    .game-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1280px) {
    .game-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1536px) {
    .game-info-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.game-info-card {
    background: linear-gradient(135deg,
        rgba(17, 24, 39, 0.9) 0%,
        rgba(31, 41, 55, 0.9) 100%
    );
    backdrop-filter: blur(20px);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.game-info-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
}

.game-info-card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.game-info-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-info-card:hover .game-info-card-image img {
    transform: scale(1.1) rotate(1deg);
}

.game-info-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.6) 100%
    );
}

.game-info-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 0.9) 0%,
        rgba(147, 51, 234, 0.9) 100%
    );
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

[dir="rtl"] .game-info-card-badge {
    left: auto;
    right: 16px;
}

.game-info-card-content {
    padding: 24px;
}

.game-info-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.game-info-card:hover .game-info-card-title {
    color: rgba(59, 130, 246, 1);
}

.game-info-card-excerpt {
    color: rgba(156, 163, 175, 1);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-info-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 1) 0%,
        rgba(147, 51, 234, 1) 100%
    );
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.game-info-card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 1) 0%,
        rgba(147, 51, 234, 1) 100%
    );
}

.game-info-card-btn i {
    transition: transform 0.3s ease;
}

.game-info-card:hover .game-info-card-btn i {
    transform: translateX(4px);
}

[dir="rtl"] .game-info-card:hover .game-info-card-btn i {
    transform: translateX(-4px);
}

/* ===== Single Guide View ===== */
.game-info-single {
    max-width: 1000px;
    margin: 0 auto;
}

.game-info-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(31, 41, 55, 0.8);
    color: rgba(156, 163, 175, 1);
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid rgba(75, 85, 99, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    backdrop-filter: blur(10px);
    margin-bottom: 24px;
}

.game-info-back-btn:hover {
    background: rgba(31, 41, 55, 1);
    color: white;
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.game-info-back-btn i {
    transition: transform 0.3s ease;
}

.game-info-back-btn:hover i {
    transform: translateX(-4px);
}

[dir="rtl"] .game-info-back-btn:hover i {
    transform: translateX(4px);
}

.game-info-article {
    background: linear-gradient(135deg,
        rgba(17, 24, 39, 0.95) 0%,
        rgba(31, 41, 55, 0.95) 100%
    );
    backdrop-filter: blur(20px);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.game-info-article-header {
    height: 320px;
    position: relative;
    overflow: hidden;
}

.game-info-article-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-info-article-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.8) 100%
    );
}

.game-info-article-meta {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
}

[dir="rtl"] .game-info-article-meta {
    left: 24px;
    right: 24px;
}

.game-info-article-category {
    display: inline-block;
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 0.9) 0%,
        rgba(147, 51, 234, 0.9) 100%
    );
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 16px;
}

.game-info-article-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 8px;
}

.game-info-article-body {
    padding: 48px;
    line-height: 1.8;
    font-size: 1.1rem;
    color: rgba(229, 231, 235, 1);
}

/* ===== Empty State ===== */
.game-info-empty {
    text-align: center;
    padding: 80px 24px;
    color: rgba(156, 163, 175, 1);
}

.game-info-empty-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg,
        rgba(75, 85, 99, 0.2) 0%,
        rgba(107, 114, 128, 0.2) 100%
    );
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .game-info-container {
        padding: 16px;
    }

    .game-info-sidebar {
        position: static;
        margin-bottom: 24px;
    }

    .game-info-article-body {
        padding: 32px 24px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .game-info-title {
        font-size: 2rem;
    }

    .game-info-search {
        max-width: 100%;
    }

    .game-info-grid {
        grid-template-columns: 1fr;
    }

    .game-info-card-image {
        height: 160px;
    }

    .game-info-article-header {
        height: 240px;
    }

    .game-info-article-body {
        padding: 24px 16px;
    }

    .game-info-category-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .game-info-container {
        padding: 12px;
    }

    .game-info-header {
        padding: 24px 16px;
    }

    .game-info-title {
        font-size: 1.75rem;
    }

    .game-info-sidebar {
        padding: 16px;
    }

    .game-info-card-content {
        padding: 16px;
    }

    .game-info-article-meta {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
}

/* ===== Custom Scrollbar ===== */
.game-info-sidebar::-webkit-scrollbar,
.game-info-article-body::-webkit-scrollbar {
    width: 6px;
}

.game-info-sidebar::-webkit-scrollbar-track,
.game-info-article-body::-webkit-scrollbar-track {
    background: rgba(31, 41, 55, 0.3);
    border-radius: 3px;
}

.game-info-sidebar::-webkit-scrollbar-thumb,
.game-info-article-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 0.6) 0%,
        rgba(147, 51, 234, 0.6) 100%
    );
    border-radius: 3px;
}

.game-info-sidebar::-webkit-scrollbar-thumb:hover,
.game-info-article-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 0.8) 0%,
        rgba(147, 51, 234, 0.8) 100%
    );
}

/* ===== Loading States ===== */
.game-info-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: rgba(156, 163, 175, 1);
}

.game-info-loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(59, 130, 246, 0.2);
    border-top: 3px solid rgba(59, 130, 246, 1);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 12px;
}

[dir="rtl"] .game-info-loading-spinner {
    margin-right: 0;
    margin-left: 12px;
}

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

/* ===== Accessibility Enhancements ===== */
.game-info-card:focus,
.game-info-category-btn:focus,
.game-info-card-btn:focus,
.game-info-back-btn:focus {
    outline: 2px solid rgba(59, 130, 246, 0.6);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== Enhanced Sidebar Animations ===== */
.game-info-sidebar {
    animation: fadeInLeft 0.8s ease-out;
}

@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.game-info-category-btn {
    animation: slideInScale 0.6s ease-out;
    animation-fill-mode: both;
}

.game-info-category-btn:nth-child(1) { animation-delay: 0.1s; }
.game-info-category-btn:nth-child(2) { animation-delay: 0.15s; }
.game-info-category-btn:nth-child(3) { animation-delay: 0.2s; }
.game-info-category-btn:nth-child(4) { animation-delay: 0.25s; }
.game-info-category-btn:nth-child(5) { animation-delay: 0.3s; }
.game-info-category-btn:nth-child(6) { animation-delay: 0.35s; }

@keyframes slideInScale {
    0% {
        opacity: 0;
        transform: translateX(-20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.game-info-category-btn:hover {
    animation: bounceHover 0.6s ease;
}

@keyframes bounceHover {
    0%, 100% { transform: translateX(0) scale(1); }
    25% { transform: translateX(8px) scale(1.02); }
    50% { transform: translateX(4px) scale(1.01); }
    75% { transform: translateX(6px) scale(1.015); }
}

[dir="rtl"] .game-info-category-btn:hover {
    animation: bounceHoverRTL 0.6s ease;
}

@keyframes bounceHoverRTL {
    0%, 100% { transform: translateX(0) scale(1); }
    25% { transform: translateX(-8px) scale(1.02); }
    50% { transform: translateX(-4px) scale(1.01); }
    75% { transform: translateX(-6px) scale(1.015); }
}

/* ===== Content Media Styling ===== */
.game-content-processed {
    text-align: center;
    line-height: 1.8;
    font-size: 1.1rem;
    color: rgba(229, 231, 235, 1);
}

.game-content-processed p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.game-content-media-wrapper {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Image Container ===== */
.game-content-image-container {
    position: relative;
    max-width: 600px;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 0.1) 0%,
        rgba(147, 51, 234, 0.1) 100%
    );
}

.game-content-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
        rgba(59, 130, 246, 0.2) 0%,
        transparent 30%,
        rgba(147, 51, 234, 0.2) 70%,
        transparent 100%
    );
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.game-content-image-container:hover::before {
    opacity: 1;
}

.game-content-image-container:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 0 2px rgba(59, 130, 246, 0.4),
        0 0 40px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.game-content-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.game-content-image-container:hover .game-content-image {
    transform: scale(1.05);
}

.game-content-image-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 ease;
    z-index: 3;
    backdrop-filter: blur(2px);
}

.game-content-image-container:hover .game-content-image-overlay {
    opacity: 1;
}

.game-content-image-overlay i {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
}

/* ===== Video Container ===== */
.game-content-video-container {
    position: relative;
    max-width: 800px;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(147, 51, 234, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg,
        rgba(147, 51, 234, 0.1) 0%,
        rgba(59, 130, 246, 0.1) 100%
    );
}

.game-content-video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
        rgba(147, 51, 234, 0.2) 0%,
        transparent 30%,
        rgba(59, 130, 246, 0.2) 70%,
        transparent 100%
    );
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: shimmer 3s ease-in-out infinite reverse;
}

.game-content-video-container:hover::before {
    opacity: 1;
}

.game-content-video-container:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 0 2px rgba(147, 51, 234, 0.4),
        0 0 40px rgba(147, 51, 234, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.game-content-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 16px;
    object-fit: cover;
}

.game-content-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
    backdrop-filter: blur(1px);
    pointer-events: none;
}

.game-content-video-container:hover .game-content-video-overlay {
    opacity: 1;
}

.game-content-video-overlay i {
    animation: playPulse 2s ease-in-out infinite;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

@keyframes playPulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.3); opacity: 1; }
}

/* ===== Cards Animation Enhancement ===== */
.game-info-grid {
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.game-info-card {
    animation: slideInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.game-info-card:nth-child(1) { animation-delay: 0.1s; }
.game-info-card:nth-child(2) { animation-delay: 0.2s; }
.game-info-card:nth-child(3) { animation-delay: 0.3s; }
.game-info-card:nth-child(4) { animation-delay: 0.4s; }
.game-info-card:nth-child(5) { animation-delay: 0.5s; }
.game-info-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive Media Enhancements ===== */
@media (max-width: 768px) {
    .game-content-image-container,
    .game-content-video-container {
        max-width: 100%;
        margin: 0 -16px;
        border-radius: 12px;
    }

    .game-content-processed {
        font-size: 1rem;
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .game-content-image-container,
    .game-content-video-container {
        margin: 1rem -12px;
        border-radius: 8px;
    }

    .game-content-processed {
        font-size: 0.9rem;
        padding: 0 12px;
    }

    .game-content-image-overlay i,
    .game-content-video-overlay i {
        font-size: 1.5rem;
    }
}

/* ===== Special "All" Category Styling ===== */
.game-info-category-btn[data-category="All"] {
    background: linear-gradient(135deg,
        rgba(16, 185, 129, 0.2) 0%,
        rgba(34, 197, 94, 0.2) 100%
    ) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
    position: relative;
    overflow: hidden;
}

.game-info-category-btn[data-category="All"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    right: 100%;
    bottom: 0;
    background: linear-gradient(90deg,
        transparent,
        rgba(16, 185, 129, 0.3),
        transparent
    );
    animation: greenShine 3s ease-in-out infinite;
    z-index: 0;
}

@keyframes greenShine {
    0% { left: -100%; right: 100%; }
    100% { left: 100%; right: -100%; }
}

.game-info-category-btn[data-category="All"].active {
    background: linear-gradient(135deg,
        rgba(16, 185, 129, 0.3) 0%,
        rgba(34, 197, 94, 0.3) 100%
    ) !important;
    border-color: rgba(16, 185, 129, 0.6) !important;
    box-shadow:
        0 4px 15px rgba(16, 185, 129, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.game-info-category-btn[data-category="All"] .game-info-category-count {
    background: rgba(16, 185, 129, 0.3) !important;
    color: rgba(16, 185, 129, 1) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
}

/* ===== Video Error Handling ===== */
.video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 24, 39, 0.95);
    border-radius: 16px;
}

.video-fallback.show {
    display: flex !important;
}

/* ===== YouTube iframe Enhancement ===== */
.game-content-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 16px;
    background-color: #000;
}

/* ===== Loading State for Videos ===== */
.video-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 24, 39, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.video-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(239, 68, 68, 0.2);
    border-top: 4px solid rgba(239, 68, 68, 1);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
