@font-face {
    font-family: vazir;
    src: url("../fonts/Vazirmatn-Regular.woff2");
}
:root {
    --primary-dark-blue: #0a0e17;
    --secondary-dark-blue: #131a2c;
    --accent-blue: #1a56db;
    --neon-blue: #0066ff;
    --neon-purple: #8a2be2;
    --text-light: #f3f4f6;
    --text-gray: #9ca3af;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --primary: #6a11cb;
    --secondary: #2575fc;
    --dark: #0f0f1b;
    --darker: #070710;
    --light: #f0f0f0;
    --success: #00b894;
    --warning: #fdcb6e;
    --danger: #ff7675;
    --gray: #7f8c8d;
    --accent: #00c9ff;
    --card-bg: rgba(30, 30, 46, 0.7);
    --glass-bg: #0e0e10;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* فوتر */
footer {
    background-color: transparent;
    padding: 40px 0 20px;
    margin-top: 50px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer-col h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(-5px);
}

.footer-links a i {
    font-size: 0.9rem;
    margin-left: 10px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--accent);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent);
    color: var(--dark);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
    font-size: 0.9rem;
}
/* Animation Keyframes */
@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes loading{
    0%{transform: translateY(0px);}
    50%{transform: translateY(10px);}
    100%{transform: translateY(0px);}
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse {
    animation: pulse 3s ease-in-out infinite;
}

@keyframes textGlow {
    0% { text-shadow: 0 0 10px rgba(0, 201, 255, 0.5); }
    100% { text-shadow: 0 0 30px rgba(37, 117, 252, 0.8); }
}

@keyframes countUp {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

html {
    -ms-overflow-style: none;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Samim', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

/*u200c*/

body {
    font-family: vazir;
    background: linear-gradient(135deg, var(--darker), var(--dark));
    color: var(--light);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    transition: all 0.3s ease;
    /* -webkit-user-select: none;    */
}

body.menu-open {
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/*User*/

.UserImg{
    display: none;
    position: absolute;
    width: 2.5rem;
    height: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    left: 24%;
    transition: 0.3s;
    background-image: url("../img/DefaultAccountTile.png");
    object-fit: cover;
    background-size: cover;
}

.UserImg:hover{
    transform: scale(1.1);
    margin-top: -1%;
    transition: 0.3s;
    /*box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);*/
    box-shadow: 1px 1px 10px rgba(0, 168, 255, 0.3);
}

@keyframes fadeinUserMenu {
    0%{
        opacity: 0;
        transition: 1s;
    }
    100%{
        opacity: 1;
        transition: 1s;
    }
}

@keyframes fadeOutUserMenu {
    0%{
        opacity: 1;
        transition: 1s;
    }
    100%{
        opacity: 0;
        transition: 1s;
    }
}

.menu-user{
    position: fixed;
    display: none;
    /*height: 3.5rem;*/
    left: 22.5%;
    top: 95%;
    background: linear-gradient(135deg, var(--darker), var(--dark));
    background-color: white;
    justify-content: left;
    align-items: flex-end;
    padding: 1rem;
    color: white;
    border: 1px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 99999;
    cursor: pointer;
    transition: 1s;
    animation: fadeinUserMenu 0.5s forwards;
    border-radius: 0.4rem;
}

.setting{
    transition: 0.3s;
}

.setting:hover , .logOut:hover{
    background-color: rgba(0, 168, 255, 0.3);
    padding: 0.4rem;
    margin: -0.4rem;
    border-radius: 0.4rem;
    transition: 0.3s;
}

.logOut{
    color: #ff1616;
    transition: 0.3s;
}

/* Header Styles */
header {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    transform: translateY(-3px);
}

.logo i {
    font-size: 2.2rem;
    color: var(--accent);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo h1 {
    font-size: 1.8rem;
    background: linear-gradient(to right, var(--accent), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}

/* Gaming Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark-blue) 0%, var(--secondary-dark-blue) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    transition: opacity 0.5s ease-out;
}

.gaming-loader {
    position: relative;
    width: 180px;
    height: 180px;
    margin-bottom: 2rem;
}

.gaming-loader-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 4px solid rgba(26, 86, 219, 0.2);
    border-top: 4px solid var(--neon-blue);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.gaming-loader-inner:nth-child(2) {
    border: 4px solid rgba(138, 43, 226, 0.2);
    border-top: 4px solid var(--neon-purple);
    animation-delay: 0.5s;
    width: 160px;
    height: 160px;
    top: 10px;
    left: 10px;
}

.gaming-loader-inner:nth-child(3) {
    border: 4px solid rgba(239, 68, 68, 0.2);
    border-top: 4px solid var(--danger);
    animation-delay: 1s;
    width: 140px;
    height: 140px;
    top: 20px;
    left: 20px;
}

.loader-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.loading-text {
    font-size: 1.2rem;
    margin-top: 1rem;
    text-align: center;
}

.loading-dots {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 20px;
}

.loading-dots span {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--neon-blue);
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.loading-dots span:nth-child(1) {
    left: 8px;
    animation: loading-dots1 0.6s infinite;
}

.loading-dots span:nth-child(2) {
    left: 8px;
    animation: loading-dots2 0.6s infinite;
}

.loading-dots span:nth-child(3) {
    left: 32px;
    animation: loading-dots2 0.6s infinite;
}

.loading-dots span:nth-child(4) {
    left: 56px;
    animation: loading-dots3 0.6s infinite;
}

@keyframes loading-dots1 {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

@keyframes loading-dots3 {
    0% { transform: scale(1); }
    100% { transform: scale(0); }
}

@keyframes loading-dots2 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(24px, 0); }
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.card-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.stream-card.loading .card-loading {
    opacity: 1;
    pointer-events: all;
}

.card-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(26, 86, 219, 0.2);
    border-top: 4px solid var(--accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Me Code!!! */

.loading{
    position: fixed;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    background-color: black;
    transform: translate(-50% , -50%);
    z-index: 1000;
}

#logo-l{
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 8rem;
    padding: 1rem;
    animation: loading 1s infinite;
}

#p-logo{
    display: flex;
    justify-content: center;
}

#loading-p{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}

#padding{
    padding: 1rem;
}


#card-tic-toc{
    background-color: rgba(43, 255, 0, 0.6);
}


/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    color: var(--accent);
    font-size: 1.8rem;
    z-index: 1100;
    width: 40px;
    height: 40px;
    position: relative;
    transition: var(--transition);
}

.hamburger span {
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--accent);
    border-radius: 2px;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { top: 10px; }
.hamburger span:nth-child(2) { top: 18px; }
.hamburger span:nth-child(3) { top: 26px; }

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 18px;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 18px;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    color: var(--light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

nav a:hover {
    color: var(--accent);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

nav a:hover::after {
    width: 100%;
}

.liList{
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
}

.liList li{
    display: inline-block;
    margin-left: 28px;
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 28px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 117, 252, 0.3);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100%;
    background: rgba(15, 15, 27, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1000;
    overflow-y: auto;
    transition: all 0.5s var(--ease-out-back);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
    border-left: 1px solid rgba(0, 201, 255, 0.3);
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.mobile-menu.active {
    right: 0;
}

.close-menu {
    background: transparent;
    border: none;
    color: var(--accent);
    font-size: 1.8rem;
    cursor: pointer;
    align-self: flex-end;
    margin-bottom: 20px;
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-menu a {
    color: var(--light);
    text-decoration: none;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu a:hover {
    background: rgba(0, 201, 255, 0.1);
}

.mobile-menu a i {
    font-size: 1.2rem;
    width: 24px;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    position: relative;
    background: linear-gradient(to right, var(--accent), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-content {
        max-width: 90%;
    }
}

@media (max-width: 992px) {
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid, .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .stream-grid {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
    }
}
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    nav {
        display: none;
    }
    
    .header-container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero-content {
        padding: 30px 20px;
    }
    
    .hero h2 {
        font-size: 2rem;
        line-height: 1.4;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat-item {
        min-width: 100px;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .tournament-card {
        flex-direction: column;
        text-align: center;
    }
    
    .tournament-icon {
        margin-bottom: 15px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .section-title {
        font-size: 2.2em;
        margin-bottom: 40px;
    }

    .stream-hero h2 {
        font-size: 2.5em;
    }

    .stream-hero p {
        font-size: 1em;
    }

    .stream-hero .hero-buttons .btn {
        font-size: 0.9em;
        padding: 10px 20px;
        margin: 5px;
    }

    .filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filters .search-input,
    .filters .category-select,
    .filters .btn {
        width: 100%;
        margin-left: 0; /* Override margin for stacked items */
        margin-bottom: 10px; /* Add spacing between stacked items */
    }

    .main-stream-card .stream-content {
        padding: 15px;
    }

    .main-stream-card .streamer-avatar {
        width: 50px;
        height: 50px;
    }

    .main-stream-card .streamer-name {
        font-size: 1.2em;
    }

    .main-stream-card h3 {
        font-size: 1.6em;
    }

    .main-stream-card .stream-stats-bar {
        flex-direction: column;
        gap: 10px;
    }

    .chat-box .messages {
        max-height: 250px;
    }

    .streamer-profile-card .btn {
        width: 90%;
    }
}

@media (max-width: 645px){
    .hero-image{
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-image{
        display: none;
    }
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 40px;
    }
    
    .hero-content {
        padding: 25px 15px;
    }
    
    .game-card, .feature-card, .player-card, .news-card {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .stat-value {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .mobile-menu {
        width: 85%;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}
@media (max-width: 480px) {
    .section-title {
        font-size: 1.8em;
    }

    .stream-hero h2 {
        font-size: 2em;
    }

    .stream-hero p {
        font-size: 0.9em;
    }

    .main-stream-card .streamer-info {
        flex-direction: column;
        align-items: flex-start;
        text-align: right;
    }

    .main-stream-card .streamer-avatar {
        margin-left: 0;
        margin-bottom: 10px;
    }
}
/* اسکرول بار زیبا */
::-webkit-scrollbar {
    height: 8px;
    width: 8px;
    background-color: #161616;
    border-radius: 200px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 102, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary), var(--accent));
    border-radius: 10px;
    box-shadow: var(--neon-effect);
}