/* 
   Alebrijes de Oaxaca Teotihuacán
   Proyección Page Styles
*/

/* Header Proyección */
.header-proyeccion {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.header-proyeccion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='400' height='300' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='jerseyPattern' x='0' y='0' width='400' height='300' patternUnits='userSpaceOnUse'%3E%3Crect x='0' y='0' width='80' height='60' fill='%23FF3333' stroke='%23000' stroke-width='2'/%3E%3Crect x='80' y='0' width='70' height='60' fill='%23FF6B00' stroke='%23000' stroke-width='2'/%3E%3Crect x='150' y='0' width='90' height='60' fill='%23FFD700' stroke='%23000' stroke-width='2'/%3E%3Crect x='240' y='0' width='65' height='60' fill='%23FF1493' stroke='%23000' stroke-width='2'/%3E%3Crect x='305' y='0' width='95' height='60' fill='%2332CD32' stroke='%23000' stroke-width='2'/%3E%3Crect x='0' y='60' width='60' height='70' fill='%234169E1' stroke='%23000' stroke-width='2'/%3E%3Crect x='60' y='60' width='85' height='70' fill='%239932CC' stroke='%23000' stroke-width='2'/%3E%3Crect x='145' y='60' width='75' height='70' fill='%23FF6B00' stroke='%23000' stroke-width='2'/%3E%3Crect x='220' y='60' width='100' height='70' fill='%23FF3333' stroke='%23000' stroke-width='2'/%3E%3Crect x='320' y='60' width='80' height='70' fill='%23FFD700' stroke='%23000' stroke-width='2'/%3E%3Crect x='0' y='130' width='95' height='65' fill='%23FF1493' stroke='%23000' stroke-width='2'/%3E%3Crect x='95' y='130' width='70' height='65' fill='%2332CD32' stroke='%23000' stroke-width='2'/%3E%3Crect x='165' y='130' width='85' height='65' fill='%234169E1' stroke='%23000' stroke-width='2'/%3E%3Crect x='250' y='130' width='75' height='65' fill='%239932CC' stroke='%23000' stroke-width='2'/%3E%3Crect x='325' y='130' width='75' height='65' fill='%23FF6B00' stroke='%23000' stroke-width='2'/%3E%3Crect x='0' y='195' width='65' height='105' fill='%23FF3333' stroke='%23000' stroke-width='2'/%3E%3Crect x='65' y='195' width='90' height='105' fill='%23FFD700' stroke='%23000' stroke-width='2'/%3E%3Crect x='155' y='195' width='70' height='105' fill='%23FF1493' stroke='%23000' stroke-width='2'/%3E%3Crect x='225' y='195' width='85' height='105' fill='%2332CD32' stroke='%23000' stroke-width='2'/%3E%3Crect x='310' y='195' width='90' height='105' fill='%234169E1' stroke='%23000' stroke-width='2'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23jerseyPattern)' opacity='0.1'/%3E%3C/svg%3E");
    background-size: 400px 300px;
    background-repeat: repeat;
    opacity: 0.3;
    z-index: 0;
}

.header-proyeccion .header-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.header-proyeccion h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 8px;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 
        3px 3px 0 rgba(0, 0, 0, 0.8),
        0 0 40px rgba(243, 106, 33, 0.5);
}

.header-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

/* Filtros Menu Section - Sticky */
.filtros-menu-section {
    background: var(--white);
    padding: 0;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: var(--header-height);
    z-index: 100;
    border-top: 1px solid rgba(243, 106, 33, 0.2);
}

.filtros-menu {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 0;
    overflow: hidden;
}

.filtro-menu-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 25px 20px;
    background: var(--white);
    border: none;
    border-right: 1px solid rgba(243, 106, 33, 0.1);
    color: var(--text);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    font-family: var(--font-main);
}

.filtro-menu-btn:last-child {
    border-right: none;
}

.filtro-menu-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.filtro-menu-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(243, 106, 33, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.filtro-menu-btn:hover {
    background: rgba(243, 106, 33, 0.03);
    color: var(--primary);
    transform: translateY(-2px);
}

.filtro-menu-btn:hover::before {
    transform: scaleX(1);
}

.filtro-menu-btn:hover::after {
    opacity: 1;
}

.filtro-menu-btn.active {
    background: linear-gradient(to bottom, rgba(243, 106, 33, 0.08) 0%, transparent 100%);
    color: var(--primary);
    font-weight: 700;
}

.filtro-menu-btn.active::before {
    transform: scaleX(1);
    height: 4px;
}

.filtro-menu-btn.active::after {
    opacity: 1;
}


.filtro-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: grayscale(0.5) opacity(0.8);
}

.filtro-menu-btn:hover .filtro-logo {
    transform: scale(1.1);
    filter: grayscale(0) opacity(1);
}

.filtro-menu-btn.active .filtro-logo {
    filter: grayscale(0) opacity(1);
    transform: scale(1.05);
}

/* Proyección Section */
.proyeccion-section {
    padding: 80px 0;
    background: var(--white);
}

.proyeccion-header {
    margin-bottom: 60px;
}

.proyeccion-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 20px auto 0;
    line-height: 1.8;
}

