/* easyaider - Main Styles - Modern Minimalist + Rainbow Design */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2C3E50;
    background: #F8F9FA;
    min-height: 100vh;
    position: relative;
}

/* Prevent background scroll when overlays are open */
body.no-scroll {
    overflow: hidden;
    height: 100vh;
    overscroll-behavior: none;
    -ms-overflow-style: none;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #F8F9FA 0%, #EEF2F5 100%);
    z-index: -1;
    pointer-events: none;
}

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

/* Header Styles */
.header {
    background: #FFFFFF;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-bottom: 2px solid #E8EAED;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0;
}

.logo a {
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.logo a:hover {
    transform: scale(1.05);
}

.logo h1 {
    background: linear-gradient(135deg, #FF6B6B 0%, #4ECDC4 50%, #45B7D1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0;
    transition: all 0.3s ease;
}

.logo i {
    margin-right: 0.5rem;
    color: #FF6B6B;
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #2C3E50;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.nav-link i {
    font-size: 1rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #FFFFFF;
    background: linear-gradient(135deg, #FF6B6B 0%, #4ECDC4 100%);
    transform: translateY(-2px);
}

.nav-link:hover i,
.nav-link.active i {
    opacity: 1;
    color: #FFFFFF;
    transform: scale(1.1);
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(78, 205, 196, 0.1) 100%);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
}

.search-box {
    display: flex;
    align-items: center;
    background: #F0F2F5;
    /* border-radius: 8px; */
    padding: 0.5rem 1rem;
    /* border: 2px solid #E8EAED; */
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: #4ECDC4;
    box-shadow: 0 0 12px rgba(78, 205, 196, 0.2);
}

.search-box input {
    border: none;
    background: none;
    outline: none;
    padding: 0.5rem;
    width: 200px;
    color: #2C3E50;
    font-size: 0.9rem;
}

.search-box input::placeholder {
    color: #95A5A6;
}

.search-box button {
    background: none;
    border: none;
    color: #4ECDC4;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.search-box button:hover {
    color: #FF6B6B;
    background: rgba(255, 107, 107, 0.1);
    transform: scale(1.1);
}

.mobile-menu-toggle, .search-toggle {
    display: none; /* enabled on mobile via responsive.css */
    width: 40px;
    height: 40px;
    position: relative; /* center absolute <i> icons */
    font-size: 1.1rem;
    color: #2C3E50;
    cursor: pointer;
    border-radius: 8px;
    background: #F0F2F5;
    border: 2px solid #E8EAED;
    transition: all 0.2s ease;
    z-index: 1001;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    padding: 0; /* avoid odd sizing with absolute icons */
    line-height: 1;
}

.mobile-menu-toggle i,
.search-toggle i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.mobile-menu-toggle .fa-times,
.search-toggle .fa-times {
    display: none;
}

.mobile-menu-toggle.active .fa-bars,
.search-toggle.active .fa-search {
    display: none;
}

.mobile-menu-toggle.active .fa-times,
.search-toggle.active .fa-times {
    display: block;
}

.mobile-menu-toggle:hover, .search-toggle:hover {
    background: rgba(104, 66, 255, 0.15);
    border-color: rgba(104, 66, 255, 0.3);
    transform: translateY(-1px);
}

/* Hero Banner */
.hero-banner {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0F1419 0%, #1A1B28 50%, #0F1419 100%);
    isolation: isolate;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1A1B28 0%, #2D2E42 100%);
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 107, 107, 0.08) 0%, transparent 15%),
        radial-gradient(circle at 90% 80%, rgba(78, 205, 196, 0.08) 0%, transparent 15%);
    opacity: 0.5;
}

.hero-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.decoration {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.decoration-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.1) 0%, transparent 70%);
}

.decoration-2 {
    width: 150px;
    height: 150px;
    bottom: 15%;
    right: 10%;
    background: radial-gradient(circle, rgba(78, 205, 196, 0.1) 0%, transparent 70%);
    animation-delay: 2s;
}

.decoration-3 {
    width: 100px;
    height: 100px;
    top: 60%;
    left: 15%;
    background: radial-gradient(circle, rgba(69, 183, 209, 0.1) 0%, transparent 70%);
    animation-delay: 4s;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Wrapper */
.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 60px 0;
}

.hero-left-section {
    animation: fadeInLeft 0.8s ease-out;
}

.hero-content-box {
    max-width: 550px;
}

.hero-main-title {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: #FFFFFF;
}

