﻿/* ESTILOS LOCALES FC 26 (MI PERFIL) */
:root {
    --fc-accent: #31ed8c;
    --fc-dark-bg: #101216;
    --fc-panel-bg: rgba(22, 24, 29, 0.95);
    --fc-border: rgba(255, 255, 255, 0.1);
    --fc-text-main: #ffffff;
    --fc-text-muted: #b0b3b8;
}

/* Animaciones */
.fc-entrance {
    animation: fadeInUp 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- PANEL PRINCIPAL --- */
.fc-panel {
    background: var(--fc-panel-bg);
    border: 1px solid var(--fc-border);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    height: 100%;
    overflow: hidden;
}

/* --- TARJETA DE JUGADOR (LARGE) --- */
.player-profile-card-large {
    width: 100%;
    max-width: 340px;
    aspect-ratio: 2 / 3;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    cursor: pointer;
}

/* Base de la Carta */
.card-root {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 12px;
    box-shadow: 0 15px 35px -5px rgba(0,0,0,0.8);
    transition: transform 0.1s ease-out, border-color 0.3s;
    transform-style: preserve-3d;
    transform: rotateX(var(--rot-x, 0deg)) rotateY(var(--rot-y, 0deg)) scale3d(1, 1, 1);
    background-color: #1a1d24;
    border: 1px solid var(--fc-border);
    overflow: hidden;
    transition: transform 0.15s ease-out, box-shadow 0.3s ease-out, border-color 0.3s !important; /* Ligeramente más suave para móviles */
}

.player-profile-card-large:hover .card-root {
    border-color: var(--fc-accent);
    transform: rotateX(var(--rot-x, 0deg)) rotateY(var(--rot-y, 0deg)) scale3d(1.05, 1.05, 1.05) translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* Fondo de imagen de la Carta */
.card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    background: linear-gradient(180deg, #2a2d35 0%, #16181d 100%);
}

/* Definiciones de Fondos Base para Rarezas (Solo actúan si hay data-rarity y no hay imagen custom que lo tape) */
[data-rarity="Common"] .card-root {
    border-color: #64748b;
}

[data-rarity="Common"] .card-bg {
    background-image: url("https://img.freepik.com/foto-gratis/textura-fondo-gris-oscuro_1253-15.jpg");
}

[data-rarity="Bronze"] .card-root {
    border-color: #7c2d12;
}

[data-rarity="Bronze"] .card-bg {
    background-image: url('../images/Cards/bronce.png');
    background-size: cover;
}

[data-rarity="Silver"] .card-root {
    border-color: #94a3b8;
}

[data-rarity="Silver"] .card-bg {
    background-image: url('../images/Cards/plata.png');
    background-size: cover;
}

[data-rarity="Gold"] .card-root {
    border-color: #ca8a04;
}

[data-rarity="Gold"] .card-bg {
    background-image: url('../images/Cards/oro.png');
    background-size: cover;
}

[data-rarity="Rare"] .card-root {
    border-color: #06b6d4;
}

[data-rarity="Rare"] .card-bg {
    background-image: url('../images/Cards/rare.png');
    background-size: cover;
}

[data-rarity="Epic"] .card-root {
    border-color: #c084fc;
}

[data-rarity="Epic"] .card-bg {
    background-image: url('../images/Cards/epic.png');
    background-size: cover;
}

[data-rarity="TimeWarp"] .card-root {
    border-color: #a855f7;
}

[data-rarity="TimeWarp"] .card-bg {
    background-image: url('../images/Cards/TimeWarp.png');
    background-size: cover;
}

[data-rarity="Legend"] .card-root {
    border-color: #cbd5e1;
}

[data-rarity="Legend"] .card-bg {
    background-image: url('../images/Cards/legend.png');
    background-size: cover;
}

[data-rarity="TOTW"] .card-root {
    border-color: #ca8a04;
    background: #000;
}

[data-rarity="TOTW"] .card-bg {
    background-image: url('../images/Cards/towt.png');
    background-size: cover;
}

/* Foto del Jugador */
.card-player-img {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 55%;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
}

/* Logo Superior Derecho */
.card-gl-logo {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: auto;
    z-index: 30;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
}

/* Badge de Rating */
.card-rating-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0,0,0,0.6);
    border: 1px solid var(--fc-border);
    padding: 5px 10px;
    border-radius: 6px;
    text-align: center;
    z-index: 30;
    backdrop-filter: blur(4px);
}

.rating-value {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--fc-accent);
    line-height: 1;
}

.rating-pos {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
}

/* Info Inferior */
.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(0deg, #101216 20%, rgba(16, 18, 22, 0.95) 85%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    z-index: 30;
}

