/* General styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    background-color: #0a0a0a;
    color: #e0e0e0;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%);
    z-index: -2;
}

/* Animated stars background */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

/* Header styles */
header {
    background-color: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0;
    border-bottom: 1px solid rgba(79, 157, 224, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

nav ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    height: 60px;
}

nav ul li {
    margin: 0;
    position: relative;
}

nav ul li a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    padding: 20px 15px;
    display: inline-block;
    position: relative;
    transition: all 0.3s ease;
    font-size: 15px;
    letter-spacing: 0.5px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 10px;
    left: 50%;
    background-color: #4f9de0;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(79, 157, 224, 0.7);
}

nav ul li a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

nav ul li a:hover::after {
    width: 70%;
}

nav ul li a.active::after {
    width: 70%;
}

.admin-link {
    background-color: rgba(79, 157, 224, 0.2);
    border-radius: 4px;
    padding: 10px 15px !important;
    margin-left: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(79, 157, 224, 0.3);
}

.admin-link:hover {
    background-color: rgba(79, 157, 224, 0.4);
    border-color: rgba(79, 157, 224, 0.6);
    box-shadow: 0 0 15px rgba(79, 157, 224, 0.3);
}

.admin-link::after {
    display: none;
}

.hosting-balance {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    background-color: rgba(20, 20, 20, 0.8);
    border-radius: 20px;
    margin-left: auto;
    font-size: 14px;
    color: #b0b0b0;
    border: 1px solid rgba(79, 157, 224, 0.2);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.balance-value {
    color: #4fe075;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(79, 224, 117, 0.5);
}

.days-value {
    color: #f0a742;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(240, 167, 66, 0.5);
}

/* Main content */
main {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #fff;
    font-weight: 600;
    text-shadow: 0 0 15px rgba(79, 157, 224, 0.5);
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    padding-bottom: 15px;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    width: 70%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(79, 157, 224, 0.7), transparent);
    border-radius: 3px;
}

/* Cards styles */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.card {
    background-color: rgba(20, 20, 20, 0.8);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    border: 1px solid rgba(50, 50, 50, 0.8);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(79, 157, 224, 0.2);
    border-color: rgba(79, 157, 224, 0.3);
}

.card-image {
    height: 150px;
    background-color: #181818;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 60%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.card-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.crown {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    text-shadow: 0 0 5px #000;
    z-index: 3;
}

.card-info {
    padding: 1rem;
    background: linear-gradient(to bottom, rgba(30, 30, 30, 0.9), rgba(20, 20, 20, 0.9));
}

.card-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #fff;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.card-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #b0b0b0;
}

/* Footer styles */
footer {
    background-color: rgba(10, 10, 10, 0.9);
    padding: 1rem 0;
    text-align: center;
    border-top: 1px solid rgba(79, 157, 224, 0.2);
    font-size: 0.8rem;
    color: #888;
    position: relative;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
}

footer p {
    margin: 0.2rem 0;
}

