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

:root {
--primary-bg: #1a1a1a;
--secondary-bg: #2a2a2a;
--card-bg: #323232;
--text-primary: #ffffff;
--text-secondary: #b0b0b0;
--accent-purple: #7c3aed;
--accent-blue: #3b82f6;
--accent-green: #10b981;
--accent-orange: #f59e0b;
--accent-red: #ef4444;
--accent-teal: #14b8a6;
--gradient-purple: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
--gradient-blue: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
--gradient-green: linear-gradient(135deg, #00b894 0%, #00a085 100%);
--gradient-orange: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
--gradient-red: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
--gradient-teal: linear-gradient(135deg, #00cec9 0%, #00b894 100%);
--border-radius: 12px;
--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
--shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: var(--primary-bg);
color: var(--text-primary);
line-height: 1.6;
    overflow-x: hidden;
    overflow: hidden;
}

.all-content{
background-image: url(../images/games_imgs/123.webp);
background-repeat: no-repeat;
object-fit: cover;
min-height: 100vh;
background-size: cover;
background-attachment: fixed;
background-position: center;
padding-top: 5rem;
    filter: blur(20px);

}
.comming-soon{
    display: flex;
    position: absolute;
    width: 100vw;
    z-index: 8;
    font-size: 50px;
    background: #0000003d;
    height: 100%;
    align-items: center;
    justify-content: center;
}
/* Header Styles */
.header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px;
flex-direction: row;
gap: 2rem;
max-width: 1400px;
margin: 0 auto;
padding: 2rem 2rem 0rem 2rem;

}

.search-container {
flex: 1;
max-width: 300px;
}

.search-box {
display: flex;
align-items: center;
background: rgba(255, 255, 255, 0.1);
border-radius: 25px;
padding: 10px 20px;
border: 1px solid rgba(255, 255, 255, 0.2);
backdrop-filter: blur(10px);
}

.search-box i {
width: 20px;
height: 20px;
color: rgba(255, 255, 255, 0.6);
margin-left: 10px;
}

.search-box input {
background: none;
border: none;
color: white;
width: 100%;
outline: none;
font-size: 14px;
}

.search-box input::placeholder {
color: rgba(255, 255, 255, 0.5);
}

svg.feather.feather-search {
margin-left: 20px;
}

.nav-tabs {
display: flex;
gap: 5px;
}

.nav-tab {
padding: 12px 24px;
background: rgba(255, 255, 255, 0.1);
border: none;
border-radius: 25px;
color: rgba(255, 255, 255, 0.7);
cursor: pointer;
transition: all 0.3s ease;
font-size: 14px;
font-weight: 500;
}

.nav-tab.active {
background: rgba(255, 255, 255, 0.9);
color: #1a1a2e;
}

.nav-tab:hover {
background: rgba(255, 255, 255, 0.2);
}

.user-info {
display: flex;
align-items: center;
gap: 15px;
flex-direction: row;
}

.discord-icon {
width: 40px;
height: 40px;
background: #5865f2;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
background-image: url('../images/games_imgs/user2.jpg');
background-position: center;
background-size: contain;
background-repeat: no-repeat;
object-fit: cover;
}

.discord-icon i {
width: 20px;
height: 20px;
color: white;
}

.username {
font-weight: 600;
font-size: 16px;
}

.coins {
font-weight: 700;
color: #ffd700;
font-size: 16px;
}

.logo {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 1.5rem;
font-weight: 700;
color: #ffffff;
}

.user-coins { 
display: flex;
align-items: center;
gap: 0.5rem;
background: #f9f9f929;
padding: 10px;
border-radius: 50px;
color: #ffd70f;
font-weight: 600;
flex-direction: row-reverse;
}

/* Header Styles
.header {
   background: var(--secondary-bg);
   padding: 0 2rem;
   border-bottom: 1px solid #404040;
   position: sticky;
   top: 0;
   z-index: 100;
}

.header-content {
   display: flex;
   justify-content: space-between;
   align-items: center;
   max-width: 1400px;
   margin: 0 auto;
   height: 60px;
}

.header-left {
   display: flex;
   align-items: center;
   gap: 2rem;
}

.logo {
   display: flex;
   align-items: center;
   gap: 0.5rem;
   font-size: 1.5rem;
   font-weight: 700;
   color: var(--text-primary);
}

.logo i {
   color: var(--accent-purple);
   font-size: 1.8rem;
}

.nav-menu {
   display: flex;
   gap: 1.5rem;
}

.nav-item {
   color: var(--text-secondary);
   text-decoration: none;
   padding: 0.5rem 1rem;
   border-radius: var(--border-radius);
   transition: var(--transition);
   font-weight: 500;
}

.nav-item:hover,
.nav-item.active {
   color: var(--text-primary);
   background: var(--card-bg);
}

.user-profile {
   display: flex;
   align-items: center;
   gap: 1rem;
}

.user-avatar {
   width: 40px;
   height: 40px;
   background: var(--accent-purple);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   color: white;
   font-size: 1.2rem;
}

.username {
   font-weight: 600;
   color: var(--text-primary);
}

.user-coins {
   display: flex;
   align-items: center;
   gap: 0.5rem;
   background: var(--card-bg);
   padding: 0.5rem 1rem;
   border-radius: 20px;
   color: var(--accent-orange);
   font-weight: 600;
} */

/* Main Container */
.main-container {
display: grid;
grid-template-columns: 1fr 320px;
gap: 2rem;
max-width: 1400px;
margin: 0 auto;
padding: 2rem;

}

/* Join Banner */
.join-banner {
background: var(--gradient-purple);
border-radius: var(--border-radius);
padding: 2rem;
margin-bottom: 1rem;
position: relative;
overflow: hidden;
background-image: url('../images/games_imgs/Layer 7.png');
background-position: center;
background-size: cover;
}

.banner-content {
display: flex;
justify-content: space-between;
align-items: center;
position: relative;
z-index: 2;
}

.banner-text h1 {
font-size: 2.5rem;
font-weight: 700;
margin-bottom: 1rem;
color: white;
}

.banner-text p {
font-size: 1.1rem;
color: rgba(255, 255, 255, 0.9);
margin-bottom: 2rem;
line-height: 1.6;
}

.login-btn {
display: flex;
align-items: center;
gap: 0.5rem;
background: white;
color: var(--accent-purple);
border: none;
padding: 1rem 2rem;
border-radius: 50px;
font-weight: 600;
font-size: 1.1rem;
cursor: pointer;
transition: var(--transition);
}

.login-btn:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-lg);
}

