/* Takım Soygunu — gece limanı / amber-altın tema (ortak layout: sirketler.css) */

body.takim-soygun-page {
    --ts-accent: #d49e35;
    --ts-accent-soft: #f4d38a;
    --ts-accent-deep: #b45309;
    --sirket-title-bg: linear-gradient(135deg, rgba(16, 10, 4, 0.95) 0%, rgba(24, 14, 6, 0.9) 100%);
    --sirket-card-bg-fallback: rgba(22, 14, 6, 0.96);
}

body.takim-soygun-page .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--ts-accent), #e65a1e, transparent);
    opacity: 0.7;
}

body.takim-soygun-page .hero-section::after {
    background: radial-gradient(circle, rgba(212, 158, 53, 0.14) 0%, transparent 70%);
}

body.takim-soygun-page .hero-section-icon {
    color: var(--ts-accent);
}

body.takim-soygun-page .sm-btn--primary {
    background: linear-gradient(135deg, #d49e35 0%, #b45309 100%);
    color: #fffbeb;
    box-shadow: 0 4px 14px rgba(180, 83, 9, 0.4);
}

body.takim-soygun-page .sm-btn--primary:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(212, 158, 53, 0.45);
    filter: brightness(1.06);
}

.takim-soygun-page .sm-muted code {
    color: var(--ts-accent-soft);
    background: rgba(212, 158, 53, 0.14);
    padding: 0.1rem 0.35rem;
    border-radius: 0.25rem;
    font-size: 0.85em;
}

.takim-soygun-page .sm-alert {
    flex-wrap: wrap;
}

.takim-soygun-page .sm-alert .sm-btn {
    margin-left: auto;
}

.ts-join-block {
    margin-top: 1.25rem;
}

.ts-team-list {
    display: grid;
    gap: 0.85rem;
    margin-bottom: 0.5rem;
}

.ts-team-card {
    padding: 1rem 1.1rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(30, 30, 30, 0.65);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ts-team-card:hover {
    border-color: rgba(212, 158, 53, 0.28);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

.ts-team-card__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.ts-team-card__meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.ts-team-card__meta strong {
    color: #fef3c7;
    font-size: 0.95rem;
}

.ts-team-card__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: #d4d4d4;
}

.ts-team-card__stats span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.ts-avatar {
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(212, 158, 53, 0.4);
    flex-shrink: 0;
}

.ts-avatar--sm {
    width: 28px;
    height: 28px;
}

.ts-roster {
    margin-bottom: 1.25rem;
    padding: 1rem 1.1rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(217, 119, 6, 0.25);
    background: linear-gradient(145deg, rgba(217, 119, 6, 0.08) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.ts-roster-title {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #fde68a;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ts-roster-sub {
    margin: 0.85rem 0 0.5rem;
    font-size: 0.78rem;
    color: #a3a3a3;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ts-target-kasalar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.ts-target-kasalar span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #d4d4d4;
}

.ts-roster-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ts-roster-row:last-child {
    border-bottom: none;
}

.ts-roster-row--ready {
    background: rgba(34, 197, 94, 0.08);
    margin: 0 -0.5rem;
    padding: 0.55rem 0.5rem;
    border-radius: 0.4rem;
}

.ts-roster-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e5e5e5;
    text-decoration: none;
    min-width: 0;
}

.ts-roster-user:hover {
    color: #fde68a;
}

.ts-ready-badge {
    font-size: 0.78rem;
    color: #86efac;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.ts-info-box {
    margin-bottom: 1.25rem;
    padding: 1rem 1.1rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(251, 191, 36, 0.22);
    background: rgba(251, 191, 36, 0.06);
}

.ts-info-box h3 {
    margin: 0 0 0.65rem;
    color: #fde68a;
    font-size: 1rem;
    font-weight: 700;
}

.ts-steps {
    margin: 0;
    padding-left: 1.25rem;
    color: #d4d4d4;
    font-size: 0.875rem;
    line-height: 1.65;
}

.ts-stat-ok {
    color: #86efac !important;
}

.ts-stat-warn {
    color: #fde047 !important;
}

/* Üye arama */
.sm-member-search {
    position: relative;
    width: 100%;
}

.sm-member-search__dropdown {
    position: absolute;
    z-index: 50;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 0.35rem 0;
    list-style: none;
    max-height: 240px;
    overflow-y: auto;
    border-radius: 0.65rem;
    border: 1px solid rgba(251, 191, 36, 0.25);
    background: rgba(20, 20, 20, 0.98);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.sm-member-search__dropdown li {
    margin: 0;
    padding: 0;
}

.sm-member-search__option {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.55rem 0.75rem;
    color: #f5f5f5;
    text-align: left;
    cursor: pointer;
    font: inherit;
    font-size: 0.875rem;
    transition: background 0.15s ease;
}

.sm-member-search__option:hover,
.sm-member-search__option:focus {
    background: rgba(245, 158, 11, 0.12);
    outline: none;
}

.sm-member-search__option-meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.sm-member-search__option-meta strong {
    font-size: 0.875rem;
    color: #fef3c7;
}

.sm-member-search__option-meta .sm-muted {
    font-size: 0.75rem;
    margin: 0;
}

.sm-member-search__selected {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.3);
    font-size: 0.78rem;
    color: #fde68a;
}

/* Sonuç modalı — işlem bitince ekranda, kullanıcı kapatana kadar */
.ts-result-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.ts-result-modal[hidden] {
    display: none !important;
}

.ts-result-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(4px);
}

.ts-result-modal__panel {
    position: relative;
    width: min(480px, 100%);
    padding: 1.75rem 1.5rem 1.5rem;
    border-radius: 1rem;
    background: linear-gradient(160deg, rgba(26, 24, 20, 0.98) 0%, rgba(15, 14, 12, 0.98) 100%);
    border: 1px solid rgba(251, 191, 36, 0.35);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    text-align: center;
    animation: ts-result-in 0.28s ease-out;
}

.ts-result-modal__panel--ok {
    border-color: rgba(34, 197, 94, 0.45);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.55),
        0 0 32px rgba(34, 197, 94, 0.12);
}

