/* Chosen Legionnaire (CL) — SCRIM maç listesi */

.cl-scrim-page .em-hero__title {
    background: linear-gradient(135deg, #e2e8f0 0%, #a5b4fc 45%, #6366f1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cl-scrim-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 900px) {
    .cl-scrim-grid {
        grid-template-columns: 1fr;
    }
}

.cl-scrim-card {
    min-height: 140px;
    aspect-ratio: 2.2 / 1;
}

.cl-card-logos {
    position: absolute;
    top: 14px;
    left: 16px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.18rem;
}

.cl-card-logos-row,
.cl-card-ratings-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cl-card-logo-cell,
.cl-card-rating-cell {
    width: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cl-card-rating-cell {
    min-height: 0.85rem;
}

.cl-card-vs-spacer {
    width: 1.35rem;
    flex-shrink: 0;
}

.cl-card-team-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.12rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #fde68a;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
    line-height: 1;
    white-space: nowrap;
}

.cl-card-vs {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.cl-featured-vs {
    font-size: 0.85rem;
}

.cl-card-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.45);
}

.cl-card-logo-icon {
    font-size: 2rem;
    color: #fbbf24;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.cl-scrim-score .etkinlik-card-score-text {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--em-gold-warm, #f5e6a8) !important;
}

.cl-scrim-score--win {
    border-color: rgba(34, 197, 94, 0.55) !important;
    background: rgba(15, 112, 96, 0.72) !important;
}

.cl-scrim-score--loss {
    border-color: rgba(239, 68, 68, 0.55) !important;
    background: rgba(139, 0, 0, 0.65) !important;
}

.cl-scrim-score--draw {
    border-color: rgba(251, 146, 60, 0.55) !important;
    background: rgba(180, 83, 9, 0.55) !important;
}

.cl-featured-score {
    display: inline-block;
    padding: 0.2rem 1rem;
    border-radius: 999px;
    font-size: 1.85rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
    margin-top: 0.25rem;
    color: var(--em-gold-warm, #f5e6a8) !important;
}

.cl-featured-score.cl-scrim-score--win {
    background: rgba(15, 112, 96, 0.85);
    border: 1px solid rgba(34, 197, 94, 0.5);
}

.cl-featured-score.cl-scrim-score--loss {
    background: rgba(139, 0, 0, 0.8);
    border: 1px solid rgba(239, 68, 68, 0.5);
}

.cl-featured-score.cl-scrim-score--draw {
    background: rgba(180, 83, 9, 0.75);
    border: 1px solid rgba(251, 146, 60, 0.5);
}

.cl-modal-score-badge {
    display: inline-block;
    padding: 0.35rem 1.1rem;
    border-radius: 12px;
    color: var(--em-gold-warm, #f5e6a8) !important;
}

.cl-modal-score-badge.cl-scrim-score--win {
    background: rgba(15, 112, 96, 0.75);
    border: 1px solid rgba(34, 197, 94, 0.45);
}

.cl-modal-score-badge.cl-scrim-score--loss {
    background: rgba(139, 0, 0, 0.7);
    border: 1px solid rgba(239, 68, 68, 0.45);
}

.cl-modal-score-badge.cl-scrim-score--draw {
    background: rgba(180, 83, 9, 0.65);
    border: 1px solid rgba(251, 146, 60, 0.45);
}

.cl-team-name--win {
    color: #4ade80 !important;
}

.cl-team-name--loss {
    color: #f87171 !important;
}

.cl-featured-team-names {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.cl-featured-team-name {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #e2e8f0;
}

.cl-modal-team-name {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

.cl-rating-modal {
    padding: 1.25rem 1.5rem 1.5rem;
}

.cl-rating-opponent {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    margin: 0.75rem 0 1rem;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.28);
}

.cl-rating-opponent-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.35);
}

.cl-rating-opponent-icon {
    font-size: 2.5rem;
    color: #fbbf24;
}

.cl-rating-opponent-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: #e0e7ff;
    letter-spacing: 0.03em;
}

.cl-rating-modal .rating-actions {
    margin-top: 1rem;
}

.cl-featured-match {
    margin-bottom: 1.25rem;
}

.cl-featured-result {
    position: relative;
    cursor: pointer;
    border-radius: var(--em-radius, 16px);
    border: 1px solid rgba(99, 102, 241, 0.45);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.12);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.cl-featured-result:hover {
    border-color: rgba(165, 180, 252, 0.65);
    box-shadow: 0 16px 48px rgba(99, 102, 241, 0.22);
    transform: translateY(-2px);
}

.cl-featured-result:focus-visible {
    outline: 2px solid rgba(165, 180, 252, 0.85);
    outline-offset: 2px;
}

.cl-featured-match__badge {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 5;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(99, 102, 241, 0.35);
    border: 1px solid rgba(165, 180, 252, 0.5);
    color: #e0e7ff;
    pointer-events: none;
}

.cl-featured-result__hint {
    position: absolute;
    bottom: 12px;
    right: 14px;
    top: auto;
    left: auto;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #cbd5e1;
    background: rgba(8, 9, 12, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.35);
    pointer-events: none;
}

.cl-featured-result__mount {
    position: relative;
    z-index: 1;
}

.cl-featured-result__panel {
    max-width: 100%;
    width: 100%;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    pointer-events: none;
}

.cl-featured-result__panel .match-detail-panel__body {
    max-height: none;
    overflow: visible;
    border-radius: 0;
}

.cl-featured-result__panel .em-match-detail-title {
    padding-right: 0;
}

