﻿@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

:root {
    --bg-dark: #050505;
    --bg-panel: #0a0a0a;
    --neon-blue: #00f3ff;     /* آبی براق نئونی */
    --rust-orange: #ce422b;   /* نارنجی معروف راست */
    --rust-dark: #8a2be2;
    --text-main: #e0e0e0;
    --glass-bg: rgba(20, 20, 20, 0.65);
    --glass-border: rgba(0, 243, 255, 0.15); /* حاشیه آبی کمرنگ */
    --glass-highlight: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(0, 243, 255, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(206, 66, 43, 0.08) 0%, transparent 25%);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Scrollbar Customization */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: var(--rust-orange); border-radius: 4px; }

/* Navigation */
nav {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.logo img {
    height: 60px;
    filter: drop-shadow(0 0 8px var(--neon-blue));
    transition: 0.5s;
}

.logo img:hover {
    filter: drop-shadow(0 0 15px var(--neon-blue));
    transform: rotate(5deg);
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: #fff;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: 0.3s;
    text-shadow: 0 0 5px rgba(0, 243, 255, 0.3);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    right: 0;
    background: var(--neon-blue);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--neon-blue);
}

.nav-links a:hover { color: var(--neon-blue); }
.nav-links a:hover::after { width: 100%; }

/* Glassmorphism Cards */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    flex: 1;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.05), transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
}

.glass-panel:hover::before { left: 150%; transition: 0.7s; }

.glass-panel:hover {
    transform: translateY(-5px);
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

/* Typography & Titles */
h1, h2, h3 {
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.6);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

p { color: #aaa; line-height: 1.8; }

/* Buttons (Rust Theme) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 35px;
    background: linear-gradient(45deg, #a3321f, var(--rust-orange));
    color: #fff;
    border: none;
    border-radius: 5px; /* گوشه‌های تیزتر مثل راست */
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    position: relative;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
    margin: 10px;
}

.btn:hover {
    background: linear-gradient(45deg, var(--rust-orange), #ff5722);
    box-shadow: 0 0 20px rgba(206, 66, 43, 0.6);
    transform: scale(1.05);
    text-shadow: 0 0 5px #fff;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--neon-blue);
    color: var(--neon-blue);
    clip-path: none;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
}

.btn-outline:hover {
    background: rgba(0, 243, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
}

/* Server Status Pulse */
.status-container {
    display: inline-block;
    padding: 15px 30px;
    border: 1px solid var(--rust-orange);
    background: rgba(0,0,0,0.6);
    border-radius: 50px;
    margin: 30px 0;
    position: relative;
}

.pulse-ring {
    display: inline-block;
    width: 15px;
    height: 15px;
    background: #4caf50;
    border-radius: 50%;
    margin-left: 15px;
    box-shadow: 0 0 0 rgba(76, 175, 80, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

/* Grid System */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Specific Page Elements */
.rank-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    filter: grayscale(40%);
    transition: 0.4s;
    border: 1px solid #333;
}

.glass-panel:hover .rank-img {
    filter: grayscale(0%);
    border-color: var(--rust-orange);
}

.price-tag {
    font-size: 1.8rem;
    color: var(--rust-orange);
    font-weight: 900;
    text-shadow: 0 0 10px rgba(206, 66, 43, 0.5);
    margin: 15px 0;
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    background: #000;
    padding: 2rem;
    text-align: center;
    color: #555;
    font-size: 0.85rem;
}

/* Mobile */
.mobile-menu-btn { display: none; color: var(--neon-blue); font-size: 1.5rem; cursor: pointer; }

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px; right: -100%;
        width: 100%; height: 100vh;
        flex-direction: column;
        background: #000;
        align-items: center;
        padding-top: 50px;
        transition: 0.4s;
        border-top: 1px solid var(--neon-blue);
    }
    .nav-links.active { right: 0; }
    .mobile-menu-btn { display: block; }
}
