/* ==========================================================================
   HOLLOWSPIRE GAMES - Cosmic Arcade Design System
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables - Color System
   -------------------------------------------------------------------------- */
:root {
    /* Cosmic Background Colors */
    --cosmic-void: #0a0a0f;
    --cosmic-deep: #12121a;
    --cosmic-nebula: #1a1025;

    /* Neon Accent Colors */
    --neon-purple: #a855f7;
    --neon-pink: #ec4899;
    --neon-cyan: #22d3ee;
    --neon-gold: #fbbf24;
    --neon-green: #4ade80;
    --neon-orange: #f97316;
    --neon-blue: #3b82f6;
    --neon-red: #ef4444;

    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Surface Colors */
    --surface-card: rgba(26, 16, 37, 0.6);
    --surface-elevated: rgba(30, 20, 45, 0.8);
    --border-glow: rgba(168, 85, 247, 0.3);

    /* Shadows */
    --shadow-neon-sm: 0 0 10px rgba(168, 85, 247, 0.3);
    --shadow-neon-md: 0 0 20px rgba(168, 85, 247, 0.4);
    --shadow-neon-lg: 0 0 40px rgba(168, 85, 247, 0.5);
}

/* --------------------------------------------------------------------------
   Base Styles
   -------------------------------------------------------------------------- */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Exo 2', sans-serif;
    background: var(--cosmic-void);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Cosmic Background
   -------------------------------------------------------------------------- */
.cosmic-bg {
    background:
        radial-gradient(ellipse at 20% 20%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(34, 211, 238, 0.05) 0%, transparent 70%),
        linear-gradient(180deg, var(--cosmic-void) 0%, var(--cosmic-deep) 50%, var(--cosmic-nebula) 100%);
    background-attachment: fixed;
}

/* --------------------------------------------------------------------------
   CRT Scanline Effect
   -------------------------------------------------------------------------- */
.crt-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.02) 0px,
        rgba(0, 0, 0, 0.02) 1px,
        transparent 1px,
        transparent 2px
    );
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
.font-display {
    font-family: 'Audiowide', cursive;
}

.font-body {
    font-family: 'Exo 2', sans-serif;
}

/* Neon Text Glow */
.neon-glow {
    text-shadow:
        0 0 5px currentColor,
        0 0 10px currentColor,
        0 0 20px currentColor;
}

.neon-glow-strong {
    text-shadow:
        0 0 5px currentColor,
        0 0 10px currentColor,
        0 0 20px currentColor,
        0 0 40px currentColor;
}

/* --------------------------------------------------------------------------
   Scrollbar Styling
   -------------------------------------------------------------------------- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--cosmic-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--neon-purple);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-pink);
}

/* Hide scrollbar for category pills */
.category-scroll {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar utility class */
.scrollbar-hide {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* --------------------------------------------------------------------------
   Game Card Component
   -------------------------------------------------------------------------- */
.game-card {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--surface-card);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    border: 1px solid rgba(168, 85, 247, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
}

.game-card:hover {
    border-color: rgba(168, 85, 247, 0.5);
    transform: translateY(-4px);
    box-shadow: var(--shadow-neon-md);
}

.game-card-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.game-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 15, 0.9) 0%, transparent 60%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .game-card-overlay {
    opacity: 1;
}

.game-card .play-button {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--neon-purple);
    border-radius: 50%;
    font-size: 1.25rem;
    color: white;
    transition: all 0.2s ease;
}

.game-card:hover .play-button {
    background: var(--neon-pink);
    box-shadow: var(--shadow-neon-md);
    transform: scale(1.1);
}

.game-badge {
    position: absolute;
    top: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.game-badge.new {
    right: 0.5rem;
    background: var(--neon-cyan);
    color: var(--cosmic-void);
}

.game-badge.hot {
    left: 0.5rem;
    background: var(--neon-orange);
    color: white;
}

.game-card-info {
    padding: 0.75rem;
}

.game-card-title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.game-card:hover .game-card-title {
    color: var(--neon-purple);
}

.game-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.game-card-category {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-card-rating {
    color: var(--neon-gold);
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Category Tag Pills
   -------------------------------------------------------------------------- */
.category-pill {
    flex-shrink: 0;
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.category-pill:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.5);
    color: var(--text-primary);
}

.category-pill.active {
    background: rgba(168, 85, 247, 0.2);
    border-color: var(--neon-purple);
    color: var(--text-primary);
}

/* Category color variants */
.category-pill[data-color="gold"]:hover,
.category-pill[data-color="gold"].active {
    background: rgba(251, 191, 36, 0.2);
    border-color: var(--neon-gold);
}

.category-pill[data-color="cyan"]:hover,
.category-pill[data-color="cyan"].active {
    background: rgba(34, 211, 238, 0.2);
    border-color: var(--neon-cyan);
}

.category-pill[data-color="green"]:hover,
.category-pill[data-color="green"].active {
    background: rgba(74, 222, 128, 0.2);
    border-color: var(--neon-green);
}

.category-pill[data-color="pink"]:hover,
.category-pill[data-color="pink"].active {
    background: rgba(236, 72, 153, 0.2);
    border-color: var(--neon-pink);
}

.category-pill[data-color="orange"]:hover,
.category-pill[data-color="orange"].active {
    background: rgba(249, 115, 22, 0.2);
    border-color: var(--neon-orange);
}

.category-pill[data-color="blue"]:hover,
.category-pill[data-color="blue"].active {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--neon-blue);
}

.category-pill[data-color="red"]:hover,
.category-pill[data-color="red"].active {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--neon-red);
}