.cl-featured-result__empty {
    margin: 0;
    padding: 2rem 1rem;
    text-align: center;
    color: #94a3b8;
}

.cl-modal-score-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: start;
    gap: 0.75rem 1.5rem;
    width: 100%;
    max-width: 960px;
    margin: 0 auto 0.85rem;
    padding: 0 0.5rem;
    box-sizing: border-box;
}

.cl-modal-team-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-width: 0;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.cl-modal-score-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    flex-shrink: 0;
    padding: 0 0.15rem;
    /* Logo (56px) ile skor kutusunu yatay hizada ortala */
    margin-top: 0.625rem;
}

.cl-team-rating-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 1.35rem;
    line-height: 1;
}

.cl-modal-team-heading {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
}

.cl-team-rating-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #fde68a;
    padding: 0.2rem 0.45rem;
    border-radius: 8px;
    background: rgba(12, 13, 18, 0.72);
    border: 1px solid rgba(212, 175, 55, 0.28);
    white-space: nowrap;
    line-height: 1.2;
}

.cl-modal-team-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.35);
}

.cl-modal-team-logo-icon {
    font-size: 2.25rem;
    color: #fbbf24;
}

.cl-modal-score-val {
    font-size: 2.25rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    line-height: 1;
}

body.cl-scrim-page .em-match-teams-row {
    margin-top: 0.35rem;
}

.cl-rating-hint {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 0.25rem 0 0.75rem;
}

.cl-team-rating-stars {
    justify-content: center;
    margin: 1rem 0;
}

.match-create-input {
    width: 100%;
    margin-bottom: 0.75rem;
}

/* Düzenle — maç özeti grid */
.cl-match-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
    align-items: end;
}

@media (max-width: 720px) {
    .cl-match-summary-grid {
        grid-template-columns: 1fr;
    }
}

.cl-match-summary-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.cl-match-summary-field--full {
    grid-column: 1 / -1;
}

.cl-match-summary-field .em-form-label {
    margin-bottom: 0;
}

.cl-match-summary-clean {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cl-match-summary-vs {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem 1.25rem;
    align-items: start;
}

.cl-match-summary-vs-label {
    align-self: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    color: rgba(212, 175, 55, 0.75);
    padding-top: 1.75rem;
}

.cl-match-summary-team-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cl-match-summary-team-pill {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.85rem;
    border-radius: 12px;
    background: rgba(12, 13, 18, 0.75);
    border: 1px solid rgba(212, 175, 55, 0.22);
}

.cl-match-summary-team-pill--fixed {
    margin-top: 0.35rem;
}

.cl-match-summary-team-pill--preview {
    margin-top: 0.35rem;
}

.cl-match-summary-team-pill-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.cl-match-summary-team-pill-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #f8fafc;
}

.cl-match-summary-hint {
    margin: 0;
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.4;
}

.cl-match-summary-hint--warn {
    color: #fbbf24;
}

.cl-match-summary-hint--warn a {
    color: #fde68a;
    text-decoration: underline;
}

.cl-match-create-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.75rem 1rem;
    align-items: end;
    margin-bottom: 1rem;
}

.cl-match-create-opp-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.cl-legion-team-card {
    margin-bottom: 0.75rem;
}

.cl-legion-team-card-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.28);
}

@media (max-width: 720px) {
    .cl-match-summary-vs,
    .cl-match-create-teams {
        grid-template-columns: 1fr;
    }

    .cl-match-summary-vs-label {
        padding-top: 0;
        text-align: center;
    }
}

.cl-teams-panel {
    max-width: 520px;
}

.cl-teams-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 280px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.cl-teams-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    background: rgba(15, 16, 24, 0.75);
    border: 1px solid rgba(212, 175, 55, 0.18);
}

.cl-teams-list-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cl-teams-list-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.cl-teams-list-info span {
    font-size: 0.78rem;
    color: #94a3b8;
}

.cl-teams-list-actions {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
    align-items: center;
}

.cl-teams-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.125rem;
    height: 2.125rem;
    padding: 0;
    border-radius: 9px;
    border: 1px solid rgba(212, 175, 55, 0.22);
    background: rgba(12, 13, 18, 0.85);
    color: #d4af37;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.15s ease;
    font-size: 0.82rem;
    line-height: 1;
    flex-shrink: 0;
}

.cl-teams-action-btn iconify-icon {
    display: block;
    font-size: 0.82rem;
}

.cl-teams-action-btn--edit:hover {
    border-color: rgba(212, 175, 55, 0.5);
    background: rgba(212, 175, 55, 0.14);
    color: #fde68a;
    transform: translateY(-1px);
}

.cl-teams-action-btn--delete {
    border-color: rgba(248, 113, 113, 0.28);
    color: #f87171;
}

.cl-teams-action-btn--delete:hover {
    border-color: rgba(248, 113, 113, 0.55);
    background: rgba(248, 113, 113, 0.12);
    color: #fecaca;
    transform: translateY(-1px);
}

.cl-teams-action-btn:focus-visible {
    outline: 2px solid rgba(212, 175, 55, 0.45);
    outline-offset: 2px;
}

.cl-teams-empty {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.cl-teams-divider {
    border: none;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    margin: 1rem 0;
}

.cl-teams-form-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: #fde68a;
}

.cl-teams-form-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

body.cl-scrim-page .em-toolbar .em-btn--ghost {
    background: rgba(15, 16, 24, 0.65);
    border: 1px solid rgba(212, 175, 55, 0.28);
    color: #fde68a;
}

body.cl-scrim-page .em-toolbar .em-btn--ghost:hover {
    background: rgba(212, 175, 55, 0.12);
}
