@import url("style.css");

.roster-hero {
    position: relative;
    overflow: hidden;
    padding: 60px 20px;
    text-align: center;
    color: white;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.roster-hero::before {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    content: '';
    opacity: 0.3;
    background: url('data:image/svg+xml, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba( 255, 255, 255, 0.1) "/><circle cx="80" cy="40" r="1" fill="rgba( 255, 255, 255, 0.1) "/><circle cx="40" cy="80" r="1.5" fill="rgba( 255, 255, 255, 0.1) "/></svg>');
}

.roster-hero .hero-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #ffffff, #e0e7ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.roster-hero .hero-content p {
    font-size: 1.3rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 40px;
}

.hero-stats .stat-item {
    text-align: center;
}

.hero-stats .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
    margin-bottom: 5px;
    color: #00d4ff;
    text-shadow: 0 2px 10px rgba(0, 212, 255, 0.3);
}

.hero-stats .stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.8;
}

.hero-image {
    margin-top: 30px;
}

.trophy-icon {
    font-size: 4rem;
    animation: bounce 3s infinite;
}

.roster-filters {
    padding: 40px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.filter-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.filter-container h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-color);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.filter-btn {
    font-weight: 600;
    position: relative;
    display: flex;
    overflow: hidden;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-color);
    border: 2px solid rgba(0, 123, 255, 0.2);
    border-radius: 50px;
    background: var(--card-bg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    gap: 8px;
}

.filter-btn::before {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    content: '';
    transition: left 0.5s;
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.1), transparent);
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 123, 255, 0.4);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
}

.filter-btn:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
}

.filter-btn.active {
    transform: translateY(-2px);
    color: #ffffff;
    border-color: #007aff;
    background: linear-gradient(135deg, #007aff 0%, #0056b3 100%);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.filter-icon {
    font-size: 1.2rem;
}

.players-section {
    position: relative;
    overflow: hidden;
    padding: 60px 20px;
    background: var(--bg-color);
}

.players-section::before {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    content: '';
    pointer-events: none;
    background-image: radial-gradient(circle at 20% 80%, rgba(0, 123, 255, 0.03) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(0, 123, 255, 0.03) 0%, transparent 50%), radial-gradient(circle at 40% 40%, rgba(0, 123, 255, 0.02) 0%, transparent 50%);
}

.players-cube-grid {
    position: relative;
    z-index: 1;
    display: grid;
    max-width: 1400px;
    margin: 0 auto;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.player-cube-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 320px;
    animation: fadeInUp 0.8s ease-out backwards;
    perspective: 1200px;
}

.player-cube-wrapper:nth-child(1) { animation-delay: 0.1s; }
.player-cube-wrapper:nth-child(2) { animation-delay: 0.2s; }
.player-cube-wrapper:nth-child(3) { animation-delay: 0.3s; }
.player-cube-wrapper:nth-child(4) { animation-delay: 0.4s; }
.player-cube-wrapper:nth-child(5) { animation-delay: 0.5s; }
.player-cube-wrapper:nth-child(6) { animation-delay: 0.6s; }

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

.player-cube {
    position: relative;
    width: 260px;
    height: 260px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: gentleRotate 20s infinite linear;
    transform-style: preserve-3d;
}

@keyframes gentleRotate {
    0% { transform: rotateY(0deg); }
    25% { transform: rotateY(90deg); }
    50% { transform: rotateY(180deg); }
    75% { transform: rotateY(270deg); }
    100% { transform: rotateY(360deg); }
}

.player-cube-wrapper:hover .player-cube {
    transform: scale(1.05);
    animation-play-state: paused;
}

.player-cube-wrapper:hover { z-index: 10; }

.cube-face {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 260px;
    height: 260px;
    transition: all 0.3s ease;
    color: #1d1d1f;
    border: 2px solid rgba(0, 123, 255, 0.1);
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #e9ecef 100%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), inset 0 2px 0 rgba(255, 255, 255, 0.8), inset 0 -2px 4px rgba(0, 0, 0, 0.05);
    backface-visibility: hidden;
}

.player-cube-wrapper:hover .cube-face {
    box-shadow: 0 30px 80px rgba(0, 123, 255, 0.15), inset 0 2px 0 rgba(255, 255, 255, 0.9), inset 0 -2px 4px rgba(0, 0, 0, 0.03);
}

.front-face { transform: translateZ(130px); }
.back-face { transform: rotateY(180deg) translateZ(130px); }
.right-face { transform: rotateY(90deg) translateZ(130px); }
.left-face { transform: rotateY(270deg) translateZ(130px); }

.cube-face-content {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px;
    text-align: center;
}

.cube-face-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1d1d1f;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cube-face-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.8;
    color: #6c757d;
}

