/* Modern Player Cards - Compact Portrait Orientation with Smooth Animations */

.player-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(1, 190, 110, 0.05) 100%);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    height: 300px; /* Reduced height */
    width: 250px; /* Fixed width */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Modern glowing border effect */
.player-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(1, 190, 110, 0.3),
        transparent,
        rgba(1, 190, 110, 0.6),
        transparent
    );
    background-size: 300% 300%;
    animation: borderGlow 3s ease infinite;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

@keyframes borderGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Modern hover effects - smooth and sophisticated */
.player-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 
        0 25px 50px rgba(1, 190, 110, 0.2),
        0 8px 25px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, 
        rgba(1, 190, 110, 0.08) 0%, 
        rgba(1, 190, 110, 0.12) 50%,
        rgba(0, 168, 88, 0.08) 100%);
}

.player-card:hover::before {
    opacity: 1;
}

/* Player avatar with modern styling and black background */
.player-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d); /* Changed to black gradient */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid rgba(1, 190, 110, 0.2);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 32px rgba(1, 190, 110, 0.1);
}

.player-card:hover .player-avatar {
    border-color: rgba(1, 190, 110, 0.6);
    transform: scale(1.08);
    box-shadow: 0 12px 40px rgba(1, 190, 110, 0.3);
}

/* Enhanced image handling for admin uploaded images */
.player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    border-radius: 50%;
}

.player-card:hover .player-avatar img {
    transform: scale(1.1);
}

/* Fallback icon styling */
.player-avatar i {
    font-size: 2rem;
    color: #ffffff;
    transition: all 0.3s ease;
}

.player-card:hover .player-avatar i {
    transform: scale(1.1);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Player info with modern typography - compact */
.player-name {
    margin: 0 0 0.3rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    letter-spacing: 0.02em;
}

.player-card:hover .player-name {
    color: #01BE6E;
    transform: translateY(-2px);
    text-shadow: 0 2px 8px rgba(1, 190, 110, 0.3);
}

.player-role {
    margin: 0 0 0.5rem 0;
    color: #01BE6E;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    opacity: 0.9;
}

.player-card:hover .player-role {
    opacity: 1;
    transform: translateY(-1px);
}

.player-country {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(1, 190, 110, 0.1);
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(1, 190, 110, 0.2);
}

.player-card:hover .player-country {
    background: rgba(1, 190, 110, 0.15);
    border-color: rgba(1, 190, 110, 0.4);
    transform: translateY(-1px);
}

/* Individual player cards with compact portrait orientation */
.player-card.individual-player {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 20px;
    padding: 1.2rem;
    border: 2px solid transparent;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    height: 350px; /* Slightly taller for individual players */
    width: 280px; /* Slightly wider for individual players */
    display: flex;
    flex-direction: column;
}

.player-card.individual-player::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #01BE6E, #00a858);
    transition: all 0.5s ease;
    border-radius: 20px 20px 0 0;
}

.player-card.individual-player:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(1, 190, 110, 0.3);
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.95) 0%, 
        rgba(1, 190, 110, 0.08) 50%,
        rgba(45, 45, 45, 0.95) 100%);
    box-shadow: 
        0 25px 50px rgba(1, 190, 110, 0.15),
        0 8px 25px rgba(0, 0, 0, 0.2);
}

.player-card.individual-player:hover::before {
    height: 6px;
    box-shadow: 0 0 20px rgba(1, 190, 110, 0.6);
}

/* Player header with better spacing for compact cards */
.player-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.player-header .player-avatar {
    width: 70px;
    height: 70px;
    margin-bottom: 0.8rem;
    border: 3px solid rgba(1, 190, 110, 0.3);
    transition: all 0.5s ease;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d); /* Black background */
}

.player-card:hover .player-header .player-avatar {
    border-color: rgba(1, 190, 110, 0.7);
    box-shadow: 0 8px 32px rgba(1, 190, 110, 0.4);
}

.player-basic-info h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    font-weight: 700;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.player-card:hover .player-basic-info h3 {
    color: #01BE6E;
    text-shadow: 0 0 15px rgba(1, 190, 110, 0.4);
    transform: translateY(-2px);
}

.player-basic-info .player-role {
    color: #01BE6E;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    transition: all 0.3s ease;
}

.player-card:hover .player-basic-info .player-role {
    text-shadow: 0 0 10px rgba(1, 190, 110, 0.3);
}

.player-nationality {
    color: #8B949E;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    transition: all 0.3s ease;
    margin-top: 0.3rem;
}

.player-card:hover .player-nationality {
    color: #01BE6E;
}

