﻿/* ===================================================================
   LAF_Editor_BinaryFile bilesenine ait stiller. Onek: 'laf-bin-'.
   index.html'de bir kez referanslanir; bilesen markup'inda <style> YOKTUR.

   Gorunum: LAF_Editor_Text outlined ile birebir.
   Outline/arka plan/hover/focus laf_editor_styles.css token'larindan gelir.
   Yukseklik ISTISNA: icerige gore (dropzone/fileinfo) belirlenir.
   =================================================================== */

/* ── Field: outlined gorunum ─────────────────────────────────────── */
.laf-bin-field {
    position: relative;
    width: 100%;
    margin-top: 8px;
    margin-bottom: 0px;
    font-family: var(--LAF-default-font-family);
}

.laf-bin-wrap {
    position: relative;
}

/* Icerik border'in ustunde kalsin */
.laf-bin-container {
    position: relative;
    z-index: 1;
    width: 100%;
}

/* ── Outlined border: token'lara bagli ──────────────────────────── */
.laf-bin-border {
    position: absolute;
    inset: -4px 0 0;
    margin: 0;
    padding: 0 10px;
    border-width: var(--LAF-editor-outline-width);
    border-color: var(--LAF-editor-outline-color);
    border-radius: var(--LAF-editor-radius);
    pointer-events: none;
    overflow: hidden;
    box-sizing: border-box;
/*    transition: var(--LAF-editor-transition);*/
    background: var(--LAF-editor-bg);
/*    box-shadow: var(--LAF-editor-inset);*/
}

/* Notch her zaman acik → label daima cizginin ustunde */
.laf-bin-notch {
    float: unset;
    width: auto;
    overflow: hidden;
    display: block;
    padding: 0;
    height: 0;
    font-size: .75em;
    visibility: hidden;
    max-width: 100%;
    white-space: nowrap;
}

    .laf-bin-notch > span {
        padding: 0 6px;
        display: inline-block;
    }

/* Hover / focus border (token) */
.laf-bin-field:not(.laf-bin-disabled):not(.laf-bin-focused):hover .laf-bin-border {
/*    border-width: var(--LAF-editor-outline-width-hover);*/
    border-color: var(--LAF-editor-outline-color-hover);
}

.laf-bin-focused .laf-bin-border {
/*    border-width: var(--LAF-editor-outline-width-focus);*/
    border-color: var(--LAF-editor-outline-color-focus);
}

/* ── Floating label: cizginin ustunde sabit ───────────────────── */
.laf-bin-lbl {
    position: absolute;
    left: 11px;
    top: 0;
    z-index: 2;
    padding: 0 8px;
    transform: translate(0, -10px) scale(.75);
    transform-origin: left top;
    color: var(--LAF-palette-text-secondary);
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(133% - 32px);
/*    background: linear-gradient(to bottom, transparent 0%, var(--LAF-editor-bg) 65%);*/
    transition: color .2s cubic-bezier(0,0,.2,1);
}

.laf-bin-focused .laf-bin-lbl {
    color: var(--LAF-palette-primary-lighten);
}

/* ── Disabled ──────────────────────────────────────────────────── */
.laf-bin-disabled {
    opacity: .62;
    pointer-events: none;
}

    .laf-bin-disabled .laf-bin-border {
        border-style: dotted;
    }

/* ── Container & states ─────────────────────────────────────────── */
.laf-bin-center {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* ── Dosya bilgisi (HasFile) ────────────────────────────────────── */
/* color burada veriliyor; ikondaki inline fill="currentColor" bunu kullanir. */
.laf-bin-fileinfo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 48px;
    height: 100%;
    gap: 8px;
    overflow: hidden;
    color: var(--LAF-palette-text-secondary);
    cursor: pointer;
}

/* Dosya yukluyken yalniz onizlenebiliyorsa tiklanabilir */
.laf-bin-clickable {
    cursor: pointer;
}

/* Ikon, fileinfo'nun color'undan (text-primary) gelir */
.laf-bin-fileicon svg {
    width: 64px;
    height: 64px;
    display: block;
    fill: currentColor;
}

.laf-bin-filename {
    text-align: center;
    word-break: break-all;
    line-height: 1.2;
    font-size: 1rem;
    color: var(--LAF-palette-text);
}

.laf-bin-filesize {
    font-size: .75rem;
    color: var(--LAF-palette-text-secondary);
}

/* ── Bos durum / dropzone ───────────────────────────────────────── */
.laf-bin-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px 16px;
    height: 100%;
    cursor: pointer;
    border-radius: 4px;
    transition: background .15s ease;
}

    .laf-bin-dropzone.laf-drag-over {
        background: rgba(var(--LAF-palette-primary-rgb), .08);
        outline: 2px dashed var(--LAF-palette-primary);
        outline-offset: -6px;
    }

.laf-bin-hints {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: .28;
}

    .laf-bin-hints .laf-bin-hint svg {
        width: 36px;
        height: 36px;
        display: block;
        fill: var(--LAF-palette-text);
    }

.laf-bin-placeholder {
    text-align: center;
    font-size: .75rem;
    opacity: .7;
    color: var(--LAF-palette-text-secondary);
}

.laf-bin-sizehint {
    font-size: .75rem;
    opacity: .7;
    color: var(--LAF-palette-text-secondary);
}

/* ── Action overlay ─────────────────────────────────────────────── */
.laf-bin-actions {
    position: absolute;
    top: 8px;
    right: 14px;
    display: flex;
    flex-direction: row;
    gap: 6px;
    opacity: 0;
    transition: opacity .2s ease;
}

.laf-bin-container:hover .laf-bin-actions,
.laf-bin-focused .laf-bin-actions {
    opacity: 1;
}
