/* karsilastir/assets/style.css */

:root {
    --bg-main: #09090b;       
    --bg-panel: #121214;      
    --border: #27272a;        
    --text-main: #fafafa;     
    --text-muted: #a1a1aa;    
    --accent: #3b82f6;        
    --winner-text: #fbbf24;   
}

body { 
    font-family: 'Outfit', sans-serif; 
    background-color: var(--bg-main); 
    color: var(--text-main); 
    min-height: 100vh; 
    margin: 0; 
    padding-bottom: 50px; 
}

/* --- BUTONLAR (Glowsuz, Net) --- */
.add-main-btn {
    background: var(--accent); 
    color: #fff; 
    border: 1px solid var(--accent); 
    border-radius: 6px;
    transition: 0.2s;
}
.add-main-btn:hover { background: #2563eb; color: #fff; }

.back-btn {
    background: #18181b; 
    border: 1px solid #27272a; 
    color: #a1a1aa; 
    transition: 0.2s; 
    border-radius: 6px;
}
.back-btn:hover { color: #fafafa; border-color: #3f3f46; }

/* --- SEKMELER --- */
.type-tabs { 
    display: flex; 
    justify-content: center; 
    background: #18181b; 
    padding: 4px; 
    border-radius: 8px; 
    border: 1px solid var(--border);
    width: max-content;
    margin: 30px auto; 
}
.type-tab { 
    background: transparent; 
    color: var(--text-muted); 
    border: none; 
    padding: 10px 30px; 
    border-radius: 6px; 
    font-weight: 500; 
    font-size: 1rem; 
    cursor: pointer; 
    transition: all 0.2s ease; 
}
.type-tab:hover { color: var(--text-main); }
.type-tab.active { background: #27272a; color: var(--text-main); }

/* --- MODAL VE FİLTRELER --- */
.custom-modal { 
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0, 0, 0, 0.8); z-index: 1000; align-items: center; justify-content: center; 
    backdrop-filter: blur(4px); 
}
.custom-modal.active { display: flex; }
.modal-box { 
    background: var(--bg-panel); 
    border: 1px solid var(--border); 
    border-radius: 12px; 
    width: 90%; 
    padding: 24px; 
}

.filter-input {
    background: #09090b; 
    border: 1px solid var(--border); 
    color: var(--text-main); 
    padding: 10px 12px; 
    border-radius: 8px; 
    outline: none; 
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}
.filter-input:focus { border-color: var(--accent); }
.filter-input option { background: #09090b; color: var(--text-main); }

/* Modal Çoklu Seçim Liste Elemanları */
.list-container { max-height: 350px; overflow-y: auto; padding-right: 5px; margin-top: 10px; }
.list-container::-webkit-scrollbar { width: 4px; }
.list-container::-webkit-scrollbar-thumb { background: #3f3f46; border-radius: 4px; }

.list-item { 
    padding: 12px; 
    border: 1px solid var(--border); 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    transition: all 0.2s; 
    color: var(--text-main);
    border-radius: 8px;
    margin-bottom: 8px;
    background: var(--bg-main);
}
.list-item:hover { background: rgba(255, 255, 255, 0.03); border-color: #52525b; }
.list-item.selected {
    background: rgba(59, 130, 246, 0.08);
    border-color: var(--accent);
}
.list-item.selected .check-icon {
    color: var(--accent) !important;
    opacity: 1 !important;
}

.list-item img, .list-item .placeholder-avatar { 
    width: 36px; height: 36px; border-radius: 6px; object-fit: cover; 
    background: #27272a; display: flex; align-items: center; justify-content: center; color: #a1a1aa; font-weight: bold;
}

/* --- MATRİS TABLOSU --- */
.matrix-container { background: var(--bg-panel); border: 1px solid var(--border); border-radius: 12px; overflow-x: auto; padding: 20px; }
.matrix-grid { display: flex; min-width: 800px; }
.m-col { flex: 1; display: flex; flex-direction: column; border-right: 1px solid var(--border); transition: background 0.2s; }
.m-col:hover { background: rgba(255, 255, 255, 0.02); }
.m-col:last-child { border-right: none; }
.m-col-labels { flex: 0.8; max-width: 250px; background: #0f0f11; border-right: 2px solid var(--border); }
.m-col-labels:hover { background: #0f0f11; } 

.m-row { height: 55px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--border); padding: 0 15px; font-size: 1rem; font-weight: 500; }
.m-row:last-child { border-bottom: none; }
.m-col-labels .m-row { justify-content: flex-start; color: var(--text-muted); font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 0.5px; font-size: 0.9rem; }

.m-header { height: 170px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-bottom: 2px solid var(--border); position: relative; padding: 10px; }
.m-col-labels .m-header { justify-content: flex-end; padding-bottom: 15px; }

.entity-avatar { width: 65px; height: 65px; border-radius: 8px; object-fit: cover; margin-bottom: 12px; background: #27272a; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--text-muted); }
.entity-name { font-family: 'Oswald', sans-serif; font-size: 1.1rem; color: var(--text-main); letter-spacing: 0.5px; margin-bottom: 2px; text-align: center; line-height: 1.1;}
.entity-sub { font-size: 0.8rem; color: var(--text-muted); text-align: center; }

.remove-btn { position: absolute; top: 10px; right: 10px; color: #52525b; cursor: pointer; transition: color 0.2s; font-size: 0.9rem; background: var(--bg-main); width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.remove-btn:hover { color: #ef4444; background: rgba(239, 68, 68, 0.1); }

/* Lig Ortalaması Özel Tasarım */
.m-col-avg { background: rgba(59, 130, 246, 0.03) !important; border-left: 1px solid rgba(59, 130, 246, 0.2) !important; position: relative; }
.m-col-avg::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--accent); }
.m-col-avg .entity-avatar { background: rgba(59, 130, 246, 0.1); color: var(--accent); border: 1px solid rgba(59, 130, 246, 0.3); }
.m-col-avg .entity-name { color: var(--accent); }
.m-col-avg .m-row { color: #cbd5e1; }

.is-winner { color: var(--winner-text); font-weight: 700; }
.is-winner::after { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; margin-left: 6px; font-size: 0.8rem; }