/* aykutunalan.site/downloads - herkese acik, sade gorunum (yalniz fb-public) */

/* Sol menu (misafir, Dosyalarim, surum) ve menu dugmesi gizli; liste tam genislik */
nav, header .menu-button, nav + .overlay { display: none !important; }
main { width: calc(100% - 2em) !important; max-width: 1100px; margin: 0 auto 2em !important; }

/* Ust cubuk: logo + baslik */
header { padding-left: 1em; }
header img { display: block !important; height: 2.2em; margin-right: .75em; border-radius: 10px; }
header > title { display: block; flex: 1; padding: 0; font-size: 1.15em; font-weight: 500; white-space: nowrap; }
header > title::before { content: "İndirmeler"; }
/* File Browser'in tam ekran arama penceresi yerine sayfa ici arama (ek.js) */
header #search, header .search-button { display: none !important; }
@media (min-width: 737px) {
  header > img { order: 0; }
  header > title { order: 1; flex: 1; }
  header #dropdown, header #more { order: 3; }
}

/* Gorunum degistirme ve bilgi ziyaretci icin gereksiz */
header .action[aria-label="Görünümü değiştir"],
header .action[aria-label="Bilgi"] { display: none !important; }

/* Liste: yumusak kart gorunumu */
#listing.list > div:not(:first-child) { border-radius: 12px; overflow: hidden; border: 1px solid var(--borderPrimary); }
#listing.list .item:not(.header) { border-left: 0; border-right: 0; padding: .8em 1em; }
#listing.list > div > .item:not(.header):last-child { border-bottom: 0; }
#listing h2 { font-size: .8em; letter-spacing: .06em; text-transform: uppercase; margin: 1.5em 0 .6em .2em; }
#listing .item .name { font-weight: 500; }
#listing .item .size, #listing .item .modified { color: var(--textSecondary); }

/* Telefon: ad ustte, boyut ve tarih altinda kucuk yazi */
@media (max-width: 736px) {
  main { width: calc(100% - 1.5em) !important; }
  #listing.list .item:not(.header) div:last-of-type { flex-wrap: wrap; row-gap: .2em; }
  #listing.list .item:not(.header) .name { width: 100% !important; word-break: break-word; }
  #listing.list .item:not(.header) .size,
  #listing.list .item:not(.header) .modified { display: inline-block !important; width: auto !important; font-size: .78em; }
  #listing.list .item:not(.header) .size::after { content: "·"; margin: 0 .5em; }
  #listing.list .item:not(.header)[data-dir="true"] .size { display: none !important; }
  #listing.list .item.header .size, #listing.list .item.header .modified { font-size: .85em; }
}

/* Dosya turune gore ikon renkleri (exe/msi zaten mavi) */
.file-icons [aria-label$=".pkg" i] i, .file-icons [aria-label$=".dmg" i] i { color: var(--icon-violet); }
.file-icons [aria-label$=".msu" i] i, .file-icons [aria-label$=".cab" i] i { color: var(--icon-green, #43a047); }
.file-icons [aria-label$=".iso" i] i, .file-icons [aria-label$=".img" i] i { color: var(--icon-orange); }
.file-icons [aria-label$=".zip" i] i, .file-icons [aria-label$=".rar" i] i,
.file-icons [aria-label$=".7z" i] i { color: var(--icon-yellow); }

/* Sayfa ici arama kutusu ve sonuclari */
#ek-search { width: calc(100% - 2em); max-width: 1100px; margin: 1em auto .25em; }
#ek-search .ek-field { display: flex; align-items: center; gap: .5em; padding: 0 .4em 0 .8em; height: 2.9em;
  background: var(--surfacePrimary); border: 1px solid var(--borderPrimary); border-radius: 12px; }
#ek-search .ek-field:focus-within { border-color: var(--blue, #2196f3); }
#ek-search .ek-field > i { color: var(--textSecondary); }
#ek-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--textPrimary); font: inherit; font-size: 1em; }
#ek-search input::-webkit-search-cancel-button { display: none; }
#ek-search .ek-clear { border: 0; background: none; cursor: pointer; color: var(--textSecondary); padding: .3em; border-radius: 50%; display: flex; }
#ek-search .ek-clear:hover { background: var(--hover, rgba(127,127,127,.15)); }
#ek-search .ek-clear[hidden], #ek-search .ek-results[hidden] { display: none; }
.ek-arama #listing, .ek-arama main .breadcrumbs { display: none !important; }
#ek-search .ek-results { margin-top: 1em; border: 1px solid var(--borderPrimary); border-radius: 12px; overflow: hidden; background: var(--surfacePrimary); }
#ek-search .ek-note { margin: 0; padding: .8em 1em; color: var(--textSecondary); font-size: .9em; }
#ek-search .ek-row { display: grid; grid-template-columns: 2.2em 1fr; grid-template-areas: "i n" "i f"; column-gap: .6em;
  align-items: center; padding: .7em 1em; border-top: 1px solid var(--borderPrimary); color: var(--textPrimary); text-decoration: none; }
#ek-search .ek-row:hover { background: var(--hover, rgba(127,127,127,.08)); }
#ek-search .ek-row i { grid-area: i; font-size: 1.8em; color: var(--textSecondary); }
#ek-search .ek-row i.ek-dir { color: var(--icon-blue, #2196f3); }
#ek-search .ek-name { grid-area: n; font-weight: 500; word-break: break-word; }
#ek-search .ek-folder { grid-area: f; font-size: .8em; color: var(--textSecondary); }
@media (max-width: 736px) { #ek-search { width: calc(100% - 1.5em); } }

/* Bos alan gostergesi (ek.js) */
#ek-search .ek-disk { display: flex; align-items: center; gap: .7em; margin: .55em .2em 0; font-size: .8em; color: var(--textSecondary); }
#ek-search .ek-disk[hidden] { display: none; }
#ek-search .ek-bar { flex: 0 0 7em; height: 6px; border-radius: 3px; background: var(--borderPrimary); overflow: hidden; }
#ek-search .ek-bar span { display: block; height: 100%; background: var(--icon-blue, #2196f3); border-radius: 3px; }
#ek-search .ek-bar.ek-full span { background: var(--icon-red, #e53935); }

/* Yol cubugu: kok klasorde gizli (yalniz ev simgesi kaliyordu); alt klasorde "Ana klasor > SDx" */
main .breadcrumbs:not(:has(> span)) { display: none !important; }
main .breadcrumbs { height: auto !important; min-height: 0; padding: .9em .2em .5em !important; border: 0 !important;
  font-size: .95em; display: flex; flex-wrap: wrap; align-items: center; row-gap: .3em; }
main .breadcrumbs a { display: inline-flex; align-items: center; gap: .35em; padding: .25em .55em; border-radius: 8px;
  color: var(--textSecondary); text-decoration: none; }
main .breadcrumbs a:hover { background: var(--hover, rgba(127,127,127,.12)); color: var(--textPrimary); }
main .breadcrumbs a i { font-size: 1.15em; }
main .breadcrumbs a[aria-label="Ana dizin"]::after { content: "Ana klasör"; }
main .breadcrumbs a[aria-current="page"] { color: var(--textPrimary); font-weight: 600; }
main .breadcrumbs .chevron i { font-size: 1.1em; color: var(--textSecondary); vertical-align: middle; }
#ek-search .ek-disk { margin-bottom: .4em; }