.title-line {
    display: block;
    color: #D0D5E0;
}

.title-highlight {
    display: block;
    background: linear-gradient(135deg, #FF6B6B 0%, #4ECDC4 50%, #45B7D1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-main-desc {
    font-size: 1.15rem;
    color: #D0D5E0;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.hero-btn-group {
    display: flex;
    gap: 1.2rem;
}

.hero-right-section {
    animation: fadeInRight 0.8s ease-out 0.2s both;
}

.hero-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.25) 0%, rgba(78, 205, 196, 0.25) 100%);
    border: 2px solid rgba(255, 107, 107, 0.6);
    color: #FF9999;
    padding: 0.7rem 1.3rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.25);
    animation: pulse 2.5s ease-in-out infinite;
}

.hero-badge i {
    color: #FF6B6B;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: #FFFFFF;
    letter-spacing: -0.5px;
}

.gradient-text {
    background: linear-gradient(135deg, #FF6B6B 0%, #4ECDC4 50%, #45B7D1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(10deg); }
}

/* Hero Cards */
.hero-card {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(78, 205, 196, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-card:hover {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.15) 0%, rgba(78, 205, 196, 0.15) 100%);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.2);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FF6B6B 0%, #4ECDC4 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #FFFFFF;
}

.hero-card-1 .card-icon {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 100%);
}

.hero-card-2 .card-icon {
    background: linear-gradient(135deg, #4ECDC4 0%, #6FE7DE 100%);
}

.hero-card-3 .card-icon {
    background: linear-gradient(135deg, #45B7D1 0%, #6FD3E8 100%);
}

.hero-card-4 .card-icon {
    background: linear-gradient(135deg, #F7B731 0%, #FFD93D 100%);
}

.card-text h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
}

.card-text p {
    font-size: 0.9rem;
    color: #D0D5E0;
    margin: 0;
}

.hero-cta {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 0;
}

.btn-primary {
    background: linear-gradient(135deg, #FF6B6B 0%, #4ECDC4 100%);
    color: white;
    border: none;
    padding: 1.1rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 12px 30px rgba(255, 107, 107, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1.1rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.5s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Floating Cards */
.floating-card {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    color: #FFFFFF;
    font-weight: 600;
    animation: float 3s ease-in-out infinite;
}

.floating-card i {
    font-size: 2rem;
    background: linear-gradient(135deg, #FF6B6B 0%, #4ECDC4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-1 {
    top: 20px;
    left: 0;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    animation-delay: 0.5s;
}

.card-3 {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    color: #D0D5E0;
    font-weight: 500;
}

.feature i {
    color: #6842FF;
    font-size: 1.4rem;
}

/* Game Showcase */
.game-showcase {
    background: linear-gradient(135deg, rgba(45, 46, 66, 0.8) 0%, rgba(60, 62, 90, 0.7) 100%);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.game-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(104, 66, 255, 0.1) 0%, rgba(164, 142, 255, 0.05) 100%);
    z-index: -1;
}

.showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.8rem;
    padding-bottom: 1.2rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

.showcase-header h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #F9FAFF;
    margin: 0;
}

.showcase-nav {
    display: flex;
    gap: 0.5rem;
}

.nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(104, 66, 255, 0.2);
    border: 1px solid rgba(104, 66, 255, 0.4);
    color: #A48EFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: rgba(104, 66, 255, 0.4);
    transform: scale(1.1);
}

.showcase-games {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    flex-grow: 1;
}

.showcase-game {
    background: rgba(30, 32, 53, 0.5);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.showcase-game::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(104, 66, 255, 0.05) 0%, rgba(164, 142, 255, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.showcase-game:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(104, 66, 255, 0.3);
}

.showcase-game:hover::before {
    opacity: 1;
}

.showcase-game img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.showcase-game:hover img {
    transform: scale(1.05);
}

.showcase-game-info {
    padding: 1rem;
}

.showcase-game-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #F9FAFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.showcase-game-info .category {
    font-size: 0.8rem;
    color: #A48EFF;
    background: rgba(104, 66, 255, 0.2);
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    display: inline-block;
}

.showcase-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator:hover {
    background: rgba(104, 66, 255, 0.5);
    transform: scale(1.2);
}

.indicator.active {
    background: #6842FF;
    transform: scale(1.2);
}

/* Category Navigation */
.category-nav {
    padding: 80px 0 60px;
    background: rgba(12, 13, 20, 0.8);
    position: relative;
}

.category-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(104, 66, 255, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(255, 107, 157, 0.1) 0%, transparent 30%);
    z-index: 0;
}

.category-nav h2 {
    font-size: 2.8rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #FFFFFF 0%, #E8EAED 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.category-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%);
    border-radius: 18px;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid #E8EAED;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.15) 0%, rgba(78, 205, 196, 0.15) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.category-card:hover {
    transform: translateY(-12px) scale(1.05);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
    border-color: #4ECDC4;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #FF6B6B 0%, #4ECDC4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.category-card:hover i {
    transform: scale(1.2) rotate(10deg);
}

.category-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0;
    color: #2C3E50;
    display: block;
}

.category-card p {
    font-size: 0.85rem;
    color: #7F8C8D;
    margin: 0;
}

/* Games Sections */
.featured-games, .new-games, .popular-games {
    padding: 80px 0;
}

.featured-games {
    background: #F8F9FA;
}

.new-games {
    background: #FFFFFF;
    position: relative;
    overflow: hidden;
    border-top: 2px solid #E8EAED;
    border-bottom: 2px solid #E8EAED;
}

.popular-games {
    background: #F8F9FA;
}

.featured-games h2, .new-games h2, .popular-games h2 {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    color: #2C3E50;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.games-grid .game-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
    margin-bottom: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    min-height: auto;
    background:#fff
}

.games-grid .game-card:nth-child(even) {
    direction: rtl;
}

.games-grid .game-card:nth-child(even) > * {
    direction: ltr;
}

.games-grid .game-card-image {
    border-radius: 12px;
    overflow: hidden;
    height: 220px;
    width: 100%;
}

.games-grid .game-card-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.games-grid .game-card-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.scroll-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.scroll-btn {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
    z-index: 10;
}

.scroll-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.scroll-btn:active {
    transform: scale(0.95);
}

.scroll-btn-left {
    order: -1;
}

.games-scroll {
    display: flex;
    gap: 2rem;
    padding: 1rem 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    flex: 1;
}

.games-scroll > .game-card {
    flex: 0 0 250px;
    min-width: 250px;
}

.games-scroll::-webkit-scrollbar {
    height: 8px;
}

.games-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.games-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.games-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.games-scroll .game-card {
    flex: 1 1 auto;
    width: auto;
    margin-bottom: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.games-scroll .game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Popular Games - Premium Design */
.popular-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.popular-header h2 {
    font-size: 2.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.popular-subtitle {
    font-size: 1.15rem;
    color: #7F8C8D;
    font-weight: 500;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.popular-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid #E8EAED;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    position: relative;
}

.popular-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    border-color: #4ECDC4;
}

.popular-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

.popular-card:hover .popular-card-image img {
    transform: scale(1.12) rotate(2deg);
}

.popular-rank {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 100%);
    color: #FFFFFF;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.4rem;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
    border: 3px solid #FFFFFF;
}

.popular-card-content {
    padding: 1.5rem;
}

.popular-card-content h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
    color: #2C3E50;
    line-height: 1.3;
}

