
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

.player-stat-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.9) 0%, rgba(30, 30, 30, 0.9) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(60, 60, 60, 0.4);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 
        0 6px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
    box-sizing: border-box;
    margin: 0;
    font-family: 'Inter', sans-serif; 
}

body {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 25%, #0f0f0f 50%, #1e1e1e 100%);
    color: #ffffff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif; 
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 0, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(220, 20, 60, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 69, 0, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.header {
    background: linear-gradient(90deg, rgba(10, 10, 10, 0.95) 0%, rgba(30, 30, 30, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(60, 60, 60, 0.5);
    box-shadow: 
        0 4px 32px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    width: 100px;
    max-height: 80px;
    transform: scale(1.3);
    filter: drop-shadow(0 0 15px rgba(255, 0, 0, 0.3));
    transition: filter 0.3s ease;
}

.logo:hover {
    filter: drop-shadow(0 0 25px rgba(255, 0, 0, 0.5));
}

.hamburger {
    background: linear-gradient(135deg, rgba(60, 60, 60, 0.8) 0%, rgba(40, 40, 40, 0.8) 100%);
    border: 1px solid rgba(60, 60, 60, 0.6);
    border-radius: 8px;
    color: #ff4444;
    font-size: 24px;
    cursor: pointer;
    display: none;
    padding: 8px 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hamburger:hover {
    background: linear-gradient(135deg, rgba(80, 80, 80, 0.9) 0%, rgba(60, 60, 60, 0.9) 100%);
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.3);
    transform: translateY(-2px);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-link, .btn-login {
    color: #ff4444;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link::before, .btn-login::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 6px;
    padding: 1px;
    background: linear-gradient(45deg, rgba(255, 68, 68, 0.3), rgba(220, 20, 60, 0.3));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover, .btn-login:hover {
    color: #ff6666;
    background: rgba(255, 68, 68, 0.1);
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.2);
    transform: translateY(-2px);
}

.nav-link:hover::before, .btn-login:hover::before {
    opacity: 1;
}

.nav-greeting {
    color: #cccccc;
    font-size: 13px;
    font-weight: 400;
}

.user-menu {
    position: relative;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255, 68, 68, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.2);
}

.user-avatar:hover {
    border-color: rgba(255, 68, 68, 0.6);
    box-shadow: 0 0 25px rgba(255, 68, 68, 0.4);
    transform: scale(1.05);
}

.menu-dialog, .profile-dialog {
    display: none;
    position: absolute;
    top: 45px;
    right: 0;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.95) 0%, rgba(10, 10, 10, 0.95) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(60, 60, 60, 0.5);
    border-radius: 12px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    padding: 12px;
    min-width: 220px;
    z-index: 1001;
}

.menu-dialog.active, .profile-dialog.active {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-item, .profile-admin-btn, .profile-logout-btn {
    color: #ffffff;
    padding: 10px 14px;
    text-decoration: none;
    display: block;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 400;
}

.menu-item:hover, .profile-admin-btn:hover, .profile-logout-btn:hover {
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.15) 0%, rgba(220, 20, 60, 0.15) 100%);
    color: #ff4444;
    transform: translateX(5px);
}

.menu-item.disabled {
    color: #666666;
    cursor: not-allowed;
}

.profile-dialog {
    padding: 20px;
}

.profile-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 2px solid rgba(255, 68, 68, 0.3);
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.2);
}

.profile-info {
    margin-bottom: 20px;
}

.profile-name {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.profile-id {
    color: #cccccc;
    font-size: 12px;
    font-weight: 400;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-input {
    padding: 10px 12px;
    border: 1px solid rgba(60, 60, 60, 0.5);
    border-radius: 8px;
    background: rgba(10, 10, 10, 0.8);
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.profile-input:focus {
    outline: none;
    border-color: rgba(255, 68, 68, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.1);
    background: rgba(10, 10, 10, 0.9);
}

.profile-save-btn {
    background: linear-gradient(135deg, #ff4444 0%, #dc143c 100%);
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-save-btn:hover {
    background: linear-gradient(135deg, #ff6666 0%, #ff4444 100%);
    box-shadow: 0 4px 16px rgba(255, 68, 68, 0.3);
    transform: translateY(-2px);
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
}

.admin-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    color: #ffffff;
    text-shadow: 0 0 30px rgba(255, 68, 68, 0.5);
    margin-bottom: 40px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.admin-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #ff4444 0%, #dc143c 100%);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
}

.admin-section {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.8) 0%, rgba(10, 10, 10, 0.8) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(60, 60, 60, 0.3);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.admin-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 68, 68, 0.02) 0%, rgba(220, 20, 60, 0.02) 100%);
    pointer-events: none;
}

.admin-section:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 12px 48px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(255, 68, 68, 0.1);
    border-color: rgba(255, 68, 68, 0.4);
}

.section-title {
    font-size: 1.9em;
    font-weight: 600;
    color: #ff4444;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    text-shadow: 0 0 20px rgba(255, 68, 68, 0.3);
}

.section-title::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #ff4444 0%, #dc143c 100%);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

.players-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.player-stat-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.9) 0%, rgba(30, 30, 30, 0.9) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(60, 60, 60, 0.4);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 
        0 6px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.player-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #ff4444 0%, #dc143c 50%, #b22222 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.player-stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 12px 48px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(255, 68, 68, 0.15);
    border-color: rgba(255, 68, 68, 0.5);
}

