/* Player Profile Page Styles */

/* Global Styles */
.player-profile {
    min-height: 100vh;
    background: #0f0f0f;
    padding-bottom: 50px;
}

/* Hero Section */
.player-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    padding: 60px 0 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.player-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 120%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: floatPattern 20s linear infinite;
}

.player-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(10,14,39,0.5), transparent);
}

@keyframes floatPattern {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-20px, -20px) rotate(10deg); }
}

.player-info-container {
    position: relative;
    z-index: 2;
}

/* Player Avatar */
.player-avatar-wrapper {
    position: relative;
    display: inline-block;
    margin: 0 auto;
}

.player-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 5px solid rgba(255,255,255,0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.player-avatar-letter {
    font-size: 60px;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
}

.player-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.online-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 3px solid #1f2937;
    background: #10b981;
    animation: pulse 2s infinite;
}

.online-indicator.offline {
    background: #6b7280;
    animation: none;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Player Name and Info */
.player-name-section {
    margin-top: 20px;
}

.player-name {
    font-size: 2.5rem;
    color: white;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.player-status-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

.player-status-badge.online {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
}

.player-steam-id {
    margin-top: 10px;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #1a1a1a;
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    opacity: 0.5;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.stat-icon.playtime { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.stat-icon.sessions { background: linear-gradient(135deg, #10b981, #059669); }
.stat-icon.servers { background: linear-gradient(135deg, #f59e0b, #d97706); }
.stat-icon.score { background: linear-gradient(135deg, #ef4444, #dc2626); }

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.stat-label {
    color: #9ca3af;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Member Info */
.member-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
    background: rgba(0,0,0,0.6);
    border-radius: 15px;
    margin-top: 20px;
}

.member-info-item {
    text-align: center;
}

.member-info-label {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.member-info-value {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.member-info-value small {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    font-weight: normal;
}

/* Content Sections */
.content-section {
    background: #1a1a1a;
    border-radius: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.section-header {
    background: #252525;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.section-title {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-badge {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.section-body {
    padding: 20px;
}

/* Servers Table */
.servers-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.servers-table thead th {
    color: #9ca3af;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.servers-table tbody tr {
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.servers-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.servers-table td {
    padding: 15px 10px;
    color: #e5e7eb;
    vertical-align: middle;
}

.server-name {
    font-weight: 600;
    color: white;
    display: block;
    margin-bottom: 5px;
}

.server-ip {
    color: #9ca3af;
    font-size: 0.85rem;
}

.game-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #a5b4fc;
    font-size: 0.85rem;
    font-weight: 600;
}

.sessions-badge {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    padding: 5px 10px;
    border-radius: 8px;
    font-weight: 600;
}

.time-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 5px 10px;
    border-radius: 8px;
    font-weight: 600;
}

.view-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.view-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Sessions Table */
.sessions-table {
    width: 100%;
    font-size: 0.9rem;
}

.sessions-table thead th {
    color: #9ca3af;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    padding: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.sessions-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

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

.sessions-table td {
    padding: 12px 10px;
    color: #e5e7eb;
}

.session-date {
    color: #9ca3af;
    font-size: 0.85rem;
}

.session-time {
    color: white;
    font-weight: 600;
}

.session-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.session-status.active {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.session-status.completed {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 20px;
}

.empty-title {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.empty-text {
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .player-hero {
        padding: 40px 0 30px;
    }
    
    .player-name {
        font-size: 1.8rem;
    }
    
    .player-avatar {
        width: 120px;
        height: 120px;
    }
    
    .player-avatar-letter {
        font-size: 48px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .member-info-grid {
        grid-template-columns: 1fr;
    }
    
    .servers-table {
        font-size: 0.85rem;
    }
    
    .servers-table thead {
        display: none;
    }
    
    .servers-table tbody tr {
        display: block;
        margin-bottom: 15px;
        border-radius: 10px;
        padding: 15px;
        background: rgba(31, 41, 55, 0.8);
    }
    
    .servers-table td {
        display: block;
        padding: 5px 10px;
        text-align: left;
    }
    
    .servers-table td:before {
        content: attr(data-label);
        font-weight: 600;
        color: #9ca3af;
        display: inline-block;
        width: 100px;
        text-transform: uppercase;
        font-size: 0.75rem;
        letter-spacing: 1px;
    }
    
    .sessions-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #667eea #1f2937;
    }
    
    .sessions-table::-webkit-scrollbar {
        height: 8px;
    }
    
    .sessions-table::-webkit-scrollbar-track {
        background: #1f2937;
        border-radius: 4px;
    }
    
    .sessions-table::-webkit-scrollbar-thumb {
        background: #667eea;
        border-radius: 4px;
    }
}

@media (max-width: 480px) {
    .player-name {
        font-size: 1.5rem;
    }
    
    .player-avatar {
        width: 100px;
        height: 100px;
    }
    
    .player-avatar-letter {
        font-size: 40px;
    }
    
    .section-header {
        padding: 15px 20px;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .online-indicator {
        width: 25px;
        height: 25px;
        bottom: 5px;
        right: 5px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card,
.content-section {
    animation: fadeIn 0.6s ease-out forwards;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
}
