/* style.css */

* { box-sizing: border-box; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #0a0a0a; color: #fff; overflow-x: hidden; }

::selection { background: #FFD700; color: #0a0a0a; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #050505; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #FFD700, #D4A700); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #FFE566, #FFD700); }

/* ============ LOADING SCREEN ============ */
.loading-screen { position: fixed; inset: 0; background: #050505; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 9999; transition: opacity .6s ease, visibility .6s ease; }
.loading-screen.hidden { opacity: 0; visibility: hidden; }
.loading-logo { font-size: clamp(1.75rem, 5vw, 2.5rem); font-weight: 900; letter-spacing: .02em; margin-bottom: 2rem; opacity: 0; animation: fadeInUp .8s ease .2s forwards; color: #fff; }
.loading-logo .gold { color: #FFD700; }
.loading-bar { width: 220px; height: 2px; background: rgba(255,255,255,.08); border-radius: 2px; overflow: hidden; position: relative; }
.loading-bar::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, #FFD700, transparent); animation: loadingProgress 1.4s ease-in-out infinite; }
.loading-text { font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; color: #666; margin-top: 1.25rem; opacity: 0; animation: fadeIn .8s ease .4s forwards; }
@keyframes loadingProgress { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ============ HEADER ============ */
.header { position: sticky; top: 0; z-index: 100; background: rgba(10,10,10,.7); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255,215,0,.08); transition: all .3s ease; }
.header.scrolled { background: rgba(10,10,10,.95); border-bottom-color: rgba(255,215,0,.18); }

.logo { font-weight: 900; font-size: 1.125rem; letter-spacing: -.01em; display: inline-flex; align-items: baseline; gap: .05em; color: #fff; text-decoration: none; transition: opacity .3s ease; }
.logo:hover { opacity: .85; }
.logo .gold-text { color: #FFD700; }

.nav-link { position: relative; color: #aaa; text-decoration: none; font-size: .875rem; font-weight: 500; transition: color .3s ease; padding: .5rem 0; }
.nav-link:hover, .nav-link.active { color: #FFD700; }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: #FFD700; transition: width .3s cubic-bezier(.22,1,.36,1); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link-mobile { color: #ddd; border-bottom: 1px solid rgba(255,255,255,.05); transition: all .3s ease; }
.nav-link-mobile:hover { color: #FFD700; padding-left: .5rem; }

/* Search */
.search-box { position: relative; }
.search-input { background: rgba(255,255,255,.04); border: 1px solid rgba(255,215,0,.15); border-radius: 9999px; padding: .55rem 1rem .55rem 2.5rem; color: #fff; width: 220px; transition: all .3s ease; font-size: .8rem; }
.search-input:focus { outline: none; border-color: #FFD700; background: rgba(255,215,0,.04); width: 260px; box-shadow: 0 0 0 3px rgba(255,215,0,.08); }
.search-input::placeholder { color: #555; }
.search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: #888; pointer-events: none; }
.search-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: rgba(17,17,17,.95); backdrop-filter: blur(20px); border: 1px solid rgba(255,215,0,.2); border-radius: 1rem; padding: .5rem; max-height: 320px; overflow-y: auto; display: none; z-index: 50; }
.search-results.show { display: block; }
.search-result-item { display: flex; align-items: center; gap: .75rem; padding: .625rem; border-radius: .5rem; cursor: pointer; transition: background .2s ease; }
.search-result-item:hover { background: rgba(255,215,0,.08); }
.search-result-item img { width: 40px; height: 40px; border-radius: .375rem; object-fit: cover; }
.search-result-item .title { font-size: .85rem; font-weight: 600; color: #fff; }
.search-result-item .meta { font-size: .7rem; color: #888; }

/* ============ HERO ============ */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; padding: 6rem 0 4rem; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; opacity: .25; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(10,10,10,.98) 0%, rgba(10,10,10,.7) 50%, rgba(10,10,10,.98) 100%); }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(100px); opacity: .25; pointer-events: none; z-index: 0; }
.hero-glow-1 { width: 500px; height: 500px; background: #FFD700; top: 10%; left: -150px; animation: floatGlow 12s ease-in-out infinite; }
.hero-glow-2 { width: 400px; height: 400px; background: #D4A700; bottom: 5%; right: -100px; animation: floatGlow 14s ease-in-out infinite reverse; }
@keyframes floatGlow { 0%, 100% { transform: translate(0,0); } 50% { transform: translate(40px,-40px); } }

.hero-eyebrow { font-size: .7rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: #FFD700; display: block; margin-bottom: 1.5rem; }
.hero-title { font-size: clamp(1.25rem, 3vw, 3.25rem); font-weight: 900; line-height: 1.02; letter-spacing: -.035em; margin-bottom: 1.5rem; }
.hero-title .gold { color: #FFD700; }
.hero-subtitle { font-size: clamp(1rem, 2vw, 1.25rem); color: #ccc; min-height: 1.5em; }
.typewriter { color: #FFD700; border-right: 2px solid #FFD700; padding-right: 2px; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { border-color: transparent; } }

.hero-banner{

position:relative;

}

.hero-banner::before{

content:"";

position:absolute;

width:320px;

height:320px;

background:#FFD700;

filter:blur(120px);

opacity:.15;

right:-80px;

bottom:-60px;

z-index:-1;

}

.hero-banner img{

border:1px solid rgba(255,215,0,.2);

background:#111;

}

@media(max-width:1024px){

.hero-banner{

margin-top:50px;

}

.hero-banner img{

max-width:500px;

}

}

.btn-primary { background: #FFD700; color: #0a0a0a; padding: .9rem 1.75rem; border-radius: 9999px; font-weight: 700; font-size: .875rem; transition: all .4s cubic-bezier(.22,1,.36,1); display: inline-flex; align-items: center; gap: .5rem; border: 2px solid #FFD700; cursor: pointer; text-decoration: none; }
.btn-primary:hover { background: transparent; color: #FFD700; transform: translateY(-2px); box-shadow: 0 12px 32px -10px rgba(255,215,0,.5); }
.btn-outline { background: transparent; color: #FFD700; padding: .9rem 1.75rem; border-radius: 9999px; font-weight: 700; font-size: .875rem; border: 2px solid rgba(255,215,0,.4); transition: all .3s ease; display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; text-decoration: none; }
.btn-outline:hover { border-color: #FFD700; background: rgba(255,215,0,.05); transform: translateY(-2px); }

.stat-item { border-left: 2px solid rgba(255,215,0,.3); padding-left: 1rem; }
.stat-number { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 900; color: #FFD700; line-height: 1; }
.stat-label { font-size: .7rem; color: #888; text-transform: uppercase; letter-spacing: .15em; margin-top: .5rem; }

/* ============ SECTIONS ============ */
.section-eyebrow { font-size: .7rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: #FFD700; display: block; margin-bottom: .75rem; }
.section-title { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 900; letter-spacing: -.025em; line-height: 1.1; }
.section-title .accent { color: #FFD700; }

.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid rgba(255,255,255,.06); gap: 1rem; flex-wrap: wrap; }

/* ============ CATEGORY CARDS ============ */
.category-card { background: rgba(255,255,255,.025); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.06); border-radius: 1.25rem; padding: 1.5rem; transition: all .4s cubic-bezier(.22,1,.36,1); cursor: pointer; position: relative; overflow: hidden; text-decoration: none; display: block; }
.category-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 0%, rgba(255,215,0,.06) 100%); opacity: 0; transition: opacity .4s ease; }
.category-card:hover { border-color: rgba(255,215,0,.35); transform: translateY(-4px); box-shadow: 0 20px 40px -15px rgba(255,215,0,.15); }
.category-card:hover::before { opacity: 1; }
.category-icon { width: 56px; height: 56px; border-radius: 1rem; background: linear-gradient(135deg, rgba(255,215,0,.15), rgba(255,215,0,.04)); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; transition: transform .4s cubic-bezier(.22,1,.36,1); }
.category-card:hover .category-icon { transform: scale(1.08) rotate(-4deg); }
.category-card h3 { color: #fff; }

/* ============ GAME CARDS ============ */
.game-card { background: rgba(255,255,255,.025); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.06); border-radius: 1rem; overflow: hidden; transition: all .4s cubic-bezier(.22,1,.36,1); position: relative; }
.game-card:hover { border-color: rgba(255,215,0,.3); transform: translateY(-6px); box-shadow: 0 20px 40px -15px rgba(0,0,0,.5), 0 0 0 1px rgba(255,215,0,.1); }
.game-card-image { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #111; }
.game-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22,1,.36,1); opacity: 0; }
.game-card-image img.loaded { opacity: 1; }
.game-card:hover .game-card-image img { transform: scale(1.08); }
.game-card-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(10,10,10,.95) 100%); display: flex; align-items: flex-end; justify-content: center; padding: 1rem; opacity: 0; transition: opacity .3s ease; }
.game-card:hover .game-card-overlay { opacity: 1; }
.play-button { background: #FFD700; color: #0a0a0a; padding: .55rem 1.4rem; border-radius: 9999px; font-weight: 700; font-size: .8rem; transform: translateY(12px); transition: transform .35s cubic-bezier(.22,1,.36,1); display: inline-flex; align-items: center; gap: .4rem; border: none; cursor: pointer; }
.game-card:hover .play-button { transform: translateY(0); }
.rating-badge { position: absolute; top: .75rem; right: .75rem; background: rgba(10,10,10,.85); backdrop-filter: blur(10px); color: #FFD700; padding: .25rem .6rem; border-radius: 9999px; font-size: .7rem; font-weight: 700; border: 1px solid rgba(255,215,0,.3); z-index: 2; }
.category-badge { position: absolute; top: .75rem; left: .75rem; background: rgba(10,10,10,.85); backdrop-filter: blur(10px); color: #fff; padding: .25rem .6rem; border-radius: 9999px; font-size: .65rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; border: 1px solid rgba(255,255,255,.1); z-index: 2; }

/* ============ TABS ============ */
.tab-pill { padding: .5rem 1.1rem; border-radius: 9999px; font-size: .8rem; font-weight: 600; color: #888; transition: all .3s ease; cursor: pointer; border: 1px solid transparent; background: rgba(255,255,255,.03); }
.tab-pill:hover { color: #fff; border-color: rgba(255,215,0,.2); }
.tab-pill.active { background: #FFD700; color: #0a0a0a; border-color: #FFD700; }

/* ============ SKELETON ============ */
.skeleton-card { background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.04); border-radius: 1rem; overflow: hidden; padding: 0; }
.skeleton { background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%); background-size: 200% 100%; animation: skeleton-loading 1.5s infinite; border-radius: .25rem; }
@keyframes skeleton-loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-img { width: 100%; aspect-ratio: 16/10; border-radius: 0; }
.skeleton-line { height: 14px; margin: 1rem 1rem 0; }
.skeleton-line.short { width: 50%; margin-bottom: 1rem; }

/* ============ SIDEBAR ============ */
.sidebar-card { background: rgba(255,255,255,.025); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.06); border-radius: 1.25rem; padding: 1.5rem; }
.sidebar-title { font-size: .95rem; font-weight: 700; margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 1px solid rgba(255,215,0,.12); color: #fff; display: flex; align-items: center; gap: .5rem; }
.sidebar-title .accent { color: #FFD700; font-size: .6rem; }

.category-list { display: flex; flex-direction: column; gap: .25rem; }
.category-item { display: flex; align-items: center; justify-content: space-between; padding: .625rem .75rem; border-radius: .5rem; color: #aaa; transition: all .3s ease; cursor: pointer; text-decoration: none; font-size: .85rem; }
.category-item:hover { background: rgba(255,215,0,.06); color: #FFD700; transform: translateX(4px); }
.category-item .count { background: rgba(255,215,0,.1); color: #FFD700; font-size: .7rem; font-weight: 700; padding: .125rem .5rem; border-radius: 9999px; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag { padding: .35rem .8rem; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 9999px; font-size: .72rem; color: #999; transition: all .3s ease; cursor: pointer; }
.tag:hover { background: rgba(255,215,0,.1); color: #FFD700; border-color: rgba(255,215,0,.3); }

.popular-game { display: flex; align-items: center; gap: .875rem; padding: .625rem; border-radius: .75rem; transition: all .3s ease; cursor: pointer; }
.popular-game:hover { background: rgba(255,215,0,.06); }
.popular-game-num { width: 26px; height: 26px; border-radius: .5rem; background: rgba(255,215,0,.1); color: #FFD700; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .8rem; flex-shrink: 0; }
.popular-game-img { width: 48px; height: 48px; border-radius: .5rem; object-fit: cover; flex-shrink: 0; opacity: 0; transition: opacity .4s ease; }
.popular-game-img.loaded { opacity: 1; }

/* ============ ABOUT ============ */
.about-feature { display: flex; align-items: flex-start; gap: .875rem; padding: .875rem; border-radius: .875rem; background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.05); transition: all .3s ease; }
.about-feature:hover { border-color: rgba(255,215,0,.2); transform: translateY(-2px); }
.about-feature-icon { width: 36px; height: 36px; border-radius: .625rem; background: rgba(255,215,0,.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.about-image-wrap { position: relative; border-radius: 1.5rem; overflow: hidden; aspect-ratio: 4/3; }
.about-image { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.about-image.loaded { opacity: 1; }
.about-image-glow { position: absolute; inset: 0; background: radial-gradient(circle at 70% 30%, rgba(255,215,0,.15), transparent 60%); pointer-events: none; }

/* ============ FOOTER ============ */
.footer { background: #050505; border-top: 1px solid rgba(255,215,0,.08); }
.footer-title { font-size: .75rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: #FFD700; margin-bottom: 1.25rem; }
.footer-link { color: #888; transition: all .3s ease; display: inline-block; font-size: .875rem; text-decoration: none; }
.footer-link:hover { color: #FFD700; transform: translateX(4px); }

/* ============ BACK TO TOP ============ */
.back-to-top { position: fixed; bottom: 2rem; right: 2rem; width: 48px; height: 48px; background: #FFD700; color: #0a0a0a; border-radius: 9999px; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all .4s cubic-bezier(.22,1,.36,1); z-index: 50; box-shadow: 0 12px 32px -10px rgba(255,215,0,.5); border: none; cursor: pointer; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); box-shadow: 0 16px 36px -10px rgba(255,215,0,.7); }

/* ============ MOBILE MENU ============ */
.mobile-menu { position: fixed; inset: 0; background: rgba(10,10,10,.98); backdrop-filter: blur(20px); z-index: 99; padding: 5rem 2rem 2rem; transform: translateX(100%); transition: transform .4s cubic-bezier(.22,1,.36,1); overflow-y: auto; }
.mobile-menu.open { transform: translateX(0); }

/* ============ ANIMATIONS ============ */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1); }
.fade-in.visible { opacity: 1; transform: translateY(0); }

.loading-spinner { width: 32px; height: 32px; border: 2px solid rgba(255,215,0,.15); border-top-color: #FFD700; border-radius: 50%; animation: spin 1s linear infinite; opacity: 0; transition: opacity .3s ease; }
.loading-spinner.active { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

.newsletter-input { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 9999px; padding: .9rem 1.25rem; color: #fff; width: 100%; transition: all .3s ease; font-size: .875rem; }
.newsletter-input:focus { outline: none; border-color: #FFD700; background: rgba(255,215,0,.04); box-shadow: 0 0 0 3px rgba(255,215,0,.08); }
.newsletter-input::placeholder { color: #555; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero { min-height: auto; padding: 5rem 0 3rem; }
}
@media (max-width: 768px) {
  .search-input { width: 160px; }
  .search-input:focus { width: 180px; }
  .back-to-top { bottom: 1.25rem; right: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}