.player-stat-card:hover::before {
    transform: scaleX(1);
}

.player-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(48, 54, 61, 0.3);
}

.player-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    border: 2px solid rgba(255, 68, 68, 0.3); 
    object-fit: cover;
    object-position: center;
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.2); 
    transition: all 0.3s ease;
}

.player-stat-card:hover .player-info img {
    border-color: rgba(255, 68, 68, 0.6); 
    box-shadow: 0 0 30px rgba(255, 68, 68, 0.4); 
    transform: scale(1.05);
}

.player-info span {
    color: #e6edf3;
    font-size: 1.2em;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(230, 237, 243, 0.3);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, rgba(13, 17, 23, 0.9) 0%, rgba(22, 27, 34, 0.7) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(48, 54, 61, 0.2);
    padding: 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(200, 200, 200, 0.1)); 
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.1) 0%, rgba(220, 20, 60, 0.05) 100%); 
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-label {
    font-size: 0.85em;
    color: #7d8590;
    margin-bottom: 6px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.1em;
    font-weight: 700;
    color: #ffffff; 
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.stat-item:hover .stat-value {
    color: #ffffff; 
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.no-stats-message {
    color: #7d8590;
    text-align: center;
    font-size: 1.1em;
    margin: 30px 0;
    padding: 20px;
    background: rgba(22, 27, 34, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(48, 54, 61, 0.3);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: linear-gradient(135deg, #862323 0%, #6c1919 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 
        0 4px 16px rgba(134, 46, 35, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(160, 46, 46, 0.3);
    margin-bottom: 20px;
}

.back-btn::before {
    content: '←';
    margin-right: 8px;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.back-btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #a02e2e 0%, #862323 100%);
    box-shadow: 
        0 8px 24px rgba(160, 46, 46, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(160, 46, 46, 0.5);
}

.back-btn:hover::before {
    transform: translateX(-3px);
}

@media (max-width: 768px) {
    body {
        padding: 0 !important;
    }

    .header {
        padding: 12px 15px;
    }

    .header-container {
        flex-wrap: wrap;
        justify-content: center;
        position: relative;
    }

    .logo {
        margin: 0 auto;
        display: block;
        transform: scale(1.1);
    }

    .hamburger {
        display: block;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: linear-gradient(135deg, rgba(22, 27, 34, 0.98) 0%, rgba(13, 17, 23, 0.98) 100%);
        backdrop-filter: blur(20px);
        border-top: 1px solid rgba(48, 54, 61, 0.5);
        padding: 20px 15px;
        position: absolute;
        top: 100%;
        left: 0;
        gap: 15px;
    }

    .nav-menu.active {
        display: flex;
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .admin-container {
        padding: 25px 15px;
    }

    .admin-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .admin-section {
        padding: 20px;
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 1.5em;
        margin-bottom: 20px;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    
    .players-stats-grid {
        
        grid-template-columns: repeat(1, 2fr);
        
        gap: 15px;
    }

    .player-stat-card {
        padding: 16px;
    }

    .player-info img {
        width: 40px;
        height: 40px;
    }

    .player-info span {
        font-size: 1em;
    }

    .stat-item {
        padding: 10px;
    }

    .stat-label {
        font-size: 0.75em;
    }

    .stat-value {
        font-size: 0.95em;
    }

    .menu-dialog, .profile-dialog {
        position: fixed;
        top: 70px;
        right: 15px;
        left: 15px;
        width: auto;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .admin-title {
        font-size: 1.6em;
        letter-spacing: 1px;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .back-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
}