.popular-card-content p {
    font-size: 0.85rem;
    color: #7F8C8D;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.popular-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #E8EAED;
}

.popular-rating {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: #F7B731;
    font-weight: 600;
}

.popular-play-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #FFFFFF;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.popular-play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.game-card {
    /* background: #464852; */
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #E8EAED;
    backdrop-filter: blur(10px);
    margin-bottom: 0;
    break-inside: avoid;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: #4ECDC4;
}

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

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

.games-scroll .game-card {
    display: flex;
    flex-direction: column;
}

.games-scroll .game-card .game-card-image {
    height: 200px;
    margin-bottom: 0;
}

.games-scroll .game-card .game-card-image img {
    height: 200px;
}

.game-card-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
}

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

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

.game-card-content {
    padding: 1.5rem;
}

.game-card-content h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: #1F2937; /* darker for better contrast */
    background: none; /* ensure no gradient text applies */
    -webkit-text-fill-color: initial;
}

.game-card-content p {
    font-size: 0.85rem;
    color: #7F8C8D;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(78, 205, 196, 0.1) 100%);
    color: #FF6B6B;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.play-btn {
    width: 100%;
    background: linear-gradient(135deg, rgba(104, 66, 255, 0.2) 0%, rgba(164, 142, 255, 0.1) 100%);
    color: #A48EFF;
    border: 2px solid rgba(104, 66, 255, 0.4);
    padding: 0.8rem;
    border-radius: 15px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
}

