/**
 * FC Player Shop - Estilos Principais
 * Cores: #0A0A0A (base) e #FF6F00 (destaque)
 * Grid: 4 colunas (PC) / 2 colunas (Mobile)
 * @package FCPlayerShop
 */

/* ===============================================
   VARIÁVEIS
   =============================================== */
:root {
    --fc-primary: #FF6F00;
    --fc-primary-hover: #E65100;
    --fc-primary-light: #FF8F00;
    --fc-danger: #D32F2F;
    --fc-danger-hover: #B71C1C;
    --fc-dark: #0A0A0A;
    --fc-dark-light: #1A1A1A;
    --fc-dark-lighter: #2A2A2A;
    --fc-light: #F5F5F5;
    --fc-border: #333333;
    --fc-text-light: #CCCCCC;
    --fc-shadow: rgba(0, 0, 0, 0.3);
    --fc-shadow-lg: rgba(0, 0, 0, 0.5);
}

/* ===============================================
   BOTÕES
   =============================================== */
   
   
  
   
   
.fc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fc-btn-primary {
    background: var(--fc-primary);
    color: white;
}

.fc-btn-primary:hover {
    background: var(--fc-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 111, 0, 0.4);
}

.fc-btn-secondary {
    background: var(--fc-dark-lighter);
    color: white;
    border: 2px solid var(--fc-border);
}

.fc-btn-secondary:hover {
    background: var(--fc-dark-light);
    border-color: var(--fc-primary);
}

.fc-btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.fc-btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.fc-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ===============================================
   NOTICES
   =============================================== */
.fc-shop-notice {
    padding: 24px;
    border-radius: 12px;
    margin: 32px 0;
    text-align: center;
    background: var(--fc-dark-light);
    border: 2px solid var(--fc-border);
    color: var(--fc-text-light);
}

.fc-shop-error {
    background: rgba(211, 47, 47, 0.1);
    border-color: var(--fc-danger);
    color: #FFCDD2;
}

.fc-shop-warning {
    background: rgba(255, 111, 0, 0.1);
    border-color: var(--fc-primary);
    color: #FFE0B2;
}

.fc-notice-subtitle {
    margin-top: 8px;
    font-size: 14px;
    opacity: 0.8;
}

/* ===============================================
   BARRA DE BUSCA
   =============================================== */
.fc-search-section {
    margin-bottom: 48px;
}

.fc-search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.fc-search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--fc-dark-light);
    border: 2px solid var(--fc-border);
    border-radius: 12px;
    padding: 4px;
    transition: all 0.3s ease;
}

.fc-search-input-group:focus-within {
    border-color: var(--fc-primary);
    box-shadow: 0 0 0 3px rgba(255, 111, 0, 0.1);
}

.fc-search-icon {
    position: absolute;
    left: 16px;
    color: var(--fc-text-light);
    pointer-events: none;
}

.fc-search-input {
    flex: 1;
    padding: 14px 48px;
    background: transparent;
    border: none;
    color: white;
    font-size: 16px;
    outline: none;
}

.fc-search-input::placeholder {
    color: var(--fc-text-light);
    opacity: 0.6;
}

.fc-search-clear {
    position: absolute;
    right: 12px;
    width: 32px;
    height: 32px;
    background: var(--fc-dark-lighter);
    border: none;
    border-radius: 50%;
    color: var(--fc-text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.fc-search-clear:hover {
    background: var(--fc-danger);
    color: white;
}

.fc-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    max-height: 400px;
    overflow-y: auto;
    background: var(--fc-dark-light);
    border: 2px solid var(--fc-border);
    border-radius: 12px;
    z-index: 1000;
    box-shadow: 0 8px 24px var(--fc-shadow-lg);
}

.fc-search-results::-webkit-scrollbar {
    width: 8px;
}

.fc-search-results::-webkit-scrollbar-track {
    background: var(--fc-dark-lighter);
    border-radius: 4px;
}

.fc-search-results::-webkit-scrollbar-thumb {
    background: var(--fc-primary);
    border-radius: 4px;
}

.fc-search-results::-webkit-scrollbar-thumb:hover {
    background: var(--fc-primary-hover);
}

.fc-search-result-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--fc-border);
}

.fc-search-result-item:last-child {
    border-bottom: none;
}

.fc-search-result-item:hover {
    background: var(--fc-dark-lighter);
}

