/* ===================================
   CS EliteGaming - Custom Styles
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ff6b35;
    --secondary: #f7931e;
    --accent: #00d9ff;
    --dark: #0a0e27;
    --darker: #050814;
}

body {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* ===================================
   NAVIGATION
   =================================== */

#navbar {
    background: rgba(5, 8, 20, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
    transition: all 0.3s ease;
}

#navbar.scrolled {
    background: rgba(5, 8, 20, 0.98);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.1);
}

.logo-container {
    position: relative;
    animation: float 3s ease-in-out infinite;
}

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

.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.auth-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.login-btn {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.login-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4);
}

.register-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: 2px solid transparent;
    color: white;
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.6);
}

.mobile-menu {
    background: rgba(5, 8, 20, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 107, 53, 0.1);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   HERO SECTION
   =================================== */

.hero-section {
    position: relative;
    padding-top: 80px;
}

.hero-bg {
    background: url('../img/hero.png') center center / cover no-repeat;
    animation: zoomIn 20s ease infinite alternate;
}

@keyframes zoomIn {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-overlay {
    background: 
        linear-gradient(135deg, rgba(5, 8, 20, 0.85) 0%, rgba(10, 14, 39, 0.75) 100%),
        radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 217, 255, 0.15) 0%, transparent 50%);
}

/* Particles */
.particles {
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.6;
    animation: particleFloat 20s infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 40%;
    left: 80%;
    animation-delay: 2s;
    background: var(--accent);
}

.particle:nth-child(3) {
    top: 60%;
    left: 30%;
    animation-delay: 4s;
}

.particle:nth-child(4) {
    top: 80%;
    left: 70%;
    animation-delay: 6s;
    background: var(--secondary);
}

.particle:nth-child(5) {
    top: 30%;
    left: 50%;
    animation-delay: 8s;
    background: var(--accent);
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translate(100px, -100px) scale(1.5);
        opacity: 0.8;
    }
    50% {
        transform: translate(200px, 50px) scale(1);
        opacity: 0.4;
    }
    75% {
        transform: translate(100px, 100px) scale(1.2);
        opacity: 0.6;
    }
}

.hero-badge {
    animation: fadeInDown 1s ease;
}

.hero-title {
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-subtitle {
    animation: fadeInUp 1s ease 0.4s both;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 5s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

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

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

.cta-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-btn:hover::before {
    width: 300px;
    height: 300px;
}

.primary-cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: 2px solid transparent;
}

.primary-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.5);
}

.secondary-cta {
    background: transparent;
    color: white;
    border: 2px solid var(--accent);
}

.secondary-cta:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.5);
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.6s both;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    transform: translateY(-5px);
}

.scroll-indicator {
    animation: bounce 2s infinite;
}

/* ===================================
   SECTIONS
   =================================== */

.section-title {
    animation: fadeInUp 1s ease;
}

/* ===================================
   SERVER CARDS
   =================================== */

.server-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.server-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.server-card:hover::before {
    transform: scaleX(1);
}

.server-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.3);
}

.server-card-header {
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.server-card-body {
    padding: 2rem;
}

.server-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: relative;
}

.server-status.online {
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 10px #10b981;
    }
    50% {
        box-shadow: 0 0 20px #10b981, 0 0 30px #10b981;
    }
}

.server-players {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.server-ip-container {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.server-ip {
    color: var(--accent);
    font-weight: 600;
}

.copy-btn {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.copy-btn.copied {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.steam-btn {
    background: linear-gradient(135deg, #1b2838, #2a475e);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    border: 1px solid #2a475e;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.steam-btn:hover {
    background: linear-gradient(135deg, #2a475e, #1b2838);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(42, 71, 94, 0.5);
}

.info-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.info-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

/* ===================================
   ADMIN SECTION
   =================================== */

.admin-section-container {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(0, 217, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 3rem;
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(10px);
}

.admin-package {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
}

.admin-package:hover {
    border-color: var(--primary);
    transform: translateX(10px);
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.2);
}

.admin-package.featured {
    border: 2px solid var(--primary);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(247, 147, 30, 0.1) 100%);
}

.featured-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.price-tag {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* ===================================
   CONTACT SECTION
   =================================== */

.contact-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s ease;
}

.contact-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.3);
}

.contact-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
}

.contact-link {
    color: var(--accent);
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.contact-link:hover {
    color: var(--primary);
}

.owner-contact {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(0, 217, 255, 0.1) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.owner-contact:hover {
    border-color: var(--primary);
}

.social-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background: linear-gradient(180deg, transparent 0%, rgba(10, 14, 39, 0.5) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .admin-section-container {
        padding: 1.5rem;
    }
}

/* ===================================
   UTILITIES
   =================================== */

.hidden {
    display: none;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--primary);
    color: white;
}

::-moz-selection {
    background: var(--primary);
    color: white;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--secondary), var(--primary));
}

/* ===================================
   RULES PAGE
   =================================== */

.rules-hero {
    background: 
        linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(5, 8, 20, 0.95) 50%, rgba(0, 217, 255, 0.1) 100%),
        radial-gradient(circle at 50% 50%, rgba(255, 107, 53, 0.05) 0%, transparent 70%);
    border-bottom: 2px solid rgba(220, 38, 38, 0.3);
    position: relative;
    overflow: hidden;
}