.play-btn:hover {
    background: linear-gradient(135deg, rgba(104, 66, 255, 0.8) 0%, rgba(164, 142, 255, 0.9) 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(104, 66, 255, 0.3);
    border-color: rgba(104, 66, 255, 0.8);
}

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

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
}

.scroll-controls {
    display: flex;
    gap: 0.5rem;
}

.scroll-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(104, 66, 255, 0.2);
    border: 1px solid rgba(104, 66, 255, 0.4);
    color: #A48EFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.scroll-btn:hover {
    background: rgba(104, 66, 255, 0.4);
    transform: scale(1.1);
}

/* Footer */
.footer {
    position: relative;
    padding: 80px 0 40px;
    background: #2C3E50;
    border-top: 2px solid #E8EAED;
    overflow: hidden;
}

.footer-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.footer-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(255, 107, 107, 0.05) 0%,
        rgba(78, 205, 196, 0.02) 50%,
        rgba(69, 183, 209, 0.05) 100%);
}

.footer-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 107, 107, 0.05) 0%, transparent 15%),
        radial-gradient(circle at 90% 80%, rgba(78, 205, 196, 0.05) 0%, transparent 15%);
    opacity: 0.3;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    position: relative;
    z-index: 2;
    margin-bottom: 4rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer-logo h3 {
    background: linear-gradient(135deg, #FF6B6B 0%, #4ECDC4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-logo h3 i {
    margin-right: 0.5rem;
    color: #FF6B6B;
}

.footer-logo p {
    color: #BDC3C7;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.footer-stats {
    display: flex;
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FF6B6B 0%, #4ECDC4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #BDC3C7;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #FFFFFF;
    position: relative;
    padding-bottom: 0.7rem;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #FF6B6B 0%, #4ECDC4 100%);
    border-radius: 3px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.8rem;
}

.footer-column a {
    text-decoration: none;
    color: #BDC3C7;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.footer-column a:hover {
    color: #4ECDC4;
    transform: translateX(5px);
}

.footer-column a i {
    font-size: 0.8rem;
    color: #FF6B6B;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    position: relative;
    z-index: 2;
}

.footer-bottom-content {
    text-align: center;
}

.footer-bottom-content p {
    color: #BDC3C7;
    font-size: 0.9rem;
}

.footer-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.footer-decoration {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.1) 0%, transparent 70%);
}

.footer-decoration-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
}

.footer-decoration-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: 100px;
    background: radial-gradient(circle, rgba(78, 205, 196, 0.1) 0%, transparent 70%);
}

/* Game Details */
.game-details {
    padding: 120px 0 80px;
    background: #F8F9FA;
    position: relative;
    overflow: hidden;
}

.game-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 107, 107, 0.08) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(78, 205, 196, 0.08) 0%, transparent 30%);
    z-index: 0;
}

.game-details-content {
    position: relative;
    z-index: 1;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #A48EFF;
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    color: #6842FF;
    text-decoration: underline;
}

.breadcrumb span {
    color: #BDBFCE;
}

.breadcrumb i {
    font-size: 0.8rem;
}

.game-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    background: rgba(26, 27, 40, 0.8);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.game-thumbnail {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.game-thumbnail:hover img {
    transform: scale(1.05);
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.play-game-btn {
    background: linear-gradient(135deg, #6842FF 0%, #A48EFF 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    box-shadow: 0 10px 25px rgba(104, 66, 255, 0.3);
}

.play-game-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(104, 66, 255, 0.4);
}

.game-meta h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #F9FAFF;
}

.game-category {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(104, 66, 255, 0.2);
    color: #A48EFF;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.game-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #BDBFCE;
}

.stat i {
    color: #6842FF;
}

.game-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.game-description, .game-instructions, .game-tags {
    background: rgba(26, 27, 40, 0.8);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-description h3, .game-instructions h3, .game-tags h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #F9FAFF;
}

.game-description p, .game-instructions p {
    font-size: 1.1rem;
    color: #BDBFCE;
    line-height: 1.7;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.related-games {
    background: rgba(26, 27, 40, 0.8);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.related-games h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #F9FAFF;
}

.related-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.error-message {
    text-align: center;
    padding: 3rem;
}

.error-message i {
    font-size: 3rem;
    color: #FF6B9D;
    margin-bottom: 1rem;
}

.error-message h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #F9FAFF;
}

.error-message p {
    font-size: 1.1rem;
    color: #BDBFCE;
    margin-bottom: 2rem;
}

/* Category Hero */
.category-hero {
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg,
        rgba(104, 66, 255, 0.1) 0%,
        rgba(164, 142, 255, 0.05) 50%,
        rgba(255, 107, 157, 0.1) 100%);
    isolation: isolate;
}