.cube-face-content .jersey {
    font-size: 16px;
    font-weight: 500;
    display: inline-block;
    margin-top: 8px;
    padding: 4px 8px;
    opacity: 0.7;
    color: #6c757d;
    border-radius: 8px;
    background: rgba(0, 123, 255, 0.1);
}

.player-passport-photo {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    border: 3px solid rgba(0, 123, 255, 0.2);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

.match-status { font-size: 0.9rem; margin-top: 6px; color: var(--text-color); }

.status-tag {
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
    padding: 4px 8px;
    color: white;
    border-radius: 12px;
}

.status-upcoming { background: #007aff; }
.status-postponed { background: #ff8c00; }
.status-played { background: #28a745; }

.btn-action {
    margin: 0 6px;
    padding: 6px 10px;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    background: var(--card-bg);
}

.player-cube-wrapper:hover .player-passport-photo {
    transform: scale(1.05);
    border-color: #007aff;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.cube-face-content .nickname-text {
    font-size: 16px;
    font-weight: 600;
    font-style: italic;
    margin-top: 8px;
    color: #007aff;
    text-shadow: 0 1px 2px rgba(0, 123, 255, 0.2);
}

.cube-face-content .position-text {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1d1d1f;
}

.player-front-content { width: 100%; text-align: center; }

.player-image-large { font-size: 60px; display: block; margin-bottom: 10px; }

.player-front-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.jersey { font-size: 14px; font-weight: 500; opacity: 0.9; }

.player-stats-large {
    width: 100%;
    padding: 20px;
    text-align: center;
}

.player-stats-large h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    opacity: 0.95;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.stat-label {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    opacity: 0.7;
    color: #86868b;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #1d1d1f;
}

.player-position-large { width: 100%; text-align: center; }

.player-position-large h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    opacity: 0.95;
}

.position-text { font-size: 24px; font-weight: 700; margin-bottom: 15px; }

.player-position-large .position-badge {
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin: 0 auto;
    color: #007aff;
    border-radius: 50%;
    background-color: rgba(0, 123, 255, 0.1);
}

.player-nickname-large { width: 100%; padding: 20px; text-align: center; }

.player-nickname-large h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.8;
}

.nickname-text { font-size: 22px; font-weight: 700; font-style: italic; line-height: 1.4; }

.top-face .player-info {
    display: flex;
    justify-content: space-around;
    width: 100%;
    padding: 15px;
    gap: 20px;
}

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

.info-label {
    font-size: 11px;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.8;
}

.info-value {
    font-size: 18px;
    font-weight: 700;
    display: block;
}

.player-highlight { width: 100%; text-align: center; }

.player-highlight h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    opacity: 0.9;
}

.player-highlight p {
    font-size: 16px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .players-cube-grid {
        padding: 10px;
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .player-cube-wrapper { height: 240px; }

    .player-cube,
    .cube-face {
        width: 180px;
        height: 180px;
    }

    .cube-face { border-radius: 12px; }

    .front-face { transform: translateZ(90px); }
    .back-face { transform: rotateY(180deg) translateZ(90px); }
    .right-face { transform: rotateY(90deg) translateZ(90px); }
    .left-face { transform: rotateY(-90deg) translateZ(90px); }

    .player-image-large { font-size: 60px; }

    .player-front-content h3 { font-size: 18px; }
}

@media (max-width: 480px) {
    .player-cube-wrapper { height: 220px; }

    .player-cube,
    .cube-face {
        width: 180px;
        height: 180px;
    }

    .front-face { transform: translateZ(90px); }
    .back-face { transform: rotateY(180deg) translateZ(90px); }
    .right-face { transform: rotateY(90deg) translateZ(90px); }
    .left-face { transform: rotateY(270deg) translateZ(90px); }
}
