:root {
    --primary: #0a192f;
    --secondary: #172a45;
    --accent: #64e0ff;
    --accent-light: #88ffdf;
    --text-primary: #ffffff;
    --text-secondary: #ccd6f6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--primary);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background-color: rgba(10, 25, 47, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 15px 5%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.logo-header {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, white, white);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

nav ul li a:hover {
    color: var(--accent);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Sekcja Hero - Nowa wersja z logo po prawej */
.hero {
    height: 90vh;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    background-image: url("../images/main.png");
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
    padding-right: 40px;
    flex: 1;
}

.logo-text {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    --background: linear-gradient(90deg, var(--accent), var(--text-primary));
    background: linear-gradient(90deg, white, white);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: left;
}

.slogan {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--text-secondary);
    text-align: left;
}

.server-ip {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 40px;
    display: inline-block;
    position: relative;
    overflow: hidden;
    text-align: left;
}

.server-ip:hover {
    background-color: rgba(255, 255, 255, 1);
    color: var(--primary);
    transform: scale(1.05);
}

.server-ip i {
    margin-right: 10px;
}

.copy-confirmation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--accent);
    color: var(--primary);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    border-radius: 50px;
}

.copy-confirmation.show {
    opacity: 1;
}

.copy-confirmation i {
    margin-right: 10px;
}

.stats-container {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 50px;
}

.stat-box {
    background-color: rgba(23, 42, 69, 0.7);
    border-radius: 10px;
    padding: 20px 30px;
    min-width: 200px;
    text-align: center;
    transition: all 0.3s ease;
    border-bottom: 3px solid var(--accent);
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(100, 255, 218, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Animowane logo po prawej stronie */
.hero-logo {
    width: 500px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
    margin-left: 300px; /* Dodatkowy margines od tekstu */
}

.logo-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: pulse 4s ease-in-out infinite;
}

.logo-circle:nth-child(1) {
    width: 400px;
    height: 400px;
    animation-delay: 0s;
}

.logo-circle:nth-child(2) {
    width: 300px;
    height: 300px;
    animation-delay: 0.5s;
}

.logo-circle:nth-child(3) {
    width: 200px;
    height: 200px;
    animation-delay: 1s;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.1; transform: scale(1.1); }
    100% { opacity: 0.3; transform: scale(1); }
}

@keyframes rotate {
    0% { transform: rotate(45deg); }
    100% { transform: rotate(405deg); }
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--accent);
}

/* Przycisk przewijania */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1;
}

/* Stopka */
footer {
    background-color: var(--secondary);
    padding: 50px 20px 30px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.copyright {
    color: var(--text-secondary);
    opacity: 0.7;
    font-size: 0.9rem;
}


/* Sekcja Regulaminu */
.rules-section {
    padding: 100px 20px;
    background-color: var(--primary);
    min-height: 100vh;
}

.rules-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--secondary);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.rules-content {
    margin-top: 30px;
}

.last-update {
    text-align: right;
    color: var(--accent);
    margin-bottom: 30px;
    font-style: italic;
}

.rule-category {
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(100, 255, 218, 0.2);
    padding-bottom: 30px;
}

.rule-category:last-child {
    border-bottom: none;
}

.category-title {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-title i {
    font-size: 1.5rem;
}

.rules-list {
    padding-left: 20px;
    color: var(--text-secondary);
}

.rules-list li {
    margin-bottom: 15px;
    line-height: 1.6;
}

.rules-list li::marker {
    color: var(--accent);
}

.rules-acceptance {
    margin-top: 50px;
    padding: 20px;
    background-color: rgba(100, 255, 218, 0.1);
    border-left: 3px solid var(--accent);
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
}

/* Aktywny link w nav */
nav ul li a.active {
    color: var(--accent);
}

nav ul li a.active::after {
    width: 100%;
}


/* Mobile Menu - Nowa wersja */
/* Header - Mobile Version */
@media (max-width: 768px) {
    header {
        padding: 12px 5%;
    }
    
    header.scrolled {
        padding: 10px 5%;
    }
    
    .logo-header {
        font-size: 1.4rem;
    }
    
    .mobile-menu-btn {
        font-size: 1.3rem;
        padding: 5px;
    }
    
    nav ul {
        right: -280px;
        width: 280px;
        padding-top: 70px;
    }
    
    nav ul li a {
        padding: 8px 0;
        font-size: 1rem;
    }
    
    /* Lepszy wygląd przycisku menu */
    .mobile-menu-btn {
        background: rgba(100, 255, 218, 0.1);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(100, 255, 218, 0.3);
        transition: all 0.3s ease;
    }
    
    .mobile-menu-btn.open {
        transform: rotate(90deg);
        background: rgba(100, 255, 218, 0.2);
        border-color: var(--accent);
    }
    
    /* Lepszy overlay */
    .nav-overlay {
        background-color: rgba(10, 25, 47, 0.8);
        backdrop-filter: blur(5px);
    }
    
    /* Subtelne animacje */
    @keyframes slideIn {
        from { right: -280px; }
        to { right: 0; }
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    nav ul.show {
        animation: slideIn 0.3s ease forwards;
    }
    
    .nav-overlay.active {
        animation: fadeIn 0.3s ease forwards;
    }
}




/* Animowane tło */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(10, 25, 47, 0.8) 0%, 
        rgba(23, 42, 69, 0.8) 50%, 
        rgba(100, 255, 218, 0.1) 100%);
    opacity: 1;
    z-index: 0;
    animation: gradientShift 15s ease infinite;
    background-size: 200% 200%;
    backdrop-filter: blur(3px);
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Floating elements animation */
.floating-element {
    position: absolute;
    background-color: var(--accent);
    opacity: 0.1;
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    50% {
        transform: translateY(-50px) translateX(50px) rotate(180deg);
    }
    100% {
        transform: translateY(0) translateX(0) rotate(360deg);
    }
}




.server-ip {
    position: relative;
    overflow: hidden;
}

.copy-confirmation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--accent);
    color: var(--primary);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    border-radius: 50px;
}

