/* Bireysel Oyuncular — mavi tema (Taç Turnuvası tasarımı ile uyumlu) */

/* ——— Sayfa arka planı ——— */
body.bireysel-oyuncular-page {
    background: linear-gradient(
        160deg,
        #080c18 0%,
        #0a0c12 50%,
        #0a1020 100%
    ) !important;
    background-image: none !important;
    background-attachment: fixed;
    min-height: 100vh;
}

@media (max-width: 768px) {
    body.bireysel-oyuncular-page {
        background-attachment: scroll;
    }
}

body.bireysel-oyuncular-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(ellipse 70% 50% at 10% 6%, rgba(59, 130, 246, 0.22) 0%, transparent 58%);
}

body.bireysel-oyuncular-page::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(ellipse 60% 45% at 90% 94%, rgba(37, 99, 235, 0.18) 0%, transparent 52%);
}

/* Mavi parçacık yağmuru */
.bo-particle-fall {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bo-particle {
    position: absolute;
    top: -5%;
    left: calc(var(--x, 50) * 1%);
    width: var(--sz, 8px);
    height: calc(var(--sz, 8px) * 1.15);
    background: radial-gradient(ellipse at 35% 25%, rgba(147, 197, 253, 0.75), rgba(59, 130, 246, 0.35));
    border-radius: 150% 0 150% 150%;
    opacity: 0;
    animation: bo-particle-fall var(--dur, 14s) var(--delay, 0s) linear infinite;
    will-change: transform, opacity;
}

@keyframes bo-particle-fall {
    0% {
        transform: translateY(-8vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    8% {
        opacity: var(--op, 0.3);
    }
    92% {
        opacity: var(--op, 0.3);
    }
    100% {
        transform: translateY(108vh) translateX(var(--drift, 20px)) rotate(540deg);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bo-particle-fall {
        display: none;
    }
}

body.bireysel-oyuncular-page .forum-background,
body.bireysel-oyuncular-page .forum-content {
    background: transparent !important;
    position: relative;
    z-index: 1;
}

:root {
    --bo-bg-deep: #0a0a0e;
    --bo-bg-panel: #16161c;
    --bo-bg-card: #1c1c24;
    --bo-bg-card-hover: #242430;
    --bo-border: rgba(255, 255, 255, 0.08);
    --bo-border-strong: rgba(59, 130, 246, 0.16);
    --bo-accent: #3b82f6;
    --bo-accent-soft: rgba(59, 130, 246, 0.12);
    --bo-accent-mid: rgba(59, 130, 246, 0.22);
    --bo-accent-border: rgba(59, 130, 246, 0.34);
    --bo-accent-light: #93c5fd;
    --bo-green: #22c55e;
}

.bireysel-oyuncular-page .forum-background {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.bireysel-oyuncular-page .tt-page-wrap {
    max-width: none;
    width: 100%;
    padding: 0;
    text-align: left;
}

.bo-page-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0.25rem;
}

/* ——— Panel sistemi ——— */
.bo-panel {
    background: linear-gradient(160deg, rgba(22, 22, 28, 0.97) 0%, rgba(14, 14, 18, 0.98) 100%);
    border: 1px solid var(--bo-border-strong);
    border-radius: 18px;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.bo-panel-hero {
    background: linear-gradient(135deg, rgba(10, 16, 28, 0.98) 0%, rgba(10, 12, 18, 0.99) 55%, rgba(8, 14, 24, 0.98) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

/* Bölüm başlıkları */
.bo-section-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 1.15rem;
    color: #f1f5f9;
    letter-spacing: 0.01em;
}

.bo-section-title iconify-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    background: var(--bo-accent-soft);
    color: var(--bo-accent-light);
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* Meta kartları */
.bo-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.bo-meta-card {
    padding: 1rem 1.15rem;
    border-radius: 14px;
    text-align: left;
    background: var(--bo-bg-card);
    border: 1px solid var(--bo-border);
}

.bo-meta-card label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(148, 163, 184, 0.85);
    margin-bottom: 0.4rem;
}

.bo-meta-card span {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f8fafc;
}

/* Yetkili aksiyon barı */
.bo-publish-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.bo-publish-bar .tt-btn {
    justify-content: center;
    text-align: center;
    padding: 0.65rem 1.1rem;
}

/* Oyuncu havuzu bölümü */
.bo-players-section {
    margin-bottom: 1.75rem;
    padding: 1.5rem 1.6rem;
    border-radius: 18px;
}

.bo-players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    width: 100%;
    text-align: left;
}

.bo-player-card {
    padding: 1rem 1.1rem;
    transition: border-color 0.2s, transform 0.2s;
}

.bo-player-card:hover {
    border-color: var(--bo-accent-border);
    transform: translateY(-2px);
}

.bo-player-card.is-own {
    border-color: rgba(34, 197, 94, 0.45);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(34, 197, 94, 0.15);
}

.bo-player-card.is-assigned {
    opacity: 0.65;
}

.bo-player-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.bo-player-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bo-border-strong);
}

.bo-player-name {
    font-weight: 600;
    font-size: 1rem;
    color: #f1f5f9;
}

.bo-player-riot {
    font-size: 0.85rem;
    color: #94a3b8;
}

.bo-player-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.bo-player-meta .bo-meta-item {
    background: var(--bo-bg-card);
    border: 1px solid var(--bo-border);
    border-radius: 8px;
    padding: 0.45rem 0.6rem;
}

.bo-player-meta .bo-meta-label {
    color: #94a3b8;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bo-player-meta .bo-meta-value {
    font-weight: 600;
    margin-top: 0.15rem;
    color: #e2e8f0;
}

.bo-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    margin-top: 0.65rem;
}

.bo-status-badge.aktif {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.bo-status-badge.takimda {
    background: var(--bo-accent-soft);
    color: var(--bo-accent-light);
    border: 1px solid var(--bo-accent-border);
}

/* Profil düzenleme */
.bo-edit-panel {
    margin: 0 auto 1.5rem;
    max-width: 480px;
    width: calc(100% - 1rem);
    padding: 1rem 1.15rem;
    text-align: left;
}

.bo-edit-panel .tt-modal-title {
    font-size: 1rem;
    margin-bottom: 0.5rem !important;
    justify-content: flex-start;
    color: var(--bo-accent-light);
}

.bo-edit-panel .tt-form-hint {
    margin-bottom: 0.65rem;
    font-size: 0.82rem;
}

.bo-edit-panel .tt-form-group {
    margin-bottom: 0.7rem;
}

.bo-edit-panel .tt-form-label {
    font-size: 0.82rem;
    margin-bottom: 0.3rem;
}

.bo-edit-panel .tt-form-input {
    padding: 0.5rem 0.65rem;
    font-size: 0.88rem;
    background: var(--bo-bg-card);
    border-color: var(--bo-border);
}

.bo-edit-panel .tt-form-input:focus {
    border-color: var(--bo-accent-border);
}

.bo-edit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.bo-edit-grid .tt-form-group {
    margin-bottom: 0;
}

.bo-edit-panel .tt-riot-row {
    flex-wrap: wrap;
    gap: 0.45rem;
}

.bo-edit-panel .tt-riot-row .tt-form-input {
    flex: 1 1 100px;
    min-width: 0;
}

.bo-edit-panel .bo-riot-check-btn {
    flex: 1 1 100%;
    justify-content: center;
}

.bo-edit-panel .tt-modal-footer {
    margin-top: 0.75rem !important;
    padding-top: 0 !important;
    justify-content: flex-end;
}

.bo-edit-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: space-between !important;
    align-items: center;
}

.bo-edit-footer .bo-withdraw-btn {
    margin-right: auto;
    border-color: rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.bo-edit-footer .bo-withdraw-btn:hover {
    border-color: rgba(239, 68, 68, 0.55);
    background: rgba(239, 68, 68, 0.12);
    color: #fecaca;
}

.bo-edit-panel .tt-modal-footer .tt-btn {
    justify-content: center;
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
}

/* Boş / hata durumu */
.bo-empty-state {
    padding: 2.5rem 1.5rem;
    text-align: center;
    border-radius: 18px;
}

.bo-empty-state iconify-icon {
    font-size: 2.5rem;
    color: var(--bo-accent);
    margin-bottom: 1rem;
    display: block;
}

.bo-empty-state h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: #f1f5f9;
}

.bo-empty-state p {
    font-size: 0.9rem;
    color: #94a3b8;
    margin: 0;
}

.bo-empty-state a {
    color: var(--bo-accent-light);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.bo-empty-state a:hover {
    color: #bfdbfe;
}

/* Yükleme */
.bo-loading-box {
    padding: 2rem;
    text-align: center;
    border-radius: 18px;
    max-width: 28rem;
    margin: 0 auto;
}

.bo-loading-spinner {
    font-size: 2.5rem;
    color: var(--bo-accent);
    margin-bottom: 1rem;
    display: block;
}

/* Sayfa başlığı */
.bireysel-oyuncular-page .tt-page-header.bo-panel-hero {
    margin-bottom: 1.75rem;
}

.bireysel-oyuncular-page .tt-page-title {
    background: linear-gradient(135deg, #bfdbfe, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bireysel-oyuncular-page .tt-page-title iconify-icon {
    color: var(--bo-accent);
    -webkit-text-fill-color: initial;
}

.bireysel-oyuncular-page .tt-back-link {
    border-color: var(--bo-border-strong);
    color: var(--bo-accent-light);
}

.bireysel-oyuncular-page .tt-back-link:hover {
    border-color: var(--bo-accent-border);
    color: #bfdbfe;
}

.bireysel-oyuncular-page .tt-btn-primary {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-color: var(--bo-accent-border);
}

.bireysel-oyuncular-page .tt-btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

.bireysel-oyuncular-page .tt-btn-secondary {
    border-color: var(--bo-border-strong);
}

.bireysel-oyuncular-page .tt-btn-secondary:hover {
    border-color: var(--bo-accent-border);
    background: var(--bo-accent-soft);
}

/* Takım önizleme / kısmi seçim */
.bo-team-preview {
    margin-top: 1rem;
    text-align: left;
}

.bo-team-preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.bo-team-preview-table th,
.bo-team-preview-table td {
    padding: 0.55rem 0.65rem;
    border-bottom: 1px solid var(--bo-border);
    vertical-align: middle;
}

.bo-team-preview-table th {
    color: #94a3b8;
    font-weight: 600;
    text-align: left;
}

.bo-slot-select {
    width: 100%;
    background: var(--bo-bg-card);
    color: #f8fafc;
    border: 1px solid var(--bo-border);
    border-radius: 8px;
    padding: 0.4rem 0.5rem;
    font-size: 0.85rem;
}

.bo-slot-select:focus {
    outline: none;
    border-color: var(--bo-accent-border);
}

.bo-partial-picks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
    margin: 1rem 0;
}

.bo-partial-slot {
    background: var(--bo-bg-card);
    border: 1px solid var(--bo-border);
    border-radius: 10px;
    padding: 0.65rem;
}

.bo-partial-slot label {
    display: block;
    font-size: 0.78rem;
    color: #94a3b8;
    margin-bottom: 0.35rem;
}

.bo-verify-status {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    background: var(--bo-bg-card);
}

.bo-verify-status.ok {
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.bo-verify-status.err {
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.bo-riot-check-btn {
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .bo-players-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .bo-edit-grid {
        grid-template-columns: 1fr;
    }
}

/* ——— Önizleme modu ——— */
.bo-preview-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.55rem 1rem;
    background: linear-gradient(90deg, rgba(10, 16, 28, 0.97), rgba(8, 12, 20, 0.98));
    border-bottom: 1px solid rgba(59, 130, 246, 0.22);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--bo-accent-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.bo-preview-banner iconify-icon {
    color: var(--bo-accent);
    font-size: 1rem;
}

.bo-preview-banner-link {
    margin-left: 0.5rem;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
    opacity: 0.85;
}

.bo-preview-banner-link:hover {
    opacity: 1;
    color: var(--bo-accent);
}

body.bo-preview-active {
    padding-top: 2.5rem;
}

body.bo-preview-editor-open {
    padding-right: 320px;
}

.bo-preview-editor {
    position: fixed;
    top: 2.5rem;
    right: 0;
    bottom: 0;
    width: 320px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #14141a 0%, #0e0e12 100%);
    border-left: 1px solid rgba(59, 130, 246, 0.14);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.45);
    transition: transform 0.25s ease;
}

.bo-preview-editor--hidden {
    transform: translateX(100%);
}

.bo-preview-editor-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 1rem 1rem 0.75rem;
    border-bottom: 1px solid var(--bo-border);
    flex-shrink: 0;
}

.bo-preview-editor-head h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--bo-accent-light);
}

