/**
 * FC Player Shop - Barra Flutuante
 * Design: Glass Morphism + Botão com Reflexão
 * @package FCPlayerShop
 */

/* ===============================================
   BARRA FLUTUANTE - GLASS EFFECT
   =============================================== */
.fc-floating-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 0;
}

.fc-floating-bar-inner {
    background: rgba(15, 15, 20, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 -8px 32px rgba(0, 0, 0, 0.4),
        0 -2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.fc-floating-bar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* ===============================================
   LADO ESQUERDO - HOME + CARRINHO
   =============================================== */
.fc-floating-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fc-floating-icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.fc-floating-icon-btn:hover {
    background: rgba(255, 111, 0, 0.2);
    border-color: rgba(255, 111, 0, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 111, 0, 0.25);
}

.fc-floating-icon-btn img {
    width: 22px;
    height: 22px;
    opacity: 0.9;
    transition: opacity 0.25s;
}

.fc-floating-icon-btn:hover img {
    opacity: 1;
}

/* Badge do carrinho */
.fc-cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #FF6F00 0%, #E65100 100%);
    color: white;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 8px rgba(255, 111, 0, 0.5);
    animation: badgePulse 2s infinite;
}

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

/* ===============================================
   CENTRO - TOTAL
   =============================================== */
.fc-floating-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.fc-floating-total {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.fc-total-label {
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fc-total-value {
    font-size: 22px;
    font-weight: 700;
    color: #FF6F00;
    text-shadow: 0 0 20px rgba(255, 111, 0, 0.3);
}

/* ===============================================
   LADO DIREITO - BOTÃO COMPRAR
   =============================================== */
.fc-floating-right {
    display: flex;
    align-items: center;
}

.fc-floating-checkout-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 28px;
    background: linear-gradient(135deg, #FF6F00 0%, #E65100 100%);
    border: none;
    border-radius: 21px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 15px rgba(255, 111, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.fc-floating-checkout-btn:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 6px 20px rgba(255, 111, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.fc-floating-checkout-btn:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
}

.fc-floating-checkout-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

.fc-checkout-btn-text {
    position: relative;
    z-index: 2;
    font-size: 15px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Efeito de reflexão em loop */
.fc-checkout-btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 40%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0.1) 60%,
        transparent 100%
    );
    animation: shineLoop 3s infinite;
    z-index: 1;
}

@keyframes shineLoop {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

.fc-floating-checkout-btn:disabled .fc-checkout-btn-shine {
    animation: none;
}

/* ===============================================
   RESPONSIVO - MOBILE
   =============================================== */
@media (max-width: 768px) {
    .fc-floating-bar-container {
        height: 50px;
        padding: 0 12px;
        gap: 10px;
    }
    
    .fc-floating-icon-btn {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }
    
    .fc-floating-icon-btn img {
        width: 20px;
        height: 20px;
    }
    
    .fc-cart-badge {
        min-width: 18px;
        height: 18px;
        font-size: 10px;
        top: -5px;
        right: -5px;
    }
    
    .fc-total-label {
        font-size: 9px;
    }
    
    .fc-total-value {
        font-size: 18px;
    }
    
    .fc-floating-checkout-btn {
        height: 38px;
        padding: 0 20px;
        border-radius: 19px;
    }
    
    .fc-checkout-btn-text {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .fc-floating-bar-container {
        height: 48px;
        padding: 0 10px;
        gap: 8px;
    }
    
    .fc-floating-left {
        gap: 6px;
    }
    
    .fc-floating-icon-btn {
        width: 36px;
        height: 36px;
    }
    
    .fc-floating-icon-btn img {
        width: 18px;
        height: 18px;
    }
    
    .fc-total-value {
        font-size: 16px;
    }
    
    .fc-floating-checkout-btn {
        height: 36px;
        padding: 0 16px;
    }
    
    .fc-checkout-btn-text {
        font-size: 12px;
    }
}

/* ===============================================
   AJUSTE DO BODY PARA ESPAÇO DA BARRA
   =============================================== */
body.fc-player-shop-page {
    padding-bottom: 70px !important;
}

@media (max-width: 768px) {
    body.fc-player-shop-page {
        padding-bottom: 60px !important;
    }
}

@media (max-width: 480px) {
    body.fc-player-shop-page {
        padding-bottom: 56px !important;
    }
}
