/* Basic RTL file browser styles with IRANSansX */
:root{
  --bg: #0b0e13;
  --card: #121722;
  --muted: #9aa4b2;
  --text: #e6ebf0;
  --accent: #5ac2ff;
  --border: #1b2230;
}

*{ box-sizing: border-box; }
html, body { height:100%; }
body{
  margin:0;
  font-family: IRANSansX, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "DejaVu Sans", "Liberation Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.container{
  max-width: 980px;
  margin: 40px auto;
  padding: 0 16px;
}

header{
  display:flex;
  flex-wrap: wrap;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

h1{ font-size: 20px; margin: 0; font-weight: 800; letter-spacing: -0.3px; }

.search-wrap{
  display:flex; align-items: center; gap:8px;
  background: var(--card);
  border:1px solid var(--border);
  padding:8px 12px; border-radius: 12px;
  width: min(520px, 100%);
}
.search-wrap input{
  flex:1; background: transparent; border:0; outline: none; color: var(--text);
  font-size: 14px;
}
.search-wrap button{
  background: transparent; border:0; color: var(--muted); font-size: 18px; cursor: pointer;
}

.breadcrumbs{ 
  margin: 6px 0 16px; font-size: 13px; color: var(--muted);
}
.breadcrumbs a{ color: var(--accent); text-decoration: none; }
.breadcrumbs span{ opacity: .7; }

.results{ display: grid; grid-template-columns: 1fr; gap: 8px; }

.row{
  display:flex; gap:12px; align-items: center;
  background: var(--card); border:1px solid var(--border); border-radius: 12px;
  padding: 10px 12px; cursor: pointer; transition: transform .05s ease, background .15s ease, border-color .15s ease;
}
.row:hover{ border-color: #263149; background: #151c2a; transform: translateY(-1px); }

.icon{ width: 28px; height: 28px; border-radius: 6px; background: #1a2333; display:grid; place-items:center; font-size: 16px; }
.icon[data-type="dir"]::before{ content: "📁"; }
.icon[data-type="file"]::before{ content: "📄"; }

.main{ display:grid; gap: 2px; }
.name{ font-weight: 700; }
.meta{ font-size: 12px; color: var(--muted); }

.empty{
  text-align:center; padding: 36px; border:1px dashed var(--border); color: var(--muted); border-radius: 12px; background: #0f1420;
}

/* Responsive */
@media (min-width: 680px) {
  .results{ grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .results{ grid-template-columns: 1fr 1fr 1fr; }
}