.bo-preview-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--bo-border);
    border-radius: 8px;
    background: var(--bo-bg-card);
    color: #94a3b8;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.bo-preview-toggle:hover {
    border-color: var(--bo-accent-border);
    color: var(--bo-accent);
}

.bo-preview-editor-body {
    flex: 1;
    overflow-y: auto;
    padding: 0.85rem 1rem 1.25rem;
}

.bo-preview-group {
    margin-bottom: 0.85rem;
}

.bo-preview-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    margin-bottom: 0.35rem;
}

.bo-preview-input {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    border: 1px solid var(--bo-border);
    background: var(--bo-bg-card);
    color: #f1f5f9;
    font-size: 0.84rem;
    font-family: inherit;
    box-sizing: border-box;
}

.bo-preview-input:focus {
    outline: none;
    border-color: var(--bo-accent-border);
}

.bo-preview-details {
    margin: 1rem 0;
    border: 1px solid var(--bo-border);
    border-radius: 10px;
    overflow: hidden;
}

.bo-preview-details summary {
    cursor: pointer;
    padding: 0.65rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #cbd5e1;
    background: var(--bo-bg-card);
}

.bo-preview-players {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.65rem;
    max-height: 340px;
    overflow-y: auto;
}

.bo-preview-player-row {
    background: rgba(14, 14, 18, 0.65);
    border: 1px solid var(--bo-border);
    border-radius: 10px;
    padding: 0.55rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.bo-preview-player-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bo-preview-player-num {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--bo-accent);
}

.bo-preview-remove {
    width: 1.4rem;
    height: 1.4rem;
    border: none;
    border-radius: 6px;
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

.bo-preview-player-roles,
.bo-preview-player-foot {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
}

.bo-preview-own-label {
    font-size: 0.75rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.bo-preview-add-btn {
    width: calc(100% - 1.3rem);
    margin: 0 0.65rem 0.65rem;
    font-size: 0.82rem;
}

.bo-preview-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.bo-preview-actions .tt-btn {
    flex: 1;
    font-size: 0.82rem;
}

.bo-preview-fab {
    position: fixed;
    right: 1rem;
    bottom: 1.25rem;
    z-index: 1090;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 1px solid var(--bo-accent-border);
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    color: #fff;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.bo-preview-fab:hover {
    transform: scale(1.05);
}

@media (max-width: 900px) {
    body.bo-preview-editor-open {
        padding-right: 0;
    }

    .bo-preview-editor {
        width: min(320px, 92vw);
    }
}