/* Token management section */
.token-management {
    background-color: rgba(20, 20, 20, 0.8);
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(50, 50, 50, 0.8);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.token-management h2 {
    margin: 0;
    color: #e0e0e0;
}

.create-token-btn {
    background-color: rgba(79, 157, 224, 0.2);
    color: #fff;
    border: 1px solid rgba(79, 157, 224, 0.3);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.create-token-btn:hover {
    background-color: rgba(79, 157, 224, 0.4);
    box-shadow: 0 0 15px rgba(79, 157, 224, 0.3);
    border-color: rgba(79, 157, 224, 0.6);
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    overflow: auto;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background-color: #121212;
    margin: 5% auto;
    padding: 0;
    width: 400px;
    max-width: 90%;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.6);
    animation: modalopen 0.4s;
    border: 1px solid rgba(79, 157, 224, 0.2);
}

@keyframes modalopen {
    from {opacity: 0; transform: translateY(-50px);}
    to {opacity: 1; transform: translateY(0);}
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Animation for hovering card skill stats */
.card-info p:hover {
    color: #fff;
    transform: translateX(3px);
    transition: all 0.3s ease;
}

/* Kill/Death ratio highlight */
.card-info p:last-child {
    font-weight: 500;
    color: #4f9de0;
    text-shadow: 0 0 5px rgba(79, 157, 224, 0.3);
}

/* Animation keyframes for background elements */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

/* Team score indicator */
.player-score {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(10, 10, 10, 0.8);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 5;
    border: 1px solid rgba(79, 157, 224, 0.4);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

/* Star animation classes */
.star {
    position: absolute;
    background-color: #fff;
    border-radius: 50%;
    opacity: 0.4;
    animation: twinkle linear infinite;
}

.star-small {
    width: 1px;
    height: 1px;
}

.star-medium {
    width: 2px;
    height: 2px;
}

.star-large {
    width: 3px;
    height: 3px;
}

@keyframes twinkle {
    0% { opacity: 0.2; }
    50% { opacity: 0.8; }
    100% { opacity: 0.2; }
}

/* Achievement section styles */
.achievements-section {
    margin-top: 20px;
}

.achievements-section h3 {
    color: #e0e0e0;
    border-bottom: 1px solid rgba(79, 157, 224, 0.3);
    padding-bottom: 8px;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(79, 157, 224, 0.3);
}

.achievements-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.achievement-item {
    display: flex;
    align-items: center;
    background-color: rgba(30, 30, 30, 0.8);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(79, 157, 224, 0.1);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.achievement-item:hover {
    transform: translateX(5px);
    border-color: rgba(79, 157, 224, 0.4);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3), 0 0 10px rgba(79, 157, 224, 0.2);
}

.achievement-icon {
    font-size: 24px;
    margin-right: 15px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.achievement-details {
    flex: 1;
}

.achievement-name {
    font-weight: 500;
    color: #e0e0e0;
    margin-bottom: 3px;
}

.achievement-description {
    font-size: 0.8rem;
    color: #b0b0b0;
}

/* Player stats styling */
.player-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.stat-item {
    background-color: rgba(30, 30, 30, 0.8);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(79, 157, 224, 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background-color: rgba(40, 40, 40, 0.8);
    border-color: rgba(79, 157, 224, 0.3);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3), 0 0 8px rgba(79, 157, 224, 0.2);
}

.stat-label {
    font-size: 0.8rem;
    color: #b0b0b0;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #e0e0e0;
    text-shadow: 0 0 8px rgba(79, 157, 224, 0.3);
}

/* Equipment section styling */
.equipment-section {
    margin-bottom: 15px;
}

.equipment-section h3 {
    margin-top: 0;
    color: #e0e0e0;
    border-bottom: 1px solid rgba(79, 157, 224, 0.3);
    padding-bottom: 8px;
    font-size: 0.9rem;
    text-shadow: 0 0 10px rgba(79, 157, 224, 0.3);
}

.equipment-image {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background-color: rgba(30, 30, 30, 0.8);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 8px;
    min-height: 100px;
    overflow: hidden;
    border: 1px solid rgba(50, 50, 50, 0.8);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.equipment-image:hover {
    background-color: rgba(40, 40, 40, 0.8);
    border-color: rgba(79, 157, 224, 0.3);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3), 0 0 10px rgba(79, 157, 224, 0.2);
}

.equipment-image img {
    width: 30%;
    max-height: 100px;
    object-fit: contain;
    flex-shrink: 0;
    margin-right: 15px;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.5));
}

.equipment-image:hover img {
    transform: scale(1.05);
}

.equipment-name {
    flex: 1;
    color: #e0e0e0;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.equipment-name span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 40px);
}

.equipment-level {
    margin-left: 8px;
    background-color: rgba(79, 157, 224, 0.2);
    color: #4f9de0;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid rgba(79, 157, 224, 0.4);
} 