@font-face{
  font-family:'LED';
  src:url('./font1.ttf') format('truetype');
  font-weight:normal;
  font-style:normal;
}

*{ box-sizing:border-box; }
:root{ --radius:14px; }

body{
  margin:0;
  font-family:system-ui, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
}

.small{ font-size:12px; color:var(--muted); }
h3{ margin:0; font-size:14px; }
.title{ font-weight:900; }

html[data-theme="light"]{
  --bg:#f6f7fb;
  --panel:#ffffff;
  --text:#111;
  --muted:#606a7a;
  --border:#e5e7ef;
  --btn:#111;
  --btnText:#fff;
  --card:#fafbff;
}

html[data-theme="dark"]{
  --bg:#000;
  --panel:#000;
  --text:#00ff66;
  --muted:#00cc55;
  --border:#003311;
  --btn:#001a0d;
  --btnText:#00ff66;
  --card:#001a0d;
}

html[data-theme="dark"] body{
  background:#000;
  color:#00ff66;
  text-shadow:0 0 6px rgba(0,255,100,0.35);
}

/* Banner */
.corner-banner{
  --logoSize:44px;
  position:fixed;
  top:12px; left:12px;
  z-index:10000;

  width:260px;
  display:flex;
  align-items:center;
  gap:12px;

  padding:8px 14px;
  border:1px solid var(--border);
  background:var(--panel);
  border-radius:14px;
  box-shadow:0 8px 24px rgba(0,0,0,.25);
  text-decoration:none;
  color:var(--text);
}

.banner-text{
  font-family:'LED', monospace;
  font-size:var(--logoSize);
  font-weight:900;
  letter-spacing:2px;
  line-height:1;
  white-space:nowrap;

  color:#ff2a2a;
  /* glow daha yumuşak */
  text-shadow:
    0 0 2px rgba(255,40,40,0.75),
    0 0 6px rgba(255,0,0,0.55),
    0 0 12px rgba(255,0,0,0.35);
  animation:ledGlow 2s infinite alternate ease-in-out;
}
@keyframes ledGlow{
  from{
    text-shadow: 0 0 2px rgba(255,40,40,0.55), 0 0 6px rgba(255,0,0,0.35);
  }
  to{
    text-shadow: 0 0 3px rgba(255,40,40,0.85), 0 0 10px rgba(255,0,0,0.55);
  }
}

/* Theme dock */
.theme-dock{
  position:fixed;
  top:12px; right:12px;
  z-index:10000;

  display:flex;
  align-items:center;
  gap:10px;

  padding:10px 14px;
  border:1px solid var(--border);
  background:var(--panel);
  border-radius:14px;
  box-shadow:0 8px 24px rgba(0,0,0,.25);
}

.theme-label{ font-size:14px; opacity:.85; }

.theme-switch{
  position:relative;
  display:inline-block;
  width:50px;
  height:26px;
}
.theme-switch input{ opacity:0; width:0; height:0; }

.theme-slider{
  position:absolute;
  cursor:pointer;
  inset:0;
  background-color:var(--border);
  border-radius:34px;
  transition:.25s;
}
.theme-slider::before{
  content:"";
  position:absolute;
  height:20px;
  width:20px;
  left:3px;
  top:3px;
  background-color:var(--text);
  border-radius:50%;
  transition:.25s;
}
.theme-switch input:checked + .theme-slider{
  background-color:var(--text);
}
.theme-switch input:checked + .theme-slider::before{
  transform:translateX(24px);
  background-color:var(--bg);
}

/* Panels */
.panel{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
}
.panel-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border-bottom:1px solid var(--border);
}

.btn{
  padding:12px 14px;
  border-radius:12px;
  border:1px solid var(--border);
  background:var(--btn);
  color:var(--btnText);
  cursor:pointer;
}
.btn-ghost{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:transparent;
  color:var(--text);
  cursor:pointer;
}

/* Layout */
.dict-shell{
  height:100vh;
  display:grid;
  grid-template-columns: 360px 1fr;
  gap:12px;
  padding:84px 12px 12px 12px;
}

.dict-left{ min-width:0; display:flex; flex-direction:column; }
.dict-main{ min-width:0; display:flex; flex-direction:column; }

.search-row{
  padding:10px;
  border-bottom:1px solid var(--border);
}
.search-row input{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:transparent;
  color:var(--text);
  outline:none;
}

.list{
  padding:10px;
  display:flex;
  flex-direction:column;
  gap:8px;
  overflow:auto;
}

.heading-item{
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:12px;
  cursor:pointer;
}
.heading-item.active{ outline:2px solid var(--text); }

.entries{
  flex:1;
  overflow:auto;
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.entry{
  padding:12px;
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--card);
}
.entry .meta{ font-size:12px; color:var(--muted); margin-bottom:8px; }
.entry .text{ white-space:pre-wrap; }

.entry-form{
  border-top:1px solid var(--border);
  padding:12px;
  display:flex;
  gap:10px;
}
.entry-form textarea{
  flex:1;
  padding:12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:transparent;
  color:var(--text);
  outline:none;
  resize:vertical;
  min-height:56px;
}

@media (max-width: 980px){
  .dict-shell{ grid-template-columns:1fr; }
}
