/* ============================================
   PeladaCS Manager - Ultra Minimalist List Style
   ============================================ */

/* Base container overrides */
.app-dashboard-glance {
    --inicio-estadio-altura: 400px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    perspective: 900px;
    background:
        linear-gradient(30deg,
            var(--inicio-primary-dark) 0%,
            var(--inicio-primary-deep) 68%,
            var(--inicio-primary-black) 100%)
        center var(--inicio-estadio-altura) / 100% calc(100% - var(--inicio-estadio-altura)) no-repeat,
        #03060c;
    color: #e4e4e7;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.app-dashboard-glance::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    z-index: 0;
    height: var(--inicio-estadio-altura);
    pointer-events: none;
    background: var(--inicio-estadio-bg) center top / 100% 100% no-repeat;
}

.app-dashboard-glance > * {
    position: relative;
    z-index: 1;
}

.inicio-clube-escudo {
    width: 76px;
    height: 88px;
    display: grid;
    place-items: center;
}

.inicio-clube-escudo img {
    display: block;
    width: 72px;
    height: 84px;
    object-fit: contain;
    filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.52));
}

/* Specific spacing for the image-accurate grid */
.dashboard-elenco-stats > div {
    display: flex;
    align-items: center;
}

/* Custom border for the vertical divider in the list */
.border-l-zinc-divider {
    border-left: 1px solid rgba(24, 24, 27, 0.5);
}

/* Gestão: mesma malha de divisórias usada no bloco Elenco. */
.inicio-highlight-grid {
    gap: 0.65rem;
}

.inicio-highlight-grid > * {
    min-width: 0;
    min-height: 78px;
    padding: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 0.8rem;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.inicio-management-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
}

.inicio-management-item {
    min-width: 0;
    min-height: 128px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.1rem 0.5rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 0.8rem;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
    text-align: center;
}

.inicio-tournaments {
    padding-top: 0;
}

.inicio-torneios-resumo {
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.inicio-torneios-resumo--oportunidade {
    border-color: rgba(59, 130, 246, 0.48);
    background: rgba(30, 64, 175, 0.14);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.18), 0 0 0 1px rgba(59, 130, 246, 0.14) inset;
}

/* Próxima partida: primeiro card do bloco Elenco. Ganha destaque quando a
   partida é hoje, para chamar atenção sem depender do usuário abrir o modal. */
.inicio-proxima-partida {
    min-height: 72px;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 0.8rem;
    background: rgba(15, 23, 42, 0.86);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.inicio-proxima-partida:hover {
    border-color: color-mix(in srgb, var(--inicio-primary, #3b82f6) 48%, rgba(148, 163, 184, 0.22));
    background: rgba(30, 41, 59, 0.92);
}

.inicio-proxima-partida:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--inicio-primary, #3b82f6) 72%, white);
    outline-offset: 2px;
}

.inicio-proxima-partida--problema {
    border-color: rgba(239, 68, 68, 0.55);
    background: rgba(127, 29, 29, 0.22);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.28), 0 0 0 1px rgba(239, 68, 68, 0.25) inset;
    animation: inicio-proxima-partida-pulse 2.4s ease-in-out infinite;
}

.inicio-proxima-partida--problema:hover {
    border-color: rgba(239, 68, 68, 0.8);
    background: rgba(127, 29, 29, 0.34);
}

.inicio-proxima-partida--pronta {
    border-color: rgba(34, 197, 94, 0.58);
    background: rgba(20, 83, 45, 0.22);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.24), 0 0 0 1px rgba(34, 197, 94, 0.22) inset;
}

.inicio-proxima-partida--pronta:hover {
    border-color: rgba(34, 197, 94, 0.82);
    background: rgba(20, 83, 45, 0.34);
}

.inicio-proxima-partida__hoje {
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(148, 163, 184, 0.12);
    color: #cbd5e1;
}