/* --------------------------------------------------------------------------
   Search Component
   -------------------------------------------------------------------------- */
.search-container {
    position: relative;
    width: 100%;
}

.search-container .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    color: var(--text-muted);
    pointer-events: none;
}

.search-container input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    background: var(--cosmic-deep);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 0.75rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s ease;
}

.search-container input::placeholder {
    color: var(--text-muted);
}

.search-container input:focus {
    border-color: var(--neon-purple);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.search-container .search-shortcut {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: var(--cosmic-nebula);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--cosmic-nebula) 0%, var(--cosmic-deep) 100%);
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 2rem;
}

@media (min-width: 768px) {
    .hero-content {
        padding: 3rem;
    }
}

.hero-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: rgba(236, 72, 153, 0.2);
    border: 1px solid rgba(236, 72, 153, 0.3);
    border-radius: 9999px;
    color: var(--neon-pink);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.hero-title {
    font-family: 'Audiowide', cursive;
    font-size: 2rem;
    margin: 0 0 1rem;
    text-shadow:
        0 0 10px rgba(168, 85, 247, 0.8),
        0 0 20px rgba(168, 85, 247, 0.5);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
}

.hero-description {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin: 0 0 1.5rem;
    max-width: 28rem;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--neon-purple) 0%, var(--neon-pink) 100%);
    border: none;
    border-radius: 0.75rem;
    color: white;
    font-family: 'Audiowide', cursive;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: var(--shadow-neon-sm);
}

.hero-cta:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-neon-lg);
}

.hero-image {
    aspect-ratio: 16/9;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 2px solid rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.3);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hero background decorations */
.hero-decoration {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.hero-decoration-1 {
    top: 0;
    right: 0;
    width: 24rem;
    height: 24rem;
    background: rgba(168, 85, 247, 0.1);
}

.hero-decoration-2 {
    bottom: 0;
    left: 0;
    width: 16rem;
    height: 16rem;
    background: rgba(236, 72, 153, 0.1);
}

/* Carousel dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.carousel-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: var(--text-muted);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-dot:hover {
    background: var(--text-secondary);
}

.carousel-dot.active {
    background: var(--neon-purple);
}

/* --------------------------------------------------------------------------
   Section Headers
   -------------------------------------------------------------------------- */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Audiowide', cursive;
    font-size: 1.5rem;
    margin: 0;
}

.section-title .icon {
    font-size: 1.875rem;
}

.section-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--neon-purple);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.section-link:hover {
    color: var(--neon-pink);
}

/* --------------------------------------------------------------------------
   Category Section Block
   -------------------------------------------------------------------------- */
.category-block {
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.category-block[data-category="mahjong"] {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, transparent 100%);
    border-color: rgba(251, 191, 36, 0.2);
}

.category-block[data-category="solitaire"] {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.1) 0%, transparent 100%);
    border-color: rgba(34, 211, 238, 0.2);
}

.category-block[data-category="puzzle"] {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.1) 0%, transparent 100%);
    border-color: rgba(74, 222, 128, 0.2);
}

.category-block[data-category="match3"] {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1) 0%, transparent 100%);
    border-color: rgba(236, 72, 153, 0.2);
}

/* --------------------------------------------------------------------------
   Game Player (Detail Page)
   -------------------------------------------------------------------------- */
.game-player {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 1rem;
    overflow: hidden;
    border: 2px solid rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.3);
}

.game-player iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.game-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.game-control-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--cosmic-nebula);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.game-control-btn:hover {
    background: rgba(168, 85, 247, 0.2);
    color: var(--text-primary);
}