.category-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.category-hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
   background:#454751;
}

.category-hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(104, 66, 255, 0.1) 0%, transparent 15%),
        radial-gradient(circle at 90% 80%, rgba(255, 107, 157, 0.1) 0%, transparent 15%);
    opacity: 0.5;
}

.category-hero-content {
    position: relative;
    z-index: 2;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 1rem;
}

.category-icon {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    background: rgba(104, 66, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(104, 66, 255, 0.4);
    box-shadow: 0 10px 25px rgba(104, 66, 255, 0.2);
}

.category-icon i {
    font-size: 3rem;
    color: #A48EFF;
}

.category-info h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #F9FAFF;
    background: linear-gradient(135deg, #F9FAFF 0%, #A48EFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-info p {
    font-size: 1.1rem;
    color: #BDBFCE;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.category-stats {
    display: flex;
    gap: 2rem;
}

.category-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-stats .stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #6842FF;
    margin-bottom: 0.3rem;
}

.category-stats .stat-label {
    font-size: 0.9rem;
    color: #BDBFCE;
}

/* Category Filters */
.category-filters {
    padding: 20px 0;
    background: rgba(26, 27, 40, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filters-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.filter-group label {
    font-size: 0.9rem;
    color: #BDBFCE;
    font-weight: 500;
}

.filter-group select {
    background: rgba(12, 13, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #F9FAFF;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: #6842FF;
    box-shadow: 0 0 10px rgba(104, 66, 255, 0.3);
}

.view-toggle {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.view-btn {
    background: rgba(12, 13, 20, 0.8);
    border: none;
    color: #BDBFCE;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn.active {
    background: rgba(104, 66, 255, 0.2);
    color: #A48EFF;
}

.view-btn:hover {
    background: rgba(104, 66, 255, 0.1);
    color: #6842FF;
}

.games-per-page select {
    min-width: 100px;
}

/* Category Games */
.category-games {
    padding: 60px 0;
    background: rgba(12, 13, 20, 0.8);
}

.games-container {
    margin-bottom: 3rem;
}

.loading-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.loading-more .loading-spinner {
    margin-bottom: 1rem;
}

.loading-more p {
    color: #BDBFCE;
    font-size: 1rem;
}

.no-games {
    text-align: center;
    padding: 3rem;
}

.no-games-icon {
    font-size: 3rem;
    color: #FF6B9D;
    margin-bottom: 1rem;
}

.no-games h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #F9FAFF;
}

.no-games p {
    font-size: 1.1rem;
    color: #BDBFCE;
    margin-bottom: 2rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination-btn {
    background: rgba(26, 27, 40, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #BDBFCE;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.pagination-btn:hover {
    background: rgba(104, 66, 255, 0.2);
    color: #A48EFF;
    border-color: rgba(104, 66, 255, 0.4);
}

.pagination-btn.active {
    background: linear-gradient(135deg, #6842FF 0%, #A48EFF 100%);
    color: white;
    border-color: #6842FF;
}

.pagination-ellipsis {
    color: #BDBFCE;
    padding: 0.5rem;
}

/* Other Categories */
.other-categories {
    padding: 80px 0;
    background: rgba(26, 27, 40, 0.8);
}

.other-categories h2 {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    color: #F9FAFF;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

/* Search Hero */
.search-hero {
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg,
        rgba(104, 66, 255, 0.1) 0%,
        rgba(164, 142, 255, 0.05) 50%,
        rgba(255, 107, 157, 0.1) 100%);
    isolation: isolate;
}

.search-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.search-hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(104, 66, 255, 0.1) 0%,
        rgba(164, 142, 255, 0.05) 50%,
        rgba(255, 107, 157, 0.1) 100%);
}

.search-hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(104, 66, 255, 0.1) 0%, transparent 15%),
        radial-gradient(circle at 90% 80%, rgba(255, 107, 157, 0.1) 0%, transparent 15%);
    opacity: 0.5;
}

.search-hero-content {
    position: relative;
    z-index: 2;
}

.search-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 1rem;
}

.search-icon {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    background: rgba(104, 66, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(104, 66, 255, 0.4);
    box-shadow: 0 10px 25px rgba(104, 66, 255, 0.2);
}

.search-icon i {
    font-size: 3rem;
    color: #A48EFF;
}

.search-info h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #F9FAFF;
    background: linear-gradient(135deg, #F9FAFF 0%, #A48EFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-info p {
    font-size: 1.1rem;
    color: #BDBFCE;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.main-search-box {
    display: flex;
    gap: 1rem;
    max-width: 600px;
}

.main-search-box input {
    flex-grow: 1;
    background: rgba(26, 27, 40, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: #F9FAFF;
    padding: 1rem 1.5rem;
    border-radius: 30px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.main-search-box input:focus {
    outline: none;
    border-color: #6842FF;
    box-shadow: 0 0 20px rgba(104, 66, 255, 0.3);
}

.main-search-box input::placeholder {
    color: #AAADBE;
}

.main-search-box button {
    background: linear-gradient(135deg, #6842FF 0%, #A48EFF 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    box-shadow: 0 10px 25px rgba(104, 66, 255, 0.3);
}

.main-search-box button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(104, 66, 255, 0.4);
}

/* Search Results */
.search-results {
    padding: 60px 0;
    background: rgba(12, 13, 20, 0.8);
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-results-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #F9FAFF;
}

.search-filters {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.search-results-content {
    margin-bottom: 3rem;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.no-results {
    text-align: center;
    padding: 3rem;
}

.no-results-icon {
    font-size: 3rem;
    color: #FF6B9D;
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #F9FAFF;
}

.no-results p {
    font-size: 1.1rem;
    color: #BDBFCE;
    margin-bottom: 2rem;
}

.search-suggestions h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #F9FAFF;
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    justify-content: center;
}

.search-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.search-loading .loading-spinner {
    margin-bottom: 1rem;
}

.search-loading p {
    color: #BDBFCE;
    font-size: 1rem;
}

/* Popular Categories */
.popular-categories {
    padding: 80px 0;
    background: rgba(26, 27, 40, 0.8);
}

.popular-categories h2 {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    color: #F9FAFF;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-left {
        padding-right: 0;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-features {
        justify-content: center;
    }

    .games-masonry {
        column-count: 2;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-right {
        max-width: 500px;
        margin: 0 auto;
    }

    .games-masonry {
        column-count: 1;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }

    .stat-item {
        text-align: left;
    }
}

@media (max-width: 576px) {
    .header-content {
        padding: 0.8rem 0;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .hero-banner {
        padding: 100px 0 60px;
        min-height: 400px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 40px 0;
    }

    .hero-visual {
        height: 300px;
    }

    .floating-card {
        position: static;
        transform: none !important;
        margin-bottom: 1rem;
    }

    .card-2, .card-3 {
        transform: none !important;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }

    .category-nav h2, .featured-games h2, .new-games h2, .popular-games h2 {
        font-size: 2rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .search-box input {
        width: 150px;
    }
}

/* Legal Pages */
.legal-page {
    margin-top: 80px;
}

.legal-hero {
    position: relative;
    padding: 4rem 0;
    overflow: hidden;
}

.legal-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.legal-hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #252632;
}

.legal-hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    background-size: 200px 200px;
}

.legal-hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.legal-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.legal-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.legal-info h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.legal-info p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.legal-meta {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.legal-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legal-content {
    padding: 4rem 0;
    background: rgba(26, 27, 40, 0.3);
    backdrop-filter: blur(15px);
}

.legal-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.legal-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.legal-nav {
    background: rgba(26, 27, 40, 0.8);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-nav h3 {
    color: #F9FAFF;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.legal-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-nav li {
    margin-bottom: 0.5rem;
}

.legal-nav a {
    color: #BDBFCE;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    display: block;
    transition: color 0.3s ease;
    border-left: 3px solid transparent;
    padding-left: 1rem;
}

.legal-nav a:hover {
    color: #A48EFF;
    border-left-color: #6842FF;
}

.legal-main {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.legal-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.legal-section h2 {
    color: #F9FAFF;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1rem;
}

.legal-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #6842FF, #A48EFF);
    border-radius: 2px;
}

.legal-section h3 {
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

@keyframes float {
    0% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-20px) translateX(10px); }
    100% { transform: translateY(0) translateX(0); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(104, 66, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(104, 66, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(104, 66, 255, 0); }
}

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