/* static/css/leagues.css */

/* --- Utilitários --- */
.hidden { display: none !important; }

/* --- Estilos da LOJA --- */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.store-card {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.store-card:hover { border-color: #22c55e; transform: translateY(-2px); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.store-card.featured { border-color: #ca8a04; background-color: #fefce8; }
.store-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #ca8a04;
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-bottom-left-radius: 0.5rem;
}

.store-icon-bg {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.store-coins { font-weight: 700; color: #374151; font-size: 1rem; }
.store-price { color: #15803d; font-weight: 800; font-size: 1.25rem; }


/* --- CARD DE LIGA MODERNO --- */
.league-card-modern {
    background-color: white;
    border-radius: 1.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #f3f4f6;
    margin-bottom: 1.25rem;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.league-card-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Header do Card */
.card-header {
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: #ffffff;
}

.card-header.enrolled {
    background: linear-gradient(to right, #f0fdf4, #ffffff);
    border-bottom: 1px solid #f0fdf4;
}

.card-logo {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
    background-color: white;
    padding: 2px;
}

.card-title-box {
    flex: 1;
}

.card-title-box h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

/* Badges */
.status-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
    letter-spacing: 0.05em;
}
.status-badge.active {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.status-badge.available {
    background-color: #f3f4f6;
    color: #6b7280;
}

/* Grid de Estatísticas (Para inscritos) */
.card-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
    padding: 0 1.25rem 1rem 1.25rem;
    text-align: center;
    box-sizing: border-box;
}

.stat-item {
    background-color: #f9fafb;
    border-radius: 0.75rem;
    padding: 0.5rem;
    border: 1px solid #f3f4f6;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-label {
    font-size: 0.65rem;
    color: #9ca3af;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.stat-value {
    font-size: 0.95rem;
    font-weight: 800;
    color: #374151;
}
.stat-value.highlight { color: #15803d; }
.stat-value.prize { color: #ca8a04; }

/* Info Row (Para não inscritos) */
.card-info-row {
    padding: 0 1.25rem 0.75rem 1.25rem;
    box-sizing: border-box;
}
.card-info-row p {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}
.players-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.players-count svg { width: 14px; height: 14px; }

/* Botões de Ação */
.card-action-btn {
    width: 100%;
    padding: 0.875rem 1rem;
    border: none;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    box-sizing: border-box;
}

.card-action-btn:active {
    transform: scale(0.98);
}

.enrolled-btn {
    background-color: #15803d;
    color: white;
    box-shadow: 0 4px 12px rgba(21, 128, 61, 0.25);
}
.enrolled-btn:hover { background-color: #166534; box-shadow: 0 6px 16px rgba(21, 128, 61, 0.35); }

.join-btn {
    background-color: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0 !important;
}
.join-btn:hover { background-color: #dcfce7; }

/* --- Modais --- */
.modal-overlay { background-color: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px); }
.modal-box { background-color: white; border-radius: 1rem; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); padding: 1.5rem; width: 100%; max-width: 28rem; position: relative; }
.modal-close-btn { position: absolute; top: 1rem; right: 1rem; color: #9ca3af; background: none; border: none; cursor: pointer; }
.btn-confirm { width: 100%; padding: 0.75rem 1rem; border-radius: 0.5rem; font-weight: 700; color: white; background-color: #15803d; border: none; cursor: pointer; }
.btn-cancel { width: 100%; padding: 0.5rem; margin-top: 0.5rem; font-size: 0.875rem; font-weight: 500; color: #6b7280; background: transparent; border: none; cursor: pointer; }