/* User Profile Styles */
/* أنماط الملف الشخصي */

.game-header {
    position: fixed;
    top: 0;
    right: 0;
    padding: 20px;
    z-index: 1000;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
}

.profile-icon {
    font-size: 20px;
}

.profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.profile-modal.hidden {
    display: none;
}

.profile-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 3px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.4s ease;
}

.profile-content > div {
    background: #1a1a2e;
    border-radius: 17px;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.profile-header h2 {
    color: #fff;
    font-size: 26px;
    margin: 0;
}

.close-profile {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-profile:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.profile-body {
    padding: 30px;
}

.profile-section {
    margin-bottom: 35px;
    animation: fadeInUp 0.5s ease;
}

/* User Info Section */
.user-info {
    text-align: center;
}

.user-avatar {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.avatar-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
}

.level-badge {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 215, 0, 0.2);
    border: 2px solid #ffd700;
    border-radius: 20px;
    padding: 5px 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.level-icon {
    font-size: 18px;
}

.level-text {
    color: #ffd700;
    font-size: 14px;
    font-weight: bold;
}

.username-display {
    color: #fff;
    font-size: 24px;
    margin: 15px 0 10px;
}

.user-since {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Statistics Section */
.stats-section h4 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

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

.stat-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: #667eea;
}

.stat-icon {
    font-size: 30px;
    margin-bottom: 10px;
}

.stat-value {
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Progress Section */
.progress-section h4 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 20px;
}

.progress-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    font-size: 14px;
}

.progress-bar {
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

.progress-info {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.progress-info span {
    color: #fff;
    font-weight: bold;
}

/* Achievements Section */
.achievements-section h4 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 20px;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.achievement-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.achievement-card:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-5px);
    border-color: #ffd700;
}

.achievement-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.achievement-name {
    color: #ffd700;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

.achievement-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.no-achievements {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 40px;
    font-size: 18px;
}

/* Anime Stats Section */
.anime-stats h4 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 20px;
}

.anime-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.anime-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.anime-stat-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.anime-name {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

.anime-count {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
}

/* Actions Section */
.actions-section {
    display: flex;
    gap: 15px;
}

.reset-btn,
.export-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-btn {
    background: rgba(244, 67, 54, 0.2);
    border: 2px solid #f44336;
    color: #f44336;
}

.reset-btn:hover {
    background: rgba(244, 67, 54, 0.3);
    transform: translateY(-2px);
}

.export-btn {
    background: rgba(76, 175, 80, 0.2);
    border: 2px solid #4caf50;
    color: #4caf50;
}

.export-btn:hover {
    background: rgba(76, 175, 80, 0.3);
    transform: translateY(-2px);
}

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

/* Responsive Design */
@media (max-width: 600px) {
    .profile-content {
        width: 95%;
        max-width: none;
    }
    
    .profile-body {
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .actions-section {
        flex-direction: column;
    }
}