.banner-visual {
position: relative;
width: 200px;
height: 150px;
}

.game-controller {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 4rem;
color: rgba(255, 255, 255, 0.8);
animation: float 3s ease-in-out infinite;
}

.floating-elements {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}

.banner-visual .element {
position: absolute;
border-radius: 50%;
animation: float 4s ease-in-out infinite;
}

.element-1 {
width: 20px;
height: 20px;
background: #ffd700;
top: 20%;
left: 10%;
animation-delay: -1s;
}

.element-2 {
width: 15px;
height: 15px;
background: #ff6b6b;
top: 60%;
right: 20%;
animation-delay: -2s;
}

.element-3 {
width: 25px;
height: 25px;
background: #4ecdc4;
bottom: 20%;
left: 60%;
animation-delay: -3s;
}

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

/* Category Section */
.category-section {
margin-bottom: 1rem;
width: 100%;
}

.category-grid {
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr;
gap: 1rem;
}

.category-card {
display: flex;
align-items: center;
gap: 1rem;
/* width: 231px; */
padding: 0.5rem 0.9rem 0.5rem 0.9rem;    border-radius: var(--border-radius);
cursor: pointer;
transition: var(--transition);
position: relative;
overflow: hidden;
}

.category-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: inherit;
opacity: 0.1;
z-index: 1;
}

.category-card > * {
position: relative;
z-index: 2;
}

.category-card.purple {
background: var(--gradient-purple);
}

.category-card.blue {
background: var(--gradient-blue);
}

.category-card.green {
background: var(--gradient-green);
}

.category-card.orange {
background: var(--gradient-orange);
}

.category-card:hover {
transform: translateY(-5px);
box-shadow: var(--shadow-lg);
}

.category-icon {
/* width: 60px; */
/* height: 60px; */
padding: 10px;
background: rgba(255, 255, 255, 0.2);
border-radius: var(--border-radius);
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
color: white;
}

