/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a0a, #1a0000, #000000);
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

/* Navbar */
.navbar {
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    padding: 15px 0;
}

.navbar-brand img {
    height: 50px;
    width: auto;
}

.nav-link {
    color: #fff !important;
    font-weight: 500;
    padding: 8px 20px !important;
    border-radius: 25px;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-discord {
    background: #5865F2 !important;
    color: #fff !important;
    border: none;
}

.btn-discord:hover {
    background: #4752C4 !important;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

.btn-shop {
    background: #FFD700 !important;
    color: #000 !important;
    border: none;
    font-weight: 600;
}

.btn-shop:hover {
    background: #FFC700 !important;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px 50px;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(220, 38, 38, 0.15), transparent 70%);
    pointer-events: none;
}

.hero-logo {
    max-width: 300px;
    width: 100%;
    height: auto;
    margin-bottom: 30px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 50px;
    color: #b8b8b8;
}

/* Connect Button */
.btn-connect {
    padding: 20px 50px;
    font-size: 1.25rem;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(45deg, #dc2626, #991b1b);
    border: none;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.4);
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.btn-connect::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-connect:hover::before {
    width: 400px;
    height: 400px;
}

.btn-connect:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(220, 38, 38, 0.6);
    color: #fff;
    text-decoration: none;
}

.btn-connect span {
    position: relative;
    z-index: 1;
}

/* Feature Cards */
.feature-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(220, 38, 38, 0.2);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(220, 38, 38, 0.1);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
    border-color: rgba(220, 38, 38, 0.5);
}

.feature-card h3 {
    font-size: 1.375rem;
    margin-bottom: 15px;
    color: #dc2626;
}

.feature-card p {
    color: #b8b8b8;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-logo {
        max-width: 90%;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .btn-connect {
        padding: 15px 40px;
        font-size: 1.125rem;
    }
}

/* Audio Toggle Button */
.audio-toggle-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(139, 32, 32, 0.6);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(220, 38, 38, 0.6);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4);
    z-index: 1000;
}

.audio-toggle-btn:hover {
    background: rgba(139, 32, 32, 0.8);
    border-color: rgba(220, 38, 38, 0.8);
    transform: scale(1.1);
    box-shadow: 0 12px 28px rgba(220, 38, 38, 0.6);
}

.audio-toggle-btn svg {
    width: 28px;
    height: 28px;
}

.audio-toggle-btn:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .audio-toggle-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .audio-toggle-btn svg {
        width: 24px;
        height: 24px;
    }
}

/* Player Counter in Navbar */
.player-counter-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    background: rgba(139, 32, 32, 0.4);
    backdrop-filter: blur(10px);
    padding: 10px 25px;
    border-radius: 15px;
    border: 2px solid rgba(220, 38, 38, 0.6);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4);
    transition: all 0.3s ease;
}

.player-counter-nav-mobile {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    background: rgba(139, 32, 32, 0.4);
    backdrop-filter: blur(10px);
    padding: 10px 25px;
    border-radius: 15px;
    border: 2px solid rgba(220, 38, 38, 0.6);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4);
    transition: all 0.3s ease;
    width: fit-content;
    margin: 0 auto;
}

.player-counter-nav:hover,
.player-counter-nav-mobile:hover {
    background: rgba(139, 32, 32, 0.5);
    border-color: rgba(220, 38, 38, 0.8);
    box-shadow: 0 12px 28px rgba(220, 38, 38, 0.5);
}

.counter-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.counter-icon {
    font-size: 1.25rem;
}

.counter-number {
    font-size: 1.25rem;
    font-weight: bold;
    color: #fff;
}

.counter-label {
    font-size: 0.75rem;
    color: #d1d5db;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.status-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 10px;
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.4);
    white-space: nowrap;
}

.status-badge.offline {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
}

/* Animazione aggiornamento contatore */
@keyframes counterPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

.counter-update {
    animation: counterPulse 0.5s ease;
}

/* Mobile alignment */
.player-counter-nav-mobile {
    margin: 0 auto;
}

/* Responsive Navbar */
@media (max-width: 991px) {
    .player-counter-nav-mobile {
        width: fit-content;
    }
}

@media (min-width: 992px) {
    .d-flex.w-100 {
        position: relative;
    }
    
    .player-counter-nav {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}