.game-control-btn svg {
    width: 1rem;
    height: 1rem;
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes glow-rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(168, 85, 247, 0.8);
    }
}

@keyframes neon-flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        opacity: 1;
    }
    20%, 24%, 55% {
        opacity: 0.8;
    }
}

.fade-up {
    animation: fadeUp 0.6s ease forwards;
    opacity: 0;
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

.neon-flicker {
    animation: neon-flicker 3s infinite alternate;
}

/* Staggered delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.text-neon-purple { color: var(--neon-purple); }
.text-neon-pink { color: var(--neon-pink); }
.text-neon-cyan { color: var(--neon-cyan); }
.text-neon-gold { color: var(--neon-gold); }
.text-neon-green { color: var(--neon-green); }
.text-neon-orange { color: var(--neon-orange); }

.bg-neon-purple { background-color: var(--neon-purple); }
.bg-neon-pink { background-color: var(--neon-pink); }
.bg-neon-cyan { background-color: var(--neon-cyan); }
.bg-neon-gold { background-color: var(--neon-gold); }
.bg-neon-green { background-color: var(--neon-green); }

/* Category tag backgrounds */
.tag-mahjong { background: rgba(251, 191, 36, 0.9); color: var(--cosmic-void); }
.tag-solitaire { background: rgba(34, 211, 238, 0.9); color: var(--cosmic-void); }
.tag-puzzle { background: rgba(74, 222, 128, 0.9); color: var(--cosmic-void); }
.tag-match3 { background: rgba(236, 72, 153, 0.9); color: white; }
.tag-hidden { background: rgba(168, 85, 247, 0.9); color: white; }
.tag-action { background: rgba(249, 115, 22, 0.9); color: white; }
.tag-classic { background: rgba(59, 130, 246, 0.9); color: white; }
.tag-card { background: rgba(239, 68, 68, 0.9); color: white; }

/* --------------------------------------------------------------------------
   Loading State
   -------------------------------------------------------------------------- */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--cosmic-nebula) 25%,
        var(--cosmic-deep) 50%,
        var(--cosmic-nebula) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* --------------------------------------------------------------------------
   Lazy Loading Styles
   -------------------------------------------------------------------------- */

/* Image container with skeleton placeholder */
.lazy-image-container {
    position: relative;
    background: linear-gradient(90deg,
        rgba(26, 16, 37, 0.8) 0%,
        rgba(45, 25, 65, 0.8) 50%,
        rgba(26, 16, 37, 0.8) 100%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

/* Lazy image initial state */
.lazy-image {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

/* Lazy image loaded state */
.lazy-image.loaded {
    opacity: 1;
}

/* Game card image loading state */
.game-card-image .lazy-image:not(.loaded) + .game-card-overlay {
    opacity: 0;
}

/* Low quality placeholder (optional blur-up technique) */
.lazy-placeholder {
    position: absolute;
    inset: 0;
    filter: blur(10px);
    transform: scale(1.1);
    transition: opacity 0.3s ease-out;
}

.lazy-placeholder.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Fade in animation for images */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(1.02);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* --------------------------------------------------------------------------
   Game Player Lazy Load (Click to Play)
   -------------------------------------------------------------------------- */

/* Game cover overlay - shows before game loads */
.game-cover-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.game-cover-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Cover image */
.game-cover-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dark gradient overlay on top of cover image */
.game-cover-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10, 10, 15, 0.9) 0%,
        rgba(10, 10, 15, 0.4) 50%,
        rgba(10, 10, 15, 0.6) 100%
    );
}

/* Large play button */
.game-play-button {
    position: relative;
    z-index: 2;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--neon-purple);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
    box-shadow:
        0 0 30px rgba(168, 85, 247, 0.5),
        0 0 60px rgba(168, 85, 247, 0.3);
}

.game-cover-overlay:hover .game-play-button {
    transform: scale(1.1);
    background: var(--neon-pink);
    box-shadow:
        0 0 40px rgba(236, 72, 153, 0.6),
        0 0 80px rgba(236, 72, 153, 0.4);
}