.category-info h3 {
color: white;
font-size: 0.9rem;
/* font-weight: 600; */
/* margin-bottom: 0.5rem;*/
}

.category-info p {
color: rgba(255, 255, 255, 0.8);
font-size: 0.6rem;
}

/* Games Section */
.games-section {
margin-bottom: 2rem;
}

.section-header {
margin-bottom: 1.5rem;
}

.section-header h2 {
font-size: 1.5rem;
font-weight: 600;
color: var(--text-primary);
}

.games-grid {
display: grid;
/* grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); */
grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
gap: 1rem;
margin-bottom: 3rem;
}

.ffa-grid {
margin-bottom: 1rem;
}

.game-card {
aspect-ratio: 1;
border-radius: var(--border-radius);
padding: 2rem;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
cursor: pointer;
transition: var(--transition);
position: relative;
overflow: hidden;
background-image: url('../images/games_imgs/Fast Write.png');
background-position: center;
background-size: cover;
background-repeat: no-repeat;
}

.game-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: inherit;
opacity: 0.9;
z-index: 1;
}

.game-card > * {
position: relative;
z-index: 2;
}

.game-card:hover {
transform: scale(1.05);
box-shadow: var(--shadow-lg);
}

.game-icon {
width: 60px;
height: 60px;
background: rgba(255, 255, 255, 0.2);
border-radius: var(--border-radius);
display: flex;
align-items: center;
justify-content: center;
font-size: 2rem;
color: white;
margin-bottom: 1rem;
}

.game-card h3 {
color: white;
font-size: 1.1rem;
font-weight: 600;
}

/* Game Card Themes */
/* .blue-theme {
   background: var(--gradient-blue);
} */

.red-theme {
background-image: url('../images/games_imgs/X O.png');
} 

.teal-theme {
/* background: var(--gradient-teal); */
background-image: url('../images/games_imgs/Countrys.png');

}

.orange-theme {
/* background: var(--gradient-orange); */
background-image: url('../images/games_imgs/Photos.png');
}

.green-theme {
/* background: var(--gradient-green); */
background-image: url('../images/games_imgs/Booming.png');
}

.emerald-theme {
/* background: linear-gradient(135deg, #10b981 0%, #059669 100%); */
background-image: url('../images/games_imgs/X O.png');

}

.blue-dark-theme {
/* background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%); */
background-image: url('../images/games_imgs/Countrys.png');

}

.cyan-theme {
/* background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%); */
background-image: url('../images/games_imgs/Photos.png');

}

.red-dark-theme {
/* background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%); */
background-image: url('../images/games_imgs/Booming.png');

}

.purple-dark-theme {
/* background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%); */
background-image: url('../images/games_imgs/Booming.png');
}





/* Sidebar */
.sidebar {
background: #ffffff24;
border-radius: var(--border-radius);
height: fit-content;
position: sticky;
top: 80px;
}

.sidebar-content {
padding: 1.5rem;
}

.games-sidebar-section {
margin-bottom: 2rem;
}

.sidebar-game-card {
display: flex;
gap: 0.75rem;
padding: 1rem;
border-radius: var(--border-radius);
margin-bottom: 1rem;
transition: var(--transition);
cursor: pointer;
position: relative;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
border-color: rgba(255, 255, 255, 0.1);
transition: 0.3s;
}

.sidebar-game-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), rgba(59, 130, 246, 0.05));
opacity: 0;
transition: var(--transition);


}

.sidebar-game-card:hover::before {
opacity: 1;
}

.sidebar-game-card:hover {

padding: 15px 20px;
background: rgba(255, 255, 255, 0.151);
border-radius: 15px;
border-width: 1px;
border-style: solid;
border-image: initial;
transition: 0.3s;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(255, 255, 255, 0.108);
}

.game-image {
width: 50px;
height: 50px;
border-radius: var(--border-radius);
background-image: url('../images/games_imgs/Fast Write.png');
background-position: center;
background-size: cover;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
position: relative;
z-index: 2;
}

.game-icon-svg {
width: 32px;
height: 32px;
}

.game-info {
flex: 1;
position: relative;
z-index: 2;
}

.game-info h4 {
font-size: 0.95rem;
font-weight: 600;
color: var(--text-primary);
margin-bottom: 0.5rem;
}

