/* ==========================================
   PLAYER PROFILE - COMPLETE REDESIGN
   ========================================== */

.player-profile-modal-redesign {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    animation: fadeInModal 0.3s ease-out forwards;
}

@keyframes fadeInModal {
    to { opacity: 1; }
}

/* Profile Container - Wider and More Spacious */
.player-profile-container-redesign {
    background: linear-gradient(135deg, rgba(20, 30, 50, 0.98) 0%, rgba(10, 20, 40, 0.99) 100%);
    border-radius: 30px;
    max-width: 1000px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 100px rgba(79, 195, 247, 0.3);
    border: 4px solid rgba(79, 195, 247, 0.4);
    position: relative;
    z-index: 10002;
    animation: slideUpModal 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUpModal {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.player-profile-container-redesign::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(79, 195, 247, 0.1) 0%, transparent 70%);
    animation: profileGlowEffect 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes profileGlowEffect {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.5;
    }
    50% { 
        transform: translate(40px, -40px) rotate(180deg);
        opacity: 0.8;
    }
}

/* Close Button - Círculo perfeito */
.profile-close-btn-redesign {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    max-width: 44px;
    max-height: 44px;
    padding: 0;
    background: rgba(244, 67, 54, 0.9);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.5);
    z-index: 10003;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
    line-height: 1;
}

.profile-close-btn-redesign:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 25px rgba(244, 67, 54, 0.7);
}

/* Profile Header - Horizontal Layout */
.profile-header-redesign {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 35px;
    background: linear-gradient(135deg, rgba(30, 40, 70, 0.8) 0%, rgba(20, 30, 50, 0.9) 100%);
    border-radius: 30px 30px 0 0;
    border-bottom: 3px solid rgba(79, 195, 247, 0.3);
    position: relative;
    overflow: visible;
}

.profile-header-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Avatar Section */
.profile-avatar-section {
    position: relative;
    flex-shrink: 0;
    overflow: visible;
}

.profile-avatar-redesign {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(79, 195, 247, 0.6);
    box-shadow: 0 6px 25px rgba(79, 195, 247, 0.5);
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    animation: avatarFloating 4s ease-in-out infinite;
}

@keyframes avatarFloating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.profile-avatar-ring {
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    border: 4px solid rgba(255, 215, 0, 0.5);
    border-radius: 50%;
    animation: ringPulsing 2.5s ease-in-out infinite;
}

@keyframes ringPulsing {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* Level Circle - Círculo de Level no Avatar */
.profile-level-circle {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    background: linear-gradient(135deg, #ffd700 0%, #ff9800 100%);
    border: 3px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 900;
    color: #1a237e;
    box-shadow: 0 2px 10px rgba(255, 152, 0, 0.6);
    z-index: 10;
    aspect-ratio: 1 / 1;
}

.profile-level-badge {
    display: none;
}

/* Compact Profile Styles */
.player-profile-container-redesign.compact {
    max-width: 600px;
    max-height: 85vh;
}

.profile-header-redesign.compact {
    padding: 20px 25px;
}

.profile-header-content.compact {
    gap: 20px;
}

.profile-avatar-section.compact {
    flex-shrink: 0;
}

.profile-avatar-redesign.compact {
    width: 80px;
    height: 80px;
}

.profile-player-name-redesign.compact {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

/* Inline Stats */
.profile-inline-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.inline-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    border: 1px solid rgba(79, 195, 247, 0.3);
}

.inline-stat .stat-icon {
    font-size: 0.75rem;
}

.inline-stat.rank {
    background: linear-gradient(135deg, #ffd700 0%, #ffab00 100%);
    color: #1a237e;
    border-color: rgba(255, 215, 0, 0.6);
}

/* Team Section Compact */
.profile-team-section-redesign.compact {
    padding: 15px 25px;
}

.profile-section-header-redesign.compact {
    margin-bottom: 15px;
    padding-bottom: 10px;
}

.profile-section-title-redesign.compact {
    font-size: 1.1rem;
}

.profile-team-cards-redesign.compact {
    gap: 10px;
}

.profile-team-card-redesign.compact {
    padding: 10px;
}

/* Shop Container */
.profile-shop-container {
    display: flex;
    justify-content: center;
    padding: 15px 25px 25px;
}

.profile-shop-btn-redesign.compact {
    margin: 0;
    padding: 14px 30px;
    font-size: 0.95rem;
    width: auto;
}

/* Player Info Section */
.profile-info-section {
    flex: 1;
}

.profile-player-name-redesign {
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 12px;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

.profile-score-display {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.profile-score-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.6));
}

.profile-score-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffd700;
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.6);
}

