/* ========================================================================
   DASHBOARD COLLAB - Mi Panel Styles
   Archivo CSS específico para dashboardCollab.html
   Limpia conflictos y fuerza el grid layout correcto
   ======================================================================== */

/* OVERRIDE: contentDetails cuando tiene .dc-dash */
.dc-dash {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    width: 100% !important;
    padding: 0 !important;
}

/* ── TOPBAR ────────────────────────────────────────────────────────── */
.dc-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding: 0 1.5rem;
}

.dc-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 500;
}

.dc-breadcrumb strong {
    color: #1e293b;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dc-filters {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.dc-filter-btn {
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 0.75rem;
    color: #64748b;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.15s;
}

.dc-filter-btn:hover,
.dc-filter-btn.active {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}

/* ── GRID CONTAINER ────────────────────────────────────────────────── */
.dc-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1rem !important;
    width: 100% !important;
    padding: 0 1.5rem;
    box-sizing: border-box !important;
}

/* ── CARD BASE ─────────────────────────────────────────────────────── */
.dc-card {
    background: #ffffff !important;
    border: 1px solid #f0f4f8 !important;
    border-radius: 10px !important;
    padding: 1.5rem !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    min-height: auto;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
    box-sizing: border-box !important;
}

.dc-card:hover {
    border-color: #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ── CARD LABEL ────────────────────────────────────────────────────── */
.dc-card-label {
    font-size: 0.6rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    color: #cbd5e1 !important;
    margin: 0 0 0.25rem 0 !important;
}

/* ── CARD ICON (top-right badge) ───────────────────────────────────── */
.dc-card-icon {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 8px;
    flex-shrink: 0;
}

/* ── BIG NUMBERS ───────────────────────────────────────────────────── */
.dc-record-num,
.dc-big-num,
.dc-big-num-blue {
    font-size: 2.5rem !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
    letter-spacing: -0.03em !important;
    margin: 0.25rem 0 0 !important;
}

.dc-record-num {
    color: #1e3a8a !important;
}

.dc-big-num {
    color: #0f172a !important;
}

.dc-big-num-blue {
    color: #1e3a8a !important;
}

/* ── BADGES (W/D/L) ────────────────────────────────────────────────── */
.dc-badges-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.25rem 0 !important;
}

.dc-badge {
    font-size: 1.5rem;
    font-weight: 800;
    padding: 0.2rem 0.55rem;
    border-radius: 10px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dc-badge-w {
    background: #dcfce7;
    color: #16a34a;
}

.dc-badge-d {
    background: #f1f5f9;
    color: #94a3b8;
}

.dc-badge-l {
    background: #fee2e2;
    color: #dc2626;
}

/* ── CARD SUBTITLE ─────────────────────────────────────────────────── */
.dc-card-sub {
    font-size: 0.7rem;
    color: #cbd5e1;
    margin: 0 !important;
    font-weight: 500;
}

/* ── INLINE ROW ────────────────────────────────────────────────────── */
.dc-inline-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.25rem 0 !important;
}

/* ── PROGRESS BAR ──────────────────────────────────────────────────── */
.dc-progress {
    height: 5px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    margin: 0.35rem 0 !important;
}

.dc-progress-fill {
    height: 100%;
    background: #3b82f6;
    border-radius: 2px;
    transition: width 0.6s ease;
}

/* ── TABLE STYLES ──────────────────────────────────────────────────── */
.dc-tbl-head {
    display: grid;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    padding: 0.5rem 0 0.35rem;
    border-bottom: 1px solid #e2e8f0;
    gap: 0.5rem;
    margin: 0.5rem 0 0.35rem !important;
}

.dc-tbl-row {
    display: grid;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid #f8fafc;
    font-size: 0.8rem;
    color: #334155;
    gap: 0.5rem;
    font-weight: 500;
}

.dc-tbl-row:last-child {
    border-bottom: none;
}

/* Grid column templates */
.dc-cols-results {
    grid-template-columns: 1fr 50px 55px;
}