.ts-result-modal__panel--err {
    border-color: rgba(239, 68, 68, 0.45);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.55),
        0 0 32px rgba(239, 68, 68, 0.1);
}

.ts-result-modal__panel--info {
    border-color: rgba(88, 101, 242, 0.45);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.55),
        0 0 32px rgba(88, 101, 242, 0.12);
}

.ts-result-modal__panel--wide {
    width: min(640px, 100%);
    max-height: min(90vh, 820px);
    overflow-y: auto;
    text-align: left;
}

@keyframes ts-result-in {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(12px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.ts-result-modal__icon {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 0.65rem;
}

.ts-result-modal__icon--ok {
    color: #86efac;
}

.ts-result-modal__icon--err {
    color: #fca5a5;
}

.ts-result-modal__icon--info {
    color: #a5b4fc;
}

.ts-result-modal__title {
    margin: 0 0 0.75rem;
    font-family: 'HiJack', 'Poppins', sans-serif;
    font-size: clamp(1.1rem, 3vw, 1.35rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fde68a;
}

.ts-result-modal__panel--ok .ts-result-modal__title {
    color: #bbf7d0;
}

.ts-result-modal__panel--err .ts-result-modal__title {
    color: #fecaca;
}

.ts-result-modal__panel--info .ts-result-modal__title {
    color: #c7d2fe;
}

.ts-result-blocked-msg {
    margin: 0 0 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #e2e8f0;
}

.ts-result-modal__message {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #e5e5e5;
    white-space: pre-wrap;
    word-break: break-word;
}

.ts-result-modal__candidates {
    margin: 0 0 1rem;
    padding: 0.65rem 0.85rem;
    list-style: none;
    text-align: left;
    border-radius: 0.65rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.875rem;
    color: #d4d4d4;
}

.ts-result-modal__candidates li {
    padding: 0.25rem 0;
}

.ts-result-modal__candidates li + li {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body.takim-soygun-page .ts-result-modal__close {
    min-width: 8rem;
    margin-top: 0.5rem;
    width: 100%;
}

.ts-result-detail {
    margin-bottom: 1rem;
}

.ts-result-soygun {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ts-result-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.ts-result-stat {
    padding: 0.65rem 0.75rem;
    border-radius: 0.65rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ts-result-stat__label {
    display: block;
    font-size: 0.72rem;
    color: #a3a3a3;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
}

.ts-result-stat strong {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
    color: #fef3c7;
}

.ts-result-section {
    padding: 0.85rem;
    border-radius: 0.75rem;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ts-result-section__title {
    margin: 0 0 0.65rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fde68a;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.ts-result-target__stats {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.65rem;
    font-size: 0.875rem;
    color: #d4d4d4;
}

.ts-result-target__stats strong {
    color: #f5f5f5;
}

.ts-result-user {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.ts-result-user--lg strong {
    font-size: 1rem;
    color: #fef3c7;
}

.ts-result-roster {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.ts-result-row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 0.25rem 0.75rem;
    padding: 0.55rem 0.65rem;
    border-radius: 0.55rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.ts-result-row .ts-result-user {
    grid-column: 1;
    grid-row: 1;
}

.ts-result-gain {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    font-weight: 700;
    color: #86efac;
    font-size: 0.875rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.ts-result-balance {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 0.8rem;
    color: #a3a3a3;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

@media (max-width: 520px) {
    .ts-result-summary {
        grid-template-columns: minmax(0, 1fr);
    }

    .ts-result-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .ts-result-gain {
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
    }

    .ts-result-balance {
        grid-row: 3;
    }
}

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

.takim-soygun-page iconify-icon.ts-spin {
    animation: ts-spin 0.8s linear infinite;
    display: inline-block;
}

@media (max-width: 640px) {
    .takim-soygun-page .sm-alert .sm-btn {
        margin-left: 0;
        width: 100%;
    }

    .ts-team-card .sm-btn {
        width: 100%;
    }
}