.copy-confirmation.show {
    opacity: 1;
}

.copy-confirmation i {
    margin-right: 10px;
}







/* Sekcja Top Graczy */
.top-players {
    padding: 100px 20px;
    background-color: var(--secondary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.section-subtitle {
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1.2rem;
}

.mode-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.mode-btn {
    padding: 10px 25px;
    border-radius: 50px;
    background-color: rgba(10, 25, 47, 0.5);
    color: var(--text-secondary);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.mode-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.mode-btn:hover {
    color: var(--accent);
}

.mode-btn.active {
    color: var(--accent);
    background-color: rgba(100, 255, 218, 0.1);
}

.mode-btn.active::after {
    width: 70%;
}

.players-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.mode-players {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    animation: fadeIn 0.5s ease;
}

.mode-players.active {
    display: grid;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.player-card {
    position: relative;
    background-color: var(--primary);
    border-radius: 10px;
    padding: 25px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.player-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.1) 0%, rgba(100, 255, 218, 0) 100%);
    z-index: -1;
}

.player-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(100, 255, 218, 0.2);
}

.player-glowing-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(45deg, 
        var(--accent) 0%, 
        rgba(100, 224, 255, 0.5) 30%, 
        rgba(100, 255, 218, 0) 50%, 
        rgba(100, 224, 255, 0.5) 70%, 
        var(--accent) 100%);
    background-size: 200% 200%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.player-card:hover .player-glowing-border {
    opacity: 0.7;
}

.player-rank {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-right: 20px;
    min-width: 40px;
    text-align: center;
}

.player-skin {
    position: relative;
    margin-right: 20px;
}

.skin-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    transition: all 0.3s ease;
}

.player-card:hover .skin-img {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.5);
}

.crown {
    position: absolute;
    top: -20px;
    left: 30%;
    transform: translateX(-50%);
    color: gold;
    font-size: 1.8rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
    100% { transform: translateX(-50%) translateY(0); }
}

.player-info {
    text-align: left;
    flex-grow: 1;
}

.player-stats {
    display: flex;
    gap: 15px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.stat i {
    color: var(--accent);
}

/* Animacje pojawiania się kart */
.player-card:nth-child(1) {
    animation-delay: 0.1s;
}

.player-card:nth-child(2) {
    animation-delay: 0.3s;
}

.player-card:nth-child(3) {
    animation-delay: 0.5s;
}

/* Responsywność */
@media (max-width: 768px) {
    .mode-players.active {
        grid-template-columns: 1fr;
    }
    
    .player-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .player-rank {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .player-skin {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .player-info {
        text-align: center;
    }
    
    .player-stats {
        justify-content: center;
    }
}

/* Dodaj te style do istniejącego CSS */

.player-elo-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--primary);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

.player-name {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%; 
    display: block;
}

.ranking-wrapper {
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    gap: 6px;
}

.player-tier,
.player-elo {
    background: var(--accent);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: bold;
}


/* Dla bardzo długich nicków na mobile */
@media (max-width: 480px) {
    .player-name {
        max-width: 120px;
        font-size: 1.1rem;
    }
}

/* Efekt dla rankingu */
.player-ranking {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}







.game-modes {
    padding: 100px 20px;
    background-color: var(--primary);
    text-align: center;
    position: relative;
    overflow: hidden;
}


.modes-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1800px;
    margin: 40px auto 0;
}

.mode-card {
    display: flex;
    position: relative;
    width: 100%;
    max-width: 550px;
    height: 350px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
    cursor: pointer;
}


.mode-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
    z-index: 1;
    filter: blur(5px); /* Dodaj tę linię - możesz zwiększyć wartość dla większego blura */
}

.mode-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.8) 0%, rgba(23, 42, 69, 0.6) 100%);
    z-index: 2;
}

