/* ═══════════════════════════════════════════════
   KONGRE TERCİH — Drag & Drop Atölye Sıralama
   ═══════════════════════════════════════════════ */

/* ── Doluluk Paneli ── */
.kongre-tercih-doluluk {
    background: rgba(22, 101, 52, 0.08);
    border: 1px solid rgba(22, 101, 52, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    overflow: hidden;
    box-sizing: border-box;
    max-width: 100%;
}

.kongre-tercih-doluluk-title {
    font-size: 13px;
    font-weight: 600;
    color: #22c55e;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.kongre-tercih-doluluk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 8px;
    max-width: 100%;
}

/* Kart: bir atölye, oturumlar alt satırda */
.kongre-tercih-doluluk-item {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    box-sizing: border-box;
}

.kongre-tercih-doluluk-item.dolu {
    border-color: rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.04);
}

.kongre-tercih-doluluk-item.az {
    border-color: rgba(234, 179, 8, 0.2);
    background: rgba(234, 179, 8, 0.04);
}

.kt-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.kt-card-header .kt-no {
    font-weight: 700;
    color: #22c55e;
    font-size: 13px;
    flex-shrink: 0;
}

.kt-card-header .kt-ad {
    color: #d4d4d4;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kt-sessions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.kt-session-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.kt-session-tag.musait {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.kt-session-tag.az {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
}

.kt-session-tag.dolu {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* ── Sıralama Alanı ── */
.kongre-tercih-hint {
    font-size: 12px;
    color: #a3a3a3;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.kongre-tercih-hint .kt-count-badge {
    background: rgba(22, 101, 52, 0.2);
    color: #22c55e;
    font-weight: 600;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 11px;
}

.kongre-tercih-sortable {
    list-style: none;
    padding: 0;
    margin: 0;
    min-height: 48px;
}

.kongre-tercih-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin-bottom: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: grab;
    user-select: none;
    touch-action: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.kongre-tercih-item:hover {
    background: rgba(22, 101, 52, 0.08);
    border-color: rgba(22, 101, 52, 0.3);
}

.kongre-tercih-item:active {
    cursor: grabbing;
}

.kongre-tercih-item .kt-handle {
    color: #525252;
    font-size: 16px;
    flex-shrink: 0;
    line-height: 1;
}

.kongre-tercih-item .kt-rank {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(22, 101, 52, 0.15);
    color: #22c55e;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.kongre-tercih-item .kt-info {
    flex: 1;
    overflow: hidden;
}

.kongre-tercih-item .kt-name {
    font-size: 14px;
    color: #e5e5e5;
    font-weight: 500;
}

.kongre-tercih-item .kt-session {
    font-size: 11px;
    color: #737373;
    margin-top: 1px;
}

/* Sürüklenen öğe (klon) */
.kongre-tercih-item.kt-dragging {
    opacity: 0.9;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(22, 101, 52, 0.5);
    transform: scale(1.02);
    z-index: 10000;
    pointer-events: none;
}

/* Sürükleme sırasında placeholder */
.kongre-tercih-item.kt-placeholder {
    opacity: 0;
    height: 0;
    padding: 0;
    margin: 0;
    border: 2px dashed rgba(22, 101, 52, 0.4);
    background: rgba(22, 101, 52, 0.05);
    overflow: hidden;
    transition: height 0.15s ease, padding 0.15s ease, margin 0.15s ease;
}

.kongre-tercih-item.kt-placeholder.kt-active {
    opacity: 1;
    height: 48px;
    padding: 10px 14px;
    margin-bottom: 4px;
}

/* ── Dolu Atölyeler Bölümü ── */
.kongre-tercih-dolu-title {
    font-size: 12px;
    color: #737373;
    margin-top: 16px;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kongre-tercih-dolu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kongre-tercih-dolu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    margin-bottom: 4px;
    background: rgba(239, 68, 68, 0.04);
    border: 1px solid rgba(239, 68, 68, 0.1);
    border-radius: 8px;
    opacity: 0.5;
    cursor: not-allowed;
}

.kongre-tercih-dolu-item .kt-name {
    font-size: 13px;
    color: #a3a3a3;
}

.kongre-tercih-dolu-item .kt-dolu-badge {
    font-size: 10px;
    font-weight: 700;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.12);
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: auto;
    flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .kongre-tercih-doluluk-grid {
        grid-template-columns: 1fr;
    }

    .kongre-tercih-item {
        padding: 12px 12px;
    }

    .kongre-tercih-item .kt-name {
        font-size: 13px;
    }

    .kt-sessions {
        flex-direction: column;
        gap: 4px;
    }
}