.dc-cols-scorers {
    grid-template-columns: 1.2fr 45px 45px;
}

.dc-cols-training {
    grid-template-columns: 1.2fr 60px 40px;
}

/* ── SCORE BADGES ──────────────────────────────────────────────────── */
.dc-score-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.22rem 0.55rem;
    border-radius: 4px;
    text-align: center;
}

.dc-score-v {
    background: #dcfce7;
    color: #16a34a;
}

.dc-score-e {
    background: #f1f5f9;
    color: #94a3b8;
}

.dc-score-d {
    background: #fee2e2;
    color: #dc2626;
}

/* ── GOALS COMPARISON ─────────────────────────────────────────────── */
.dc-goals-wrap {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    margin-top: 0.35rem;
}

.dc-goals-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.dc-goals-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: #334155;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.dc-goals-bar-track {
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.dc-goals-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.6s ease;
}

.dc-bar-blue { background: #2f6db4; }
.dc-bar-red  { background: #ef4444; }

.dc-diff-circle {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    border: 3px solid #2f6db4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 800;
    color: #1e3a8a;
    flex-shrink: 0;
    background: #fff;
}

/* ── DISCIPLINE ───────────────────────────────────────────────────── */
.dc-disc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 0.9rem;
}

.dc-disc-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 1.15rem 0.8rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 104px;
}

.dc-disc-icon {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
    display: block;
    line-height: 1;
}

.dc-disc-num {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 0.15rem;
}

.dc-disc-lbl {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    font-weight: 600;
    margin-top: 0.15rem;
    display: block;
}

/* ── TOURNAMENTS ──────────────────────────────────────────────────── */
.dc-torneo-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f8fafc;
}

.dc-torneo-row:last-child {
    border-bottom: none;
}

.dc-torneo-dot {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.dc-torneo-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
}

.dc-torneo-sub {
    font-size: 0.68rem;
    color: #94a3b8;
    margin-top: 2px;
}

/* ── PLAYER CELL ───────────────────────────────────────────────────── */
.dc-player-cell {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.dc-player-cell > span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    color: #1e293b;
}

.dc-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 0.58rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    background: #3b82f6;
}

/* ── EMPTY STATE ───────────────────────────────────────────────────── */
.dc-empty {
    font-size: 0.75rem;
    color: #cbd5e1;
    padding: 0.75rem 0;
    text-align: center;
    font-style: italic;
    font-weight: 500;
}

/* ── PERCENTAGE COLORS ─────────────────────────────────────────────── */
.dc-pct-hi {
    color: #16a34a;
    font-weight: 700;
}

.dc-pct-mid {
    color: #ca8a04;
    font-weight: 600;
}

.dc-pct-lo {
    color: #dc2626;
    font-weight: 600;
}

/* ──────────────────────────────────────────────────────────────────── */
/* RESPONSIVE                                                            */
/* ──────────────────────────────────────────────────────────────────── */

@media (max-width: 1200px) {
    .dc-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    .dc-card {
        min-height: 180px;
    }
}

@media (max-width: 768px) {
    .dc-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
        padding: 0 1rem;
    }
    
    .dc-topbar {
        padding: 0 1rem;
    }
    
    .dc-card {
        padding: 1.25rem !important;
        min-height: 140px;
    }
    
    .dc-card-icon {
        top: 1rem;
        right: 1rem;
    }
    
    .dc-record-num,
    .dc-big-num,
    .dc-big-num-blue {
        font-size: 2.2rem !important;
    }
    
    .dc-tbl-head,
    .dc-tbl-row {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .dc-record-num,
    .dc-big-num,
    .dc-big-num-blue {
        font-size: 1.8rem !important;
    }
    
    .dc-badge {
        font-size: 0.6rem;
        padding: 0.15rem 0.4rem;
    }
    
    .dc-card {
        padding: 1rem !important;
        gap: 0.5rem !important;
    }
}
