/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 0;
    background: rgba(26, 28, 32, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 246, 255, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo img {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 0 10px rgba(0, 246, 255, 0.5));
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 4px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav a:hover,
.nav a.active {
    color: var(--color-cyan);
}

/* Profile Hero */
.profile-hero {
    position: relative;
    padding: 160px 0 80px;
    text-align: center;
    overflow: hidden;
}

.profile-hero .hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 246, 255, 0.05) 0%, transparent 50%),
                linear-gradient(225deg, rgba(138, 43, 226, 0.05) 0%, transparent 50%);
}

.profile-hero .hero-content {
    position: relative;
    z-index: 1;
}

.profile-hero .hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 1rem;
}

.profile-hero .hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

.profile-hero .hero-subtitle i {
    margin-right: 0.5rem;
    color: var(--color-cyan);
}

/* Profile Header */
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(0, 246, 255, 0.5);
    box-shadow: 0 0 30px rgba(0, 246, 255, 0.3);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(0, 246, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 246, 255, 0.5);
    font-size: 4rem;
}

/* Private Profile */
.private-profile {
    padding: 2rem;
}

.private-profile i {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 2rem;
}

/* Stats Section */
.stats-section {
    padding: 60px 0;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

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

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
}

.stat-icon.victories {
    background: linear-gradient(135deg, rgba(50, 205, 50, 0.2) 0%, rgba(34, 139, 34, 0.2) 100%);
    color: #32cd32;
    border: 2px solid rgba(50, 205, 50, 0.3);
}

.stat-icon.defeats {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.2) 0%, rgba(178, 34, 34, 0.2) 100%);
    color: #ff6b6b;
    border: 2px solid rgba(220, 20, 60, 0.3);
}

.stat-icon.total {
    background: linear-gradient(135deg, rgba(0, 246, 255, 0.2) 0%, rgba(138, 43, 226, 0.2) 100%);
    color: #00f6ff;
    border: 2px solid rgba(0, 246, 255, 0.3);
}

.stat-icon.winrate {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 170, 0, 0.2) 100%);
    color: #ffd700;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Seasons Section */
.seasons-section {
    padding: 60px 0;
    background: rgba(0, 0, 0, 0.2);
}

.seasons-table-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 1rem;
    overflow-x: auto;
}

.seasons-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.seasons-table thead th {
    text-align: left;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.seasons-table tbody tr {
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.seasons-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.06);
}

.seasons-table td {
    padding: 1rem 1.5rem;
    vertical-align: middle;
}

.seasons-table td:first-child {
    border-radius: 12px 0 0 12px;
}

.seasons-table td:last-child {
    border-radius: 0 12px 12px 0;
}

.seasons-table td i {
    color: var(--color-cyan);
    margin-right: 0.5rem;
}

/* Score */
.score-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #00f6ff;
}

.score-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 0.5rem;
}

/* Title Badge */
.title-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.title-legend {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3) 0%, rgba(255, 170, 0, 0.3) 100%);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.5);
}

.title-grandmaster {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.3) 0%, rgba(148, 0, 211, 0.3) 100%);
    color: #da70d6;
    border: 1px solid rgba(138, 43, 226, 0.5);
}

.title-templar {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.3) 0%, rgba(178, 34, 34, 0.3) 100%);
    color: #ff6b6b;
    border: 1px solid rgba(220, 20, 60, 0.5);
}

.title-paladin {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.3) 0%, rgba(30, 144, 255, 0.3) 100%);
    color: #00bfff;
    border: 1px solid rgba(0, 191, 255, 0.5);
}

.title-knight {
    background: linear-gradient(135deg, rgba(50, 205, 50, 0.3) 0%, rgba(34, 139, 34, 0.3) 100%);
    color: #32cd32;
    border: 1px solid rgba(50, 205, 50, 0.5);
}

.title-soldier {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.3) 0%, rgba(255, 140, 0, 0.3) 100%);
    color: #ffa500;
    border: 1px solid rgba(255, 165, 0, 0.5);
}

.title-squire {
    background: linear-gradient(135deg, rgba(135, 206, 250, 0.3) 0%, rgba(176, 224, 230, 0.3) 100%);
    color: #87ceeb;
    border: 1px solid rgba(135, 206, 250, 0.5);
}

.title-commoner {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* CTA Section */
.cta {
    text-align: center;
    position: relative;
    padding: 80px 0;
}

.cta-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 246, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta p {
    color: var(--color-text-muted);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.5);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(0, 246, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    width: 40px;
    filter: drop-shadow(0 0 10px rgba(0, 246, 255, 0.5));
}

.footer-logo span {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 3px;
}

.footer p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .profile-avatar {
        width: 120px;
        height: 120px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem 1rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .seasons-table thead {
        display: none;
    }

    .seasons-table tbody tr {
        display: flex;
        flex-wrap: wrap;
        padding: 1rem;
        margin-bottom: 0.5rem;
        border-radius: 12px;
    }

    .seasons-table td {
        padding: 0.5rem;
    }
}