/* Player stats with modern design - compact */
.player-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin: 0.8rem 0;
    padding: 0.8rem;
    background: rgba(1, 190, 110, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(1, 190, 110, 0.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.player-card:hover .player-stats {
    background: rgba(1, 190, 110, 0.1);
    border-color: rgba(1, 190, 110, 0.2);
    transform: translateY(-2px);
}

.stat-item {
    text-align: center;
    transition: all 0.3s ease;
}

.player-card:hover .stat-item {
    transform: translateY(-1px);
}

.stat-label {
    display: block;
    color: #8B949E;
    font-size: 0.7rem;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.player-card:hover .stat-label {
    color: #01BE6E;
}

.stat-value {
    display: block;
    color: #01BE6E;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.player-card:hover .stat-value {
    text-shadow: 0 0 10px rgba(1, 190, 110, 0.4);
    transform: scale(1.05);
}

/* Remove conflicting social media styles */
.player-social {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

/* Remove all social-link styles since they are in social-media.css */

/* Player achievements styling - compact */
.player-achievements {
    margin: 0.8rem 0;
    position: relative;
    z-index: 2;
}

.player-achievements h4 {
    color: #ffffff;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
}

.player-card:hover .player-achievements h4 {
    color: #01BE6E;
}

.achievements-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.player-card:hover .achievement-item {
    background: rgba(1, 190, 110, 0.1);
    transform: translateX(5px);
}

.achievement-item i {
    color: #FFD700;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.player-card:hover .achievement-item i {
    transform: scale(1.1);
}

/* Responsive design for compact portrait cards */
@media (max-width: 1200px) {
    .player-card {
        height: 280px;
        width: 230px;
    }
    
    .player-card.individual-player {
        height: 330px;
        width: 260px;
    }
}

@media (max-width: 768px) {
    .player-card {
        padding: 1rem;
        height: 260px;
        width: 210px;
    }
    
    .player-card.individual-player {
        height: 310px;
        width: 240px;
    }
    
    .player-avatar {
        width: 70px;
        height: 70px;
    }
    
    .player-header .player-avatar {
        width: 60px;
        height: 60px;
    }
    
    .player-name {
        font-size: 1rem;
    }
    
    .player-basic-info h3 {
        font-size: 1.1rem;
    }
    
    .player-stats {
        padding: 0.6rem;
        gap: 0.6rem;
    }
}

@media (max-width: 480px) {
    .player-card {
        height: 240px;
        width: 190px;
        padding: 0.8rem;
    }
    
    .player-card.individual-player {
        height: 290px;
        width: 220px;
    }
    
    .player-avatar {
        width: 60px;
        height: 60px;
    }
    
    .player-header .player-avatar {
        width: 50px;
        height: 50px;
    }
} 

.player-role-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    z-index: 2;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    object-fit: contain;
    border: 1px solid #D9D9D9;
} 

/* Team Selector Card Styles - NEW ADDITION */
.team-selector-card {
    position: relative;
    width: 500px;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: #1a1a1a;
}

/* Team background image - full cover */
.team-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    z-index: 1;
}

/* Hover overlay with roster information */
.team-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.8) 50%,
        rgba(0, 0, 0, 0.9) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 2;
}



.team-card-content {
    text-align: center;
    color: white;
}

.team-card-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #01BE6E;
    font-weight: 700;
}

/* Roster players list - CRITICAL FOR SHOWING PLAYER NAMES */
.roster-players-list {
    margin-bottom: 1.5rem;
    text-align: center;
    max-height: 150px;
    overflow-y: auto;
    padding: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.roster-player-name {
    display: inline-block;
    background: rgba(1, 190, 110, 0.2);
    color: #ffffff;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(1, 190, 110, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.roster-player-name:hover {
    background: rgba(1, 190, 110, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(1, 190, 110, 0.3);
}

.roster-player-name.no-players {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ccc;
}

.roster-player-name.more-players {
    background: rgba(1, 190, 110, 0.3);
    border: 1px solid rgba(1, 190, 110, 0.4);
    font-style: italic;
}

.team-card-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.roster-count {
    color: #ccc;
    font-size: 0.9rem;
    font-weight: 500;
}

/* View roster button */
.view-roster-btn {
    background: linear-gradient(135deg, #01BE6E, #00a858);
    color: #000000;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(1, 190, 110, 0.4);
}

.view-roster-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(1, 190, 110, 0.6);
    background: linear-gradient(135deg, #00a858, #01BE6E);
}

/* Hover effects for team selector card */
.team-selector-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(1, 190, 110, 0.4);
}

.team-selector-card:hover .team-card-overlay {
    opacity: 1;
}

.team-selector-card:hover .team-card-bg {
    transform: scale(1.05);
}

/* Mobile responsive adjustments for team selector */
@media (max-width: 768px) {
    .team-selector-card {
        width: 400px;
        height: 300px;
    }
    
    .roster-player-name {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .view-roster-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .team-selector-card {
        width: 100%;
        max-width: 350px;
        height: 250px;
        margin: 0 auto;
    }
    
    .roster-players-list {
        margin-bottom: 1rem;
        max-height: 100px;
    }
    
    .roster-player-name {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
        margin: 0.2rem;
    }
    
    .view-roster-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
}

/* Touch-friendly hover effects for mobile */
@media (hover: none) and (pointer: coarse) {
    .team-selector-card:hover .team-card-overlay {
        opacity: 0.8;
    }
    
    .team-selector-card:active .team-card-overlay {
        opacity: 1;
    }
    
    .roster-player-name:hover {
        transform: none;
    }
    
    .roster-player-name:active {
        transform: translateY(-2px);
        background: rgba(1, 190, 110, 0.4);
    }
} 