.card-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.card-gamertag {
    text-align: center;
    color: var(--fc-accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

/* Redes Sociales en Tarjeta */
.card-social-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.social-icon-sm {
    color: #b0b3b8;
    font-size: 1rem;
    transition: color 0.2s, transform 0.2s;
    text-decoration: none;
}

    .social-icon-sm:hover {
        color: var(--fc-accent);
        transform: scale(1.2);
    }

/* --- PESTAÑAS (Nav Pills Dark) --- */
.fc-nav-pills {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
}

    .fc-nav-pills::-webkit-scrollbar {
        height: 4px;
    }

    .fc-nav-pills::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.2);
        border-radius: 4px;
    }

    .fc-nav-pills .nav-link {
        background: transparent;
        color: var(--fc-text-muted);
        font-weight: 600;
        text-transform: uppercase;
        border-radius: 4px;
        padding: 0.8rem 1.2rem;
        transition: all 0.2s;
        border: 1px solid transparent;
        white-space: nowrap;
    }

        .fc-nav-pills .nav-link:hover {
            color: #fff;
            background: rgba(255,255,255,0.05);
        }

        .fc-nav-pills .nav-link.active {
            background: rgba(49, 237, 140, 0.1);
            color: var(--fc-accent);
            border-color: var(--fc-accent);
        }

.nav-badge {
    background: #ff4b4b;
    color: white;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
    vertical-align: text-top;
}

/* --- STATS WIDGETS --- */
.stat-bar-container {
    margin-bottom: 1.2rem;
}

.stat-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

.stat-progress {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    border-radius: 3px;
}

.fill-green {
    background: var(--fc-accent);
    box-shadow: 0 0 10px rgba(49, 237, 140, 0.4);
}

.fill-cyan {
    background: #00c6ff;
    box-shadow: 0 0 10px rgba(0, 198, 255, 0.4);
}

.fill-yellow {
    background: #ffc107;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.4);
}

/* --- OFERTAS (TICKETS) --- */
.offer-ticket {
    background: rgba(255,255,255,0.03);
    border-left: 4px solid var(--fc-accent);
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.2s;
}

    .offer-ticket:hover {
        background: rgba(255,255,255,0.05);
        transform: translateX(5px);
    }

.btn-action {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.2s;
}

.btn-accept {
    background: var(--fc-accent);
    color: #101216;
}

    .btn-accept:hover {
        transform: scale(1.1);
        box-shadow: 0 0 15px rgba(49,237,140,0.5);
    }

.btn-reject {
    background: transparent;
    border: 1px solid #ff4b4b;
    color: #ff4b4b;
}

    .btn-reject:hover {
        background: #ff4b4b;
        color: white;
    }

/* --- TARJETA DE CLUB (SOLICITUD) --- */
.club-request-card {
    background: linear-gradient(180deg, #1f2329 0%, #16181d 100%);
    border: 1px solid var(--fc-border);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
    height: 100%;
}

    .club-request-card:hover {
        transform: translateY(-5px);
        border-color: var(--fc-accent);
    }

/* --- FORMULARIOS ESTILO FC --- */
.fc-form-group {
    margin-bottom: 1.5rem;
}

.fc-label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--fc-text-muted);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.fc-form-control {
    background: rgba(16, 18, 22, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    color: #fff;
    padding: 0.8rem 1rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    width: 100%;
    transition: all 0.3s ease;
}

    .fc-form-control:focus {
        background: rgba(0, 0, 0, 0.8);
        border-color: var(--fc-accent);
        box-shadow: -4px 0 0 var(--fc-accent);
        outline: none;
    }

    .fc-form-control::placeholder {
        color: rgba(255, 255, 255, 0.2);
        text-transform: uppercase;
    }

select.fc-form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2331ed8c' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
}

.btn-fc-main {
    background: var(--fc-accent);
    color: #101216;
    font-weight: 800;
    text-transform: uppercase;
    border: none;
    padding: 1rem;
    width: 100%;
    border-radius: 2px;
    letter-spacing: 2px;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 95% 100%, 0 100%);
    transition: all 0.3s ease;
}

    .btn-fc-main:hover {
        background: #fff;
        box-shadow: 0 0 30px rgba(49,237,140,0.4);
        transform: translateY(-2px);
    }

.btn-fc-primary {
    background: var(--fc-accent);
    color: #101216;
    font-weight: 800;
    text-transform: uppercase;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 2px;
    letter-spacing: 1px;
    clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
    transition: all 0.2s;
}

    .btn-fc-primary:hover {
        background: #fff;
        box-shadow: 0 0 20px rgba(49,237,140,0.4);
        transform: translateY(-2px);
    }