.player-count {
display: flex;
align-items: center;
gap: 0.5rem;
margin-bottom: 0.75rem;
font-size: 0.8rem;
color: var(--text-secondary);
}

.player-count i {
font-size: 0.75rem;
color: var(--accent-purple);
}

.active-players {
display: flex;
align-items: center;
gap: 0.25rem;
}

.player-avatar {
width: 24px;
height: 24px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.7rem;
font-weight: 600;
color: white;
text-transform: uppercase;
border: 2px solid var(--secondary-bg);
position: relative;
transition: var(--transition);
}

.player-avatar:hover {
transform: scale(1.1);
z-index: 10;
}

.more-players {
width: 24px;
height: 24px;
border-radius: 50%;
background: var(--card-bg);
border: 2px solid var(--secondary-bg);
display: flex;
align-items: center;
justify-content: center;
font-size: 0.65rem;
font-weight: 600;
color: var(--text-secondary);
margin-left: 0.25rem;
}

/* Animation for player avatars */
.player-avatar:nth-child(1) {
animation: pulse 2s ease-in-out infinite;
animation-delay: 0s;
}

.player-avatar:nth-child(2) {
animation: pulse 2s ease-in-out infinite;
animation-delay: 0.3s;
}

.player-avatar:nth-child(3) {
animation: pulse 2s ease-in-out infinite;
animation-delay: 0.6s;
}

@keyframes pulse {
0%, 100% {
box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4);
}
50% {
box-shadow: 0 0 0 4px rgba(124, 58, 237, 0);
}
}

.thinking-section {
margin-bottom: 2rem;
}

.thinking-input {
position: relative;
}

.thinking-input input {
width: 100%;
background: var(--card-bg);
border: none;
border-radius: 25px;
padding: 0.75rem 3rem 0.75rem 1rem;
color: var(--text-primary);
font-size: 0.9rem;
}

.thinking-input input::placeholder {
color: var(--text-secondary);
}

.thinking-input input:focus {
outline: none;
box-shadow: 0 0 0 2px var(--accent-purple);
}

.send-btn {
position: absolute;
right: 0.5rem;
top: 50%;
transform: translateY(-50%);
background: var(--accent-purple);
border: none;
border-radius: 50%;
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
color: white;
cursor: pointer;
transition: var(--transition);
}

.send-btn:hover {
background: #6d28d9;
}

.ads-section h2 {
font-size: 2rem;
font-weight: 700;
color: var(--text-primary);
text-align: center;
opacity: 0.5;
}



/* Responsive Design */
@media (max-width: 1024px) {
.main-container {
grid-template-columns: 1fr;
gap: 1rem;
padding: 1rem;
}

.sidebar {
order: -1;
position: static;
}

.category-grid {
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.games-grid {
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
}

@media (max-width: 768px) {
.header {
padding: 0 1rem;
}

.header-content {
height: 50px;
}

.header-left {
gap: 1rem;
}

.nav-menu {
display: none;
}

.banner-content {
flex-direction: column;
text-align: center;
gap: 2rem;
}

.banner-text h1 {
font-size: 2rem;
}

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

.games-grid {
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.game-card {
padding: 1rem;
}

.game-icon {
width: 40px;
height: 40px;
font-size: 1.5rem;
}
}

@media (max-width: 480px) {
.main-container {
padding: 0.5rem;
}

.join-banner {
padding: 1.5rem;
margin-bottom: 1rem;
}

.banner-text h1 {
font-size: 1.5rem;
}

.banner-text p {
font-size: 1rem;
}

.login-btn {
padding: 0.75rem 1.5rem;
font-size: 1rem;
}

.user-coins {
display: none;
}

.username {
display: none;
}
}

/* Loading and Animation Classes */
.fade-in {
opacity: 0;
transform: translateY(20px);
transition: var(--transition);
}

.fade-in.visible {
opacity: 1;
transform: translateY(0);
}

.scale-in {
opacity: 0;
transform: scale(0.9);
transition: var(--transition);
}

.scale-in.visible {
opacity: 1;
transform: scale(1);
}

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

::-webkit-scrollbar-track {
background: var(--primary-bg);
}

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

::-webkit-scrollbar-thumb:hover {
background: #555;
}