/* Categoría Jugadores */
.categoria-jugadores {
    margin-bottom: 80px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.categoria-jugadores.hidden {
    display: none !important;
}

.categoria-header {
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.categoria-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.categoria-badge svg {
    width: 24px;
    height: 24px;
}

.categoria-badge.expansion {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.categoria-badge.premiere {
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
}

.categoria-badge.tdp {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

/* Jugadores Grid */
.jugadores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.jugador-proyeccion-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}

.jugador-proyeccion-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 50px rgba(243, 106, 33, 0.2),
        0 0 0 3px rgba(243, 106, 33, 0.2);
    border-color: var(--primary);
}

.jugador-proyeccion-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.jugador-proyeccion-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    transition: transform 0.6s ease;
}

.jugador-proyeccion-card:hover .jugador-proyeccion-image img {
    transform: scale(1.1);
}

.jugador-proyeccion-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.7);
    z-index: 2;
}

.jugador-proyeccion-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.jugador-proyeccion-nombre {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.jugador-proyeccion-posicion {
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.jugador-proyeccion-equipo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 12px;
    background: var(--grey);
    border-radius: 10px;
}

.jugador-proyeccion-equipo-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--white);
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.jugador-proyeccion-equipo-nombre {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    flex-grow: 1;
}

.jugador-proyeccion-categoria {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: auto;
}

.jugador-proyeccion-categoria.expansion {
    background: rgba(30, 58, 138, 0.1);
    color: #1e3a8a;
}

.jugador-proyeccion-categoria.premiere {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
}

.jugador-proyeccion-categoria.tdp {
    background: rgba(243, 106, 33, 0.1);
    color: var(--primary);
}

/* No Jugadores Message */
.no-jugadores-message {
    text-align: center;
    padding: 80px 40px;
    background: var(--grey);
    border-radius: 20px;
    margin-top: 40px;
}

.no-jugadores-message svg {
    width: 80px;
    height: 80px;
    color: var(--text-light);
    margin-bottom: 30px;
    opacity: 0.5;
}

.no-jugadores-message h3 {
    font-size: 1.8rem;
    color: var(--text);
    margin-bottom: 15px;
    font-weight: 700;
}

.no-jugadores-message p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 1024px) {
    .jugadores-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }

    .filtros-menu {
        grid-template-columns: repeat(2, 1fr);
    }

    .filtro-menu-btn:nth-child(2) {
        border-right: none;
    }

    .filtro-menu-btn:nth-child(3) {
        border-right: 1px solid rgba(243, 106, 33, 0.1);
    }
}

@media (max-width: 768px) {
    .header-proyeccion {
        min-height: 300px;
    }

    .header-proyeccion h1 {
        letter-spacing: 4px;
    }

    .filtros-menu-section {
        position: relative;
        padding: 0;
    }

    .filtros-menu-section::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 30px;
        background: linear-gradient(to left, var(--white) 30%, transparent 100%);
        pointer-events: none;
        z-index: 5;
    }

    .filtros-menu-section::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 30px;
        background: linear-gradient(to right, var(--white) 30%, transparent 100%);
        pointer-events: none;
        z-index: 5;
    }

    .filtros-menu {
        display: flex;
        grid-template-columns: unset;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 0;
        padding: 0;
    }

    .filtros-menu::-webkit-scrollbar {
        display: none;
    }

    .filtro-menu-btn {
        flex: 0 0 auto;
        min-width: 120px;
        scroll-snap-align: start;
        padding: 12px 16px;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        border-right: 1px solid rgba(243, 106, 33, 0.1);
        border-bottom: none;
    }

    .filtro-menu-btn:last-child {
        border-right: none;
        padding-right: 20px;
    }

    .filtro-menu-btn:first-child {
        padding-left: 20px;
    }

    .filtro-logo {
        width: 32px;
        height: 32px;
    }

    .filtro-menu-btn span {
        font-size: 0.7rem;
        white-space: nowrap;
    }

    .filtro-menu-btn svg {
        width: 20px;
        height: 20px;
    }

    .proyeccion-section {
        padding: 60px 0;
    }

    .proyeccion-subtitle {
        font-size: 1rem;
    }

    .categoria-jugadores {
        margin-bottom: 60px;
    }

    .categoria-badge {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .jugadores-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .jugador-proyeccion-image {
        height: 250px;
    }

    .jugador-proyeccion-info {
        padding: 20px;
    }

    .jugador-proyeccion-nombre {
        font-size: 1.2rem;
    }

    .no-jugadores-message {
        padding: 60px 20px;
    }

    .no-jugadores-message svg {
        width: 60px;
        height: 60px;
    }

    .no-jugadores-message h3 {
        font-size: 1.5rem;
    }

    .no-jugadores-message p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .filtro-menu-btn {
        padding: 18px 15px;
        font-size: 0.8rem;
        gap: 12px;
    }

    .filtro-logo {
        width: 36px;
        height: 36px;
    }

    .filtro-menu-btn svg {
        width: 24px;
        height: 24px;
    }

    .categoria-badge {
        padding: 10px 20px;
        font-size: 0.85rem;
        gap: 8px;
    }

    .categoria-badge svg {
        width: 20px;
        height: 20px;
    }
}