.fc-search-result-image {
    width: 60px;
    height: 60px;
    background: var(--fc-dark-lighter);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.fc-search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fc-search-result-info {
    flex: 1;
    min-width: 0;
}

.fc-search-result-name {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fc-search-result-meta {
    display: flex;
    gap: 8px;
    font-size: 14px;
}

.fc-search-result-rating {
    padding: 2px 8px;
    background: var(--fc-dark-lighter);
    border-radius: 4px;
    font-weight: 700;
    color: white;
}

.fc-search-result-position {
    padding: 2px 8px;
    background: var(--fc-primary);
    border-radius: 4px;
    font-weight: 600;
    color: white;
}

.fc-search-result-version {
    padding: 2px 8px;
    background: var(--fc-dark-lighter);
    border-radius: 4px;
    font-weight: 500;
    color: var(--fc-text-light);
    font-size: 12px;
}

.fc-search-loading {
    padding: 24px;
    text-align: center;
    color: var(--fc-text-light);
}

.fc-search-empty {
    padding: 24px;
    text-align: center;
    color: var(--fc-text-light);
}

.fc-search-error {
    padding: 24px;
    text-align: center;
    color: var(--fc-danger);
}

/* ===============================================
   POPUP MODAL
   =============================================== */
.fc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    animation: fadeInModal 0.3s ease forwards;
}

@keyframes fadeInModal {
    to { opacity: 1; }
}

.fc-modal-container {
    background: var(--fc-dark-light);
    border: 2px solid var(--fc-border);
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUpModal 0.3s ease;
}

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

.fc-modal-header {
    padding: 24px;
    border-bottom: 2px solid var(--fc-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fc-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin: 0;
}

.fc-modal-close {
    
        border-radius: 5px;
   
    background: var(--fc-dark-lighter);
    border: 1px solid var(--fc-border);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.fc-modal-close:hover {
    background: var(--fc-danger);
    border-color: var(--fc-danger);
}

.fc-modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fc-modal-loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--fc-text-light);
}

.fc-modal-error {
    text-align: center;
    padding: 40px 20px;
    color: var(--fc-danger);
}

.fc-modal-player-card {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.fc-modal-price-warning {
    background: rgba(255, 111, 0, 0.1);
    border: 2px solid var(--fc-primary);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    text-align: center;
}

.fc-modal-price-warning-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.fc-modal-price-warning-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--fc-primary);
    margin-bottom: 8px;
}

.fc-modal-price-warning-text {
    font-size: 14px;
    color: var(--fc-text-light);
}

.fc-modal-price-info {
    background: var(--fc-dark-lighter);
    border-radius: 12px;
    padding: 10px 50px;
    margin-bottom: 24px;
}

.fc-modal-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.fc-modal-price-row:last-child {
    margin-bottom: 0;
    padding-top: 12px;
    border-top: 1px solid var(--fc-border);
}

.fc-modal-price-label {
    font-size: 14px;
    color: var(--fc-text-light);
}

.fc-modal-price-value-coins {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.fc-modal-price-value-brl {
    font-size: 20px;
    font-weight: 700;
    color: var(--fc-primary);
}

.fc-modal-actions {
    display: flex;
    gap: 12px;
}

.fc-modal-actions .fc-btn {
    flex: 1;
}

@media (max-width: 768px) {
    .fc-modal-container {
        max-width: 100%;
        margin: 0;
        border-radius: 16px 16px 0 0;
        max-height: 85vh;
    }
}

/* ===============================================
   DETALHES DO SQUAD
   =============================================== */
.fc-squad-detail-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 16px 120px;
}

.fc-squad-detail-header {
    margin-bottom: 48px;
}

.fc-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--fc-dark-light);
    border: 2px solid var(--fc-border);
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.fc-back-btn:hover {
    background: var(--fc-dark-lighter);
    border-color: var(--fc-primary);
}

.fc-squad-title-section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.fc-squad-title-section h1 {
    font-size: 38px;
    font-weight: 700;
    color: white;
    margin: 0;
}

.fc-squad-date-badge {
    padding: 6px 16px;
    background: var(--fc-primary);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.fc-squad-info {
    color: var(--fc-text-light);
    font-size: 16px;
}

.fc-squad-player-count {
    font-weight: 600;
}

/* ===============================================
   RESPONSIVIDADE
   =============================================== */
@media (max-width: 1200px) {
    .fc-squads-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .fc-players-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .fc-squads-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fc-players-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .fc-squads-header h1 {
        font-size: 32px;
    }
    
    .fc-squad-title-section {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .fc-squad-title-section h1 {
        font-size: 28px;
    }
    
    .fc-cart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .fc-cart-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .fc-squads-grid {
        grid-template-columns: 1fr;
    }
    .fc-modal-player-card {
    max-width: 60%;
}
    .fc-players-grid {
        grid-template-columns: 1fr;
    }
}

/* ===============================================
   ANIMAÇÕES
   =============================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fc-player-item,
.fc-squad-card {
    animation: fadeIn 0.4s ease;
}

.fc-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