.profile-ranking-badge-redesign {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a237e;
    font-size: 1rem;
    font-weight: 900;
    border-radius: 20px;
    border: 3px solid rgba(255, 215, 0, 0.6);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: badgeGlowing 2.5s ease-in-out infinite;
}

@keyframes badgeGlowing {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5);
    }
    50% {
        box-shadow: 0 4px 25px rgba(255, 215, 0, 0.9);
    }
}

/* Stats Grid - 4 Columns */
.profile-stats-grid-redesign {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 30px 40px;
    position: relative;
    z-index: 1;
}

.profile-stat-card-redesign {
    background: linear-gradient(135deg, rgba(30, 40, 70, 0.9) 0%, rgba(20, 30, 50, 0.95) 100%);
    border-radius: 20px;
    padding: 25px 20px;
    text-align: center;
    border: 3px solid rgba(79, 195, 247, 0.4);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.profile-stat-card-redesign::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(79, 195, 247, 0.2), transparent);
    transition: left 0.5s ease;
}

.profile-stat-card-redesign:hover::before {
    left: 100%;
}

.profile-stat-card-redesign:hover {
    transform: translateY(-8px);
    border-color: rgba(79, 195, 247, 0.7);
    box-shadow: 0 10px 30px rgba(79, 195, 247, 0.5);
}

.profile-stat-icon-redesign {
    font-size: 2.5rem;
    margin-bottom: 12px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.profile-stat-value-redesign {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.profile-stat-label-redesign {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Team Section - Grid Layout */
.profile-team-section-redesign {
    padding: 30px 40px;
    position: relative;
    z-index: 1;
}

.profile-section-header-redesign {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 3px solid rgba(79, 195, 247, 0.3);
}

.profile-section-icon-redesign {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 8px rgba(79, 195, 247, 0.6));
}

.profile-section-title-redesign {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-team-cards-redesign {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.profile-team-cards-redesign .profile-team-card-wrapper {
    display: flex;
    justify-content: center;
}

.profile-team-card-redesign {
    background: linear-gradient(135deg, rgba(30, 40, 70, 0.9) 0%, rgba(20, 30, 50, 0.95) 100%);
    border-radius: 20px;
    padding: 15px;
    border: 3px solid rgba(79, 195, 247, 0.4);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.profile-team-card-redesign::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(79, 195, 247, 0.15), transparent);
    transition: left 0.5s ease;
}

.profile-team-card-redesign:hover::before {
    left: 100%;
}

.profile-team-card-redesign:hover {
    transform: translateY(-8px) scale(1.05);
    border-color: rgba(79, 195, 247, 0.7);
    box-shadow: 0 10px 30px rgba(79, 195, 247, 0.5);
}

.card-image-container-redesign {
    width: 100%;
    aspect-ratio: 3/4;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    position: relative;
}

.card-image-redesign {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-name-redesign {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.card-stats-redesign {
    display: flex;
    justify-content: space-around;
    gap: 8px;
}

.card-stat-redesign {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
    font-weight: 700;
}

.card-stat-redesign.attack {
    color: #ff9800;
}

.card-stat-redesign.defense {
    color: #4fc3f7;
}

/* Shop Button */
.profile-shop-btn-redesign {
    margin: 30px 40px;
    padding: 20px 40px;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.9) 0%, rgba(0, 151, 167, 0.95) 100%);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 3px solid rgba(0, 188, 212, 0.6);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.profile-shop-btn-redesign::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.profile-shop-btn-redesign:hover::before {
    width: 400px;
    height: 400px;
}

.profile-shop-btn-redesign:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 188, 212, 0.6);
}

.profile-shop-btn-icon {
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
}

.profile-shop-btn-text {
    position: relative;
    z-index: 1;
}

/* Responsive */
@media (max-width: 1024px) {
    .profile-team-cards-redesign {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .profile-header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-stats-grid-redesign {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profile-team-cards-redesign {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profile-player-name-redesign {
        font-size: 1.8rem;
    }
    
    .profile-avatar-redesign {
        width: 120px;
        height: 120px;
    }
}

/* Scrollbar */
.player-profile-container-redesign::-webkit-scrollbar {
    width: 10px;
}

.player-profile-container-redesign::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.player-profile-container-redesign::-webkit-scrollbar-thumb {
    background: rgba(79, 195, 247, 0.5);
    border-radius: 10px;
}

.player-profile-container-redesign::-webkit-scrollbar-thumb:hover {
    background: rgba(79, 195, 247, 0.7);
}