/* Play text below button */
.game-play-text {
    position: relative;
    z-index: 2;
    margin-top: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Pulse animation for play button */
@keyframes playPulse {
    0%, 100% {
        box-shadow:
            0 0 30px rgba(168, 85, 247, 0.5),
            0 0 60px rgba(168, 85, 247, 0.3);
    }
    50% {
        box-shadow:
            0 0 40px rgba(168, 85, 247, 0.7),
            0 0 80px rgba(168, 85, 247, 0.5);
    }
}

.game-play-button {
    animation: playPulse 2s ease-in-out infinite;
}

.game-cover-overlay:hover .game-play-button {
    animation: none;
}

/* --------------------------------------------------------------------------
   Social Share Menu
   -------------------------------------------------------------------------- */

/* Share container - relative positioning for menu */
.share-container {
    position: relative;
}

/* Share dropdown menu */
.share-menu {
    position: absolute;
    bottom: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    background: var(--cosmic-deep);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 0.75rem;
    padding: 0.5rem;
    display: flex;
    gap: 0.25rem;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(168, 85, 247, 0.2);
    z-index: 50;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.share-menu.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(10px);
}

/* Arrow pointing down */
.share-menu::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: var(--cosmic-deep);
    border-right: 1px solid rgba(168, 85, 247, 0.4);
    border-bottom: 1px solid rgba(168, 85, 247, 0.4);
    transform: translateX(-50%) rotate(45deg);
}

/* Share button item */
.share-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
    background: transparent;
    cursor: pointer;
}

.share-item:hover {
    background: rgba(168, 85, 247, 0.2);
    transform: scale(1.1);
}

.share-item svg {
    width: 20px;
    height: 20px;
}

/* Platform-specific hover colors */
.share-item[data-platform="facebook"]:hover {
    color: #1877f2;
    background: rgba(24, 119, 242, 0.15);
}

.share-item[data-platform="twitter"]:hover {
    color: #1da1f2;
    background: rgba(29, 161, 242, 0.15);
}

.share-item[data-platform="whatsapp"]:hover {
    color: #25d366;
    background: rgba(37, 211, 102, 0.15);
}

.share-item[data-platform="telegram"]:hover {
    color: #0088cc;
    background: rgba(0, 136, 204, 0.15);
}

.share-item[data-platform="reddit"]:hover {
    color: #ff4500;
    background: rgba(255, 69, 0, 0.15);
}

.share-item[data-platform="copy"]:hover {
    color: var(--neon-green);
    background: rgba(74, 222, 128, 0.15);
}

/* Copy success state */
.share-item[data-platform="copy"].copied {
    color: var(--neon-green);
}

/* Tooltip for share items (optional, shown on hover) */
.share-item[title]:hover::before {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 0.5rem;
    background: var(--cosmic-void);
    border-radius: 0.25rem;
    font-size: 0.75rem;
    white-space: nowrap;
    color: var(--text-primary);
    opacity: 0;
    pointer-events: none;
}

/* ========================================
   Game Preview Cover (Lazy Load)
   ======================================== */
.game-preview-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    z-index: 10;
}

.game-preview-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.5) 100%);
}

.game-preview-cover .play-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 50px;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #a855f7 100%);
    background-size: 200% 200%;
    border: none;
    border-radius: 16px;
    box-shadow:
        0 8px 32px rgba(168, 85, 247, 0.5),
        0 0 60px rgba(236, 72, 153, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    animation: gradient-shift 3s ease infinite;
}

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

.game-preview-cover .play-btn:hover {
    transform: scale(1.05);
    box-shadow:
        0 12px 40px rgba(168, 85, 247, 0.6),
        0 0 80px rgba(236, 72, 153, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.game-preview-cover .play-btn svg {
    width: 24px;
    height: 24px;
    fill: white;
    flex-shrink: 0;
}

.game-preview-cover .play-btn .btn-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Hide preview when game is loaded */
.game-preview-cover.hidden {
    display: none;
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
    .game-preview-cover .play-btn {
        padding: 16px 36px;
        border-radius: 12px;
    }

    .game-preview-cover .play-btn svg {
        width: 20px;
        height: 20px;
    }

    .game-preview-cover .play-btn .btn-text {
        font-size: 1.25rem;
        letter-spacing: 1px;
    }
}

/* --------------------------------------------------------------------------
   Mobile Menu
   -------------------------------------------------------------------------- */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 80vw;
    height: 100vh;
    background: var(--cosmic-deep);
    border-left: 1px solid rgba(168, 85, 247, 0.3);
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu.hidden {
    display: none;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

.mobile-menu-categories {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.mobile-menu-category {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 0.75rem;
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-menu-category:hover,
.mobile-menu-category.active {
    background: rgba(168, 85, 247, 0.2);
    color: white;
}

.mobile-menu-category .icon {
    font-size: 1.25rem;
}

.mobile-menu-category .count {
    margin-left: auto;
    font-size: 0.75rem;
    color: #9ca3af;
}

.mobile-menu-footer {
    padding: 1rem;
    border-top: 1px solid rgba(168, 85, 247, 0.2);
}

.mobile-menu-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

.mobile-menu-link:hover {
    color: white;
}

/* Mobile Menu Backdrop overlay */
.mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}