.rules-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(255, 107, 53, 0.03) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(220, 38, 38, 0.03) 50%, transparent 70%);
    animation: rulesPattern 20s linear infinite;
    pointer-events: none;
}

@keyframes rulesPattern {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.rule-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: ruleCardFadeIn 0.6s ease-out backwards;
    overflow: hidden;
}

.rule-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--secondary));
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.rule-card:hover::before {
    opacity: 0.3;
}

.rule-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.rule-card:hover::after {
    left: 100%;
}

.rule-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(255, 107, 53, 0.4),
        0 0 40px rgba(0, 217, 255, 0.2);
}

/* Stagger animation for cards */
.rule-card:nth-child(1) { animation-delay: 0.1s; }
.rule-card:nth-child(2) { animation-delay: 0.2s; }
.rule-card:nth-child(3) { animation-delay: 0.3s; }
.rule-card:nth-child(4) { animation-delay: 0.4s; }
.rule-card:nth-child(5) { animation-delay: 0.5s; }
.rule-card:nth-child(6) { animation-delay: 0.6s; }
.rule-card:nth-child(7) { animation-delay: 0.7s; }
.rule-card:nth-child(8) { animation-delay: 0.8s; }
.rule-card:nth-child(9) { animation-delay: 0.9s; }
.rule-card:nth-child(10) { animation-delay: 1.0s; }

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

.rule-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
    text-align: center;
    animation: iconFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.5));
}

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

.rule-card:hover .rule-icon {
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
    0%, 100% {
        transform: scale(1) translateY(0);
    }
    25% {
        transform: scale(1.2) translateY(-15px);
    }
    50% {
        transform: scale(0.95) translateY(5px);
    }
    75% {
        transform: scale(1.05) translateY(-5px);
    }
}

.rule-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.rule-card:hover .rule-title {
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.rule-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    text-align: center;
    transition: color 0.3s ease;
}

.rule-card:hover .rule-desc {
    color: rgba(255, 255, 255, 0.9);
}

.rule-final-message {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.03) 0%, rgba(0, 217, 255, 0.03) 100%);
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    border-radius: 30px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    animation: ruleFinalFadeIn 1s ease 1.2s backwards;
}

.rule-final-message::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary), var(--accent), var(--secondary), var(--primary));
    background-size: 300% 300%;
    border-radius: 30px;
    z-index: -1;
    opacity: 0.2;
    animation: gradientRotate 4s linear infinite;
}

@keyframes gradientRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes ruleFinalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.rule-final-message:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 80px rgba(255, 107, 53, 0.5);
}

/* Mobile optimizations for rules */
@media (max-width: 768px) {
    .rule-card {
        padding: 1.5rem;
    }
    
    .rule-icon {
        font-size: 3rem;
    }
    
    .rule-title {
        font-size: 1.25rem;
    }
    
    .rule-desc {
        font-size: 0.9rem;
    }
    
    .rule-final-message {
        padding: 2rem;
    }
}

/* ===================================
   PARTNER BANNER
   =================================== */

.partner-banner-link {
    text-decoration: none;
    display: inline-block;
}

.partner-banner {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    background: rgba(0, 0, 0, 0.3);
    width: 468px;
    height: 60px;
}

.partner-banner::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--accent), var(--primary), var(--secondary));
    border-radius: 12px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.partner-banner:hover::before {
    opacity: 0.5;
}

.partner-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 217, 255, 0.4);
}

.partner-banner img {
    display: block;
    width: 468px;
    height: 60px;
    transition: transform 0.4s ease, filter 0.4s ease;
    border-radius: 10px;
}

.partner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.95) 0%, rgba(255, 107, 53, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 10px;
}

.partner-banner:hover .partner-overlay {
    opacity: 1;
}

.partner-banner:hover img {
    transform: scale(1.05);
    filter: blur(2px);
}

.partner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.partner-content i {
    animation: bounceIcon 1s ease infinite;
}

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