/* ═══════════════════════════════════════════════
   ISIMLIK PLUGIN v3  –  DEAM Global
   ═══════════════════════════════════════════════ */

/* ── WRAPPER ────────────────────────────────── */
.ilk-wrapper {
    display: flex;
    gap: 36px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 32px;
    font-family: inherit;
}

/* ══════════════════════════════════════════════
   SOL: CANLI ONIZleme
══════════════════════════════════════════════ */
.ilk-preview-col {
    flex: 0 0 auto;
    width: 360px;
}

.ilk-preview-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 10px;
}

/* Isimlik sahne kutusu */
.ilk-scene {
    background: linear-gradient(145deg, #2b2b2b, #1a1a1a);
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: 0 12px 40px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06);
    position: relative;
    overflow: hidden;
}
.ilk-scene::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(200,164,74,.08) 0%, transparent 60%);
    pointer-events: none;
}

/* Isimlik plakasi */
.ilk-plate {
    background: #fff;
    border-radius: 4px;
    padding: 20px 28px 18px;
    position: relative;
    box-shadow:
        0 2px 8px rgba(0,0,0,.25),
        inset 0 0 0 1px rgba(0,0,0,.08);
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Altin koseler */
.ilk-plate::before,
.ilk-plate::after,
.ilk-plate .corner-bl,
.ilk-plate .corner-br {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
}
.ilk-plate::before {
    top: 5px; left: 5px;
    border-top: 2.5px solid #c8a44a;
    border-left: 2.5px solid #c8a44a;
    border-radius: 2px 0 0 0;
}
.ilk-plate::after {
    top: 5px; right: 5px;
    border-top: 2.5px solid #c8a44a;
    border-right: 2.5px solid #c8a44a;
    border-radius: 0 2px 0 0;
}
.ilk-plate .corner-bl {
    bottom: 5px; left: 5px;
    border-bottom: 2.5px solid #c8a44a;
    border-left: 2.5px solid #c8a44a;
    border-radius: 0 0 0 2px;
}
.ilk-plate .corner-br {
    bottom: 5px; right: 5px;
    border-bottom: 2.5px solid #c8a44a;
    border-right: 2.5px solid #c8a44a;
    border-radius: 0 0 2px 0;
}

/* Ince gold cizgi */
.ilk-plate-line {
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #c8a44a55, #c8a44a, #c8a44a55, transparent);
    margin: 2px auto;
}

/* Metin satirlari */
.ilk-name-line, .ilk-title-line {
    text-align: center;
    color: #111;
    line-height: 1.2;
    transition: font-family .25s, font-size .2s;
    word-break: break-word;
    width: 100%;
}
.ilk-name-line {
    font-size: 22px;
    font-weight: 700;
    min-height: 28px;
}
.ilk-title-line {
    font-size: 14px;
    font-weight: 400;
    color: #444;
    min-height: 18px;
    letter-spacing: .03em;
}
.ilk-line-placeholder {
    color: #ccc !important;
    font-style: italic;
}

/* Vida noktalari */
.ilk-screw {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #e8d5a0, #a87c2a);
    box-shadow: inset 0 1px 2px rgba(0,0,0,.4);
}
.ilk-screw.tl { top: -3px; left: 28px; }
.ilk-screw.tr { top: -3px; right: 28px; }
.ilk-screw.bl { bottom: -3px; left: 28px; }
.ilk-screw.br { bottom: -3px; right: 28px; }

/* Masa zemini */
.ilk-desk {
    margin-top: 16px;
    height: 6px;
    background: linear-gradient(180deg, #3a2e1e, #2a2010);
    border-radius: 0 0 8px 8px;
    opacity: .6;
}


/* ══════════════════════════════════════════════
   SAG: FORM
══════════════════════════════════════════════ */
.ilk-form-col {
    flex: 1;
    min-width: 260px;
}

/* Alan grubu */
.ilk-field {
    margin-bottom: 20px;
}
.ilk-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 7px;
}
.ilk-field input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e2e2e2;
    border-radius: 8px;
    font-size: 15px;
    background: #fafafa;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}
.ilk-field input[type="text"]:focus {
    outline: none;
    border-color: #c8a44a;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(200,164,74,.15);
}

/* Sira toggle */
.ilk-order-row {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
}
.ilk-order-btn {
    flex: 1;
    padding: 9px 8px;
    border: 1.5px solid #e2e2e2;
    border-radius: 8px;
    background: #fafafa;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-align: center;
    transition: all .2s;
    line-height: 1.4;
}
.ilk-order-btn:hover {
    border-color: #c8a44a;
    color: #c8a44a;
}
.ilk-order-btn.active {
    border-color: #c8a44a;
    background: #fffbf0;
    color: #9a7020;
    box-shadow: 0 0 0 3px rgba(200,164,74,.12);
}
.ilk-order-btn span {
    display: block;
    font-size: 10px;
    font-weight: 400;
    color: inherit;
    opacity: .7;
    margin-top: 2px;
}

/* Bolum basligi */
.ilk-section-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #bbb;
    margin: 22px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f0f0f0;
}

/* ── FONT KARTI GRID ─────────────────────────── */
.ilk-font-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 4px;
}

.ilk-font-card {
    border: 1.5px solid #e2e2e2;
    border-radius: 10px;
    padding: 10px 8px 8px;
    cursor: pointer;
    background: #fafafa;
    text-align: center;
    transition: all .18s;
    user-select: none;
    position: relative;
}
.ilk-font-card:hover {
    border-color: #c8a44a;
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(200,164,74,.15);
}
.ilk-font-card.selected {
    border-color: #c8a44a;
    background: #fffbf0;
    box-shadow: 0 0 0 3px rgba(200,164,74,.18);
}
.ilk-font-card.selected::after {
    content: '✓';
    position: absolute;
    top: 4px;
    right: 6px;
    font-size: 10px;
    color: #c8a44a;
    font-weight: 700;
}
.ilk-font-sample {
    font-size: 17px;
    color: #222;
    margin-bottom: 5px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ilk-font-name {
    font-size: 9.5px;
    color: #999;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* ── MOBIL ───────────────────────────────────── */
@media (max-width: 680px) {
    .ilk-wrapper { flex-direction: column; }
    .ilk-preview-col { width: 100%; }
    .ilk-font-grid { grid-template-columns: repeat(2, 1fr); }
}