/* ESTILOS DE CARTAS HOLOGRÁFICAS (REUTILIZADOS) */
.fn-item-container {
    position: relative;
}

.fn-rarity-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 110%;
    background: radial-gradient(ellipse at center, var(--glow-color) 0%, transparent 60%);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

.ut-card {
    width: 100%;
    aspect-ratio: 0.714;
    perspective: 1000px;
    position: relative;
    z-index: 1;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent; /* Evita parpadeo azul en móviles */
    touch-action: none;
}

    .ut-card:hover {
        z-index: 50;
    }

/* --- CAPAS HOLOGRÁFICAS --- */
.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.2);
    mix-blend-mode: multiply;
    z-index: 1;
    pointer-events: none;
}

[data-rarity="TOTW"] .card-overlay {
    background: rgba(0,0,0,0.5);
    mix-blend-mode: normal;
}

.fx-layer {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    pointer-events: none;
    opacity: var(--opacity, 0);
    z-index: 20;
    mix-blend-mode: screen;
}

[data-rarity="Common"] .fx-silver {
    display: block;
    mix-blend-mode: overlay;
    opacity: calc(var(--opacity, 0) * 0.5);
}

[data-rarity="Bronze"] .fx-inferno {
    display: block;
    mix-blend-mode: color-dodge;
    background: repeating-linear-gradient(calc(var(--pointer-num-x) * 3deg), transparent, rgba(255, 100, 0, 0.4) 10px, transparent 20px), radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(255, 150, 0, 0.6), transparent 50%);
}

[data-rarity="Silver"] .fx-silver {
    display: block;
    mix-blend-mode: hard-light;
    background: linear-gradient(160deg, transparent 40%, rgba(255, 255, 255, 0.4) 45%, rgba(255, 255, 255, 0.9) 50%, rgba(255, 255, 255, 0.4) 55%, transparent 60%);
    background-size: 300% 300%;
    background-position: var(--pointer-x) var(--pointer-y);
}

[data-rarity="Gold"] .fx-gold {
    display: block;
    mix-blend-mode: overlay;
    background: repeating-linear-gradient(calc(var(--pointer-num-x) * 3deg), transparent, rgba(255, 215, 0, 0.4) 10px, transparent 20px), radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(255, 215, 0, 0.6), transparent 50%);
}

[data-rarity="Rare"] .fx-water {
    display: block;
    mix-blend-mode: overlay;
    background: repeating-radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(0,255,255,0.2) 0%, rgba(0,100,255,0.3) 5%, transparent 10%, rgba(0,255,255,0.1) 15%);
}

[data-rarity="Epic"] .fx-bubble, [data-rarity="TimeWarp"] .fx-bubble {
    display: block;
    mix-blend-mode: screen;
    background: radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(139, 92, 246, 0.7), transparent 35%), radial-gradient(circle at calc(100% - var(--pointer-x)) calc(100% - var(--pointer-y)), rgba(76, 29, 149, 0.7), transparent 35%);
}

[data-rarity="Legend"] .fx-legend-dust {
    display: block;
    mix-blend-mode: screen;
    background-image: radial-gradient(circle, #fbbf24 1.5px, transparent 2px);
    background-size: 15px 15px;
    background-position: calc(var(--pointer-num-x) * 1.5px) calc(var(--pointer-num-y) * 1.5px);
    opacity: calc(var(--opacity, 0) * 0.8);
}

[data-rarity="Legend"] .fx-legend-light {
    display: block;
    mix-blend-mode: soft-light;
    background: radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(255,255,255,0.9) 0%, transparent 60%);
}

[data-rarity="TOTW"] .fx-rainbow {
    display: block;
    mix-blend-mode: color-dodge;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 20%, #a18cd1 40%, #fbc2eb 60%, #8fd3f4 80%, #ff9a9e 100%);
    background-size: 300% 300%;
    background-position: var(--pointer-x) var(--pointer-y);
    filter: brightness(1.1) contrast(1.1);
    opacity: calc(var(--opacity, 0) * 0.9);
}

.card-border {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.5);
    z-index: 50;
    pointer-events: none;
    opacity: calc(var(--opacity, 0) * 0.6);
    transition: opacity 0.3s;
}

[data-rarity="TOTW"] .card-border {
    border-color: #facc15;
}

[data-rarity="Legend"] .card-border {
    border-color: #bfdbfe;
}

[data-rarity="Epic"] .card-border {
    border-color: #d8b4fe;
}