.mode-content {
    position: relative;
    z-index: 3;
    height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.mode-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.mode-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.mode-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.mode-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.feature {
    background-color: rgba(100, 255, 218, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--accent-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.feature i {
    color: var(--accent);
}

.mode-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(100, 255, 218, 0.1) 0%, 
        rgba(100, 255, 218, 0) 50%, 
        rgba(100, 255, 218, 0.1) 100%);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Animacje i efekty hover */
.mode-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(100, 255, 218, 0.2);
}

.mode-card:hover .mode-bg {
    transform: scale(1.05);
}

.mode-card:hover .mode-icon {
    transform: scale(1.2);
    color: var(--accent-light);
}

.mode-card:hover .mode-glow {
    opacity: 1;
    animation: glowMove 3s linear infinite;
}

@keyframes glowMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Responsywność */
@media (max-width: 768px) {
    .mode-card {
        height: 400px;
    }
    
    .mode-content {
        padding: 20px;
    }
    
    .mode-title {
        font-size: 1.5rem;
    }
    
    .mode-description {
        font-size: 0.95rem;
    }
    
    .feature {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}











/* Sekcja wyszukiwania graczy */
.player-search-container {
    max-width: 1000px;
    margin: 50px auto 0;
    padding: 0 20px;
}

.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
}

.search-box input {
    flex-grow: 1;
    padding: 15px 20px;
    border-radius: 50px 0 0 50px;
    border: none;
    background-color: var(--secondary);
    color: var(--text-primary);
    font-size: 1rem;
    border: 1px solid rgba(100, 255, 218, 0.3);
    border-right: none;
}

.search-box button {
    padding: 0 25px;
    border-radius: 0 50px 50px 0;
    border: none;
    background-color: var(--accent);
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--accent);
}

.search-box button:hover {
    background-color: var(--accent-light);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--secondary);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    z-index: 10;
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

.search-result-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}

.search-result-item:hover {
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--accent);
}

.search-error {
    padding: 15px;
    color: #ff6b6b;
    text-align: center;
}

/* Profil gracza */
.player-profile {
    background-color: var(--secondary);
    border-radius: 15px;
    margin-top: 30px;
    padding: 30px;
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.profile-skin {
    position: relative;
}

.profile-skin img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.3);
}

.profile-rank-badge {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, gold, #ffd700);
    color: #8a6d00;
    padding: 3px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.profile-info {
    flex-grow: 1;
}

.profile-info h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.profile-status {
    display: flex;
    gap: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.profile-status .online {
    color: #4caf50;
    font-weight: bold;
}

.profile-status .offline {
    color: #f44336;
    font-weight: bold;
}

/* Zakładki profilu */
.profile-tabs {
    display: flex;
    border-bottom: 1px solid rgba(100, 255, 218, 0.2);
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.tab-btn:hover {
    color: var(--accent);
}

.tab-btn.active {
    color: var(--accent);
    font-weight: bold;
}

.tab-btn.active::after {
    width: 100%;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Statystyki */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    background-color: rgba(10, 25, 47, 0.5);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    border-bottom: 3px solid var(--accent);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Ostatnia aktywność */
.recent-activity {
    margin-top: 30px;
}

.recent-activity h4 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.1rem;
    position: relative;
    padding-left: 15px;
}

.recent-activity h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 15px;
    background-color: var(--accent);
}

.activity-list {
    background-color: rgba(10, 25, 47, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.empty-activity {
    text-align: center;
    color: var(--text-secondary);
    padding: 10px;
    font-style: italic;
    width: 100%;
}

.activity-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.activity-item:hover .activity-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.activity-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid;
    transition: all 0.3s ease;
}

.activity-avatar.kill {
    border-color: #4caf50;
}

.activity-avatar.death {
    border-color: #f44336;
}

.activity-tooltip {
    position: absolute;
    bottom: 100%;
    left: -150%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--primary);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    pointer-events: none;
}

.activity-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: var(--primary) transparent transparent transparent;
}

/* Responsywność */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-status {
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profile-tabs {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-info h3 {
        font-size: 1.5rem;
    }
    
    .profile-status {
        flex-direction: column;
        gap: 5px;
    }
}

.loading {
    padding: 30px;
    text-align: center;
    color: var(--accent);
    font-size: 1.2rem;
}

.error-message {
    padding: 15px;
    background-color: #ffebee;
    color: #c62828;
    border-radius: 5px;
    margin: 20px 0;
    text-align: center;
    border-left: 4px solid #c62828;
}




/* HEADER LICZNIK */
/* Logo container */
.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Online counter */
.online-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    background-color: rgba(23, 42, 69, 0.7);
    padding: 5px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.online-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #4caf50;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* Responsywność */
@media (max-width: 768px) {
    .online-counter {
        display: none; /* Ukrywamy na mobile, żeby nie zajmować miejsca */
    }
}








.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s ease, visibility 1s ease;
}

.loading-logo {
    position: relative;
    width: 200px;
    height: 200px;
    margin-bottom: 30px;
}

.logo-spin {
    width: 200px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: 
        pulseOpacity 2s infinite ease-in-out,
        pulseSize 3s infinite ease-in-out;
}

@keyframes pulseOpacity {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

@keyframes pulseSize {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

/* Klasa do ukrywania ekranu ładowania */
.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}