.inicio-proxima-partida--problema .inicio-proxima-partida__hoje {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

.inicio-proxima-partida--pronta .inicio-proxima-partida__hoje {
    border-color: rgba(34, 197, 94, 0.42);
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
}

.inicio-escalacao-ativa {
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.inicio-escalacao-ativa--problema {
    margin-inline: -0.75rem;
    padding-inline: 0.75rem;
    border-color: rgba(239, 68, 68, 0.48);
    border-radius: 0.75rem;
    background: rgba(127, 29, 29, 0.18);
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.18) inset;
}

@keyframes inicio-proxima-partida-pulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(239, 68, 68, 0.28), 0 0 0 1px rgba(239, 68, 68, 0.25) inset; }
    50% { box-shadow: 0 8px 28px rgba(239, 68, 68, 0.42), 0 0 0 1px rgba(239, 68, 68, 0.4) inset; }
}

.inicio-highlight-card--wide {
    min-height: 92px;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 0.8rem;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.inicio-highlight-grid > button,
.inicio-management-item,
.inicio-highlight-card--wide {
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.inicio-highlight-grid > button:hover,
.inicio-management-item:hover,
.inicio-highlight-card--wide:hover {
    border-color: color-mix(in srgb, var(--inicio-primary, #3b82f6) 48%, rgba(148, 163, 184, 0.22));
    background: rgba(30, 41, 59, 0.82);
}

.inicio-highlight-grid > button:focus-visible,
.inicio-management-item:focus-visible,
.inicio-highlight-card--wide:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--inicio-primary, #3b82f6) 72%, white);
    outline-offset: 2px;
}

.inicio-management-item__content {
    width: 100%;
    min-width: 0;
    text-align: center;
}

.inicio-management-item__content > .flex {
    justify-content: center;
    display: none;
}

.inicio-management-item[data-tone]:not([data-tone="ok"]) .inicio-management-item__content > .flex {
    display: flex;
}

.inicio-management-item [data-glance-status] {
    color: #ef4444;
    font-size: .8rem;
}

.inicio-modal-list {
    border-block: 1px solid #27272a;
    color: #d4d4d8;
}

.inicio-modal-list--matches {
    border-block: 0;
}

.inicio-modal-item + .inicio-modal-item {
    border-top: 1px solid #27272a;
}

.inicio-modal-item {
    padding: 1rem 0;
}

.inicio-modal-item__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.inicio-modal-item__title {
    color: #f4f4f5;
}

.inicio-modal-item__meta {
    flex-shrink: 0;
    color: #71717a;
    font-size: 0.625rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.inicio-modal-item__description {
    margin-top: 0.5rem;
    color: #71717a;
    font-size: 0.75rem;
    line-height: 1.625;
}

.inicio-modal-state {
    padding: 1.25rem 0;
    color: #71717a;
    font-size: 0.875rem;
    text-align: center;
}

.inicio-torneios-modal-list {
    display: grid;
    gap: .75rem;
}

.inicio-torneio-modal-card {
    display: flex;
    gap: .8rem;
    padding: .9rem;
    border: 1px solid rgba(63, 63, 70, .8);
    border-radius: .85rem;
    background: linear-gradient(135deg, rgba(24, 24, 27, .92), rgba(9, 9, 11, .82));
}

.inicio-torneio-modal-card__icon {
    display: grid;
    flex: 0 0 auto;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    border: 1px solid rgba(113, 113, 122, .45);
    border-radius: .7rem;
    background: rgba(39, 39, 42, .85);
    color: #d4d4d8;
}

.inicio-torneio-modal-card__main { min-width: 0; flex: 1; }
.inicio-torneio-modal-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.inicio-torneio-modal-card__head strong { color: #fafafa; font-size: .875rem; line-height: 1.3; }
.inicio-torneio-modal-card__head span { flex: 0 0 auto; font-size: .6rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.inicio-torneio-modal-card__main > p { margin: .3rem 0 0; color: #a1a1aa; font-size: .72rem; line-height: 1.5; }

.inicio-torneio-modal-card--joined { border-color: rgba(34, 197, 94, .24); }
.inicio-torneio-modal-card--joined .inicio-torneio-modal-card__icon { border-color: rgba(34, 197, 94, .35); background: rgba(22, 101, 52, .2); color: #86efac; }
.inicio-torneio-modal-card--joined .inicio-torneio-modal-card__head span { color: #86efac; }

.inicio-torneio-modal-card--open { border-color: rgba(59, 130, 246, .3); box-shadow: inset 0 1px 0 rgba(96, 165, 250, .12); }
.inicio-torneio-modal-card--open .inicio-torneio-modal-card__icon { border-color: rgba(59, 130, 246, .42); background: rgba(30, 58, 138, .26); color: #93c5fd; }
.inicio-torneio-modal-card--open .inicio-torneio-modal-card__head span { color: #93c5fd; }

.inicio-torneio-modal-card--blocked {
    border-color: rgba(245, 158, 11, .62);
    background: linear-gradient(135deg, rgba(120, 53, 15, .25), rgba(24, 24, 27, .94));
    box-shadow: 0 0 0 1px rgba(251, 191, 36, .1), 0 0 1.5rem rgba(245, 158, 11, .12);
}
.inicio-torneio-modal-card--blocked .inicio-torneio-modal-card__icon { border-color: rgba(251, 191, 36, .66); background: rgba(146, 64, 14, .35); color: #fcd34d; }
.inicio-torneio-modal-card--blocked .inicio-torneio-modal-card__head span { color: #fcd34d; }
.inicio-torneio-modal-card__block { display: flex; gap: .4rem; margin-top: .65rem; }
.inicio-torneio-modal-card__requirement {
    display: inline-grid;
    min-width: 2rem;
    height: 1.45rem;
    padding: 0 .42rem;
    place-items: center;
    border: 1px solid;
    border-radius: .4rem;
    font-size: .62rem;
    font-weight: 900;
    line-height: 1;
}
.inicio-torneio-modal-card__requirement.is-valid { border-color: rgba(34, 197, 94, .48); background: rgba(22, 101, 52, .3); color: #86efac; }
.inicio-torneio-modal-card__requirement.is-blocked { border-color: rgba(239, 68, 68, .55); background: rgba(127, 29, 29, .34); color: #fca5a5; }
.inicio-torneio-modal-card__action { display: inline-flex; align-items: center; gap: .38rem; margin-top: .75rem; color: #bfdbfe; font-size: .7rem; font-weight: 800; }
.inicio-torneio-modal-card--blocked .inicio-torneio-modal-card__action { color: #fde68a; }

/* Icon opacity and color */
.icon-minimal {
    opacity: 0.4;
    color: #3b82f6;
}

/* Badge and Status dots */
.status-dot-glow {
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.alert-badge-glow {
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

/* Typography specifics */
.text-xxs {
    font-size: 9px;
}

.tracking-ultra-wide {
    letter-spacing: 0.25em;
}

@media (max-width: 480px) {
    .inicio-clube-escudo { width: 66px; height: 78px; }
    .inicio-clube-escudo img { width: 62px; height: 74px; }
    .inicio-highlight-grid,
    .inicio-management-grid { gap: 0.5rem; }
    .inicio-management-item { min-height: 116px; }
}
.inicio-notice-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; padding: 0 .85rem .85rem; }
.inicio-notice-actions button { border: 1px solid rgba(255,255,255,.12); border-radius: .65rem; padding: .55rem .75rem; font-size: .7rem; font-weight: 800; }
.inicio-notice-actions button:disabled { opacity: .5; }
.inicio-notice-actions__reject { background: rgba(239,68,68,.1); color: #fca5a5; }
.inicio-notice-actions__accept { background: #10b981; color: #052e22; }
.inicio-notice-actions__success { color: #6ee7b7; font-size: .72rem; font-weight: 800; }
.inicio-notice-actions__error { flex-basis: 100%; color: #fca5a5; font-size: .68rem; text-align: right; }
