/* Basic reset + fonts */
* { box-sizing: border-box; margin: 0; padding: 0; }
html,body { height: 100%; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: linear-gradient(#050506, #0b0b0d);
  color: #e9eef6;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.site-header {
  background: rgba(12,12,14,0.8);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(6px);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 20px;
  display:flex;
  align-items:center;
  gap:18px;
  justify-content:space-between;
}
.header-inner h1 {
  font-size: 1.05rem;
  letter-spacing: 0.8px;
}

/* Search bar */
.search-wrap { flex: 1; display:flex; justify-content:flex-end; }
#searchBar {
  width: 100%;
  max-width: 520px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  color: #eaf2ff;
  outline: none;
  font-size: 0.96rem;
}
#searchBar::placeholder { color: rgba(230,240,255,0.35); }

/* Main grid */
main { flex: 1; padding: 28px 16px; }
.folders-section { max-width: 1200px; margin: 0 auto; }
.folders-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Folder card */
.folder-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}
.folder-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(2,8,23,0.6);
}
.thumb {
  aspect-ratio: 1/1;
  width: 100%;
  object-fit: cover;
  display:block;
  background: linear-gradient(135deg,#111,#222);
}
.folder-card .card-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.folder-title {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.folder-title h2 {
  font-size: 1.02rem;
  margin:0;
  word-break: break-word;
}
.folder-desc {
  font-size: 0.88rem;
  color: rgba(230,240,255,0.75);
  line-height: 1.2;
  margin-top: 6px;
  flex: 1;
}

/* Action area */
.card-actions {
  margin-top: 8px;
  display:flex;
  gap:10px;
  align-items:center;
}
.btn {
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 8px 12px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration:none;
  font-weight:600;
  font-size: 0.92rem;
  color: #fff;
  background: linear-gradient(180deg,#0078ff,#0061d6);
}
.btn.ghost {
  background: transparent;
  color: rgba(230,240,255,0.95);
  border: 1px solid rgba(255,255,255,0.04);
}

/* Empty state */
.empty-state {
  text-align:center;
  padding: 48px 20px;
  color: rgba(230,240,255,0.7);
}

/* Footer */
.site-footer {
  padding: 18px;
  text-align:center;
  border-top: 1px solid rgba(255,255,255,0.02);
  background: rgba(6,6,8,0.6);
  font-size: 0.95rem;
  color: rgba(230,240,255,0.85);
}

/* Responsive tweaks */
@media (max-width:520px) {
  .header-inner { padding: 14px; gap:10px; }
  #searchBar { max-width: 100%; }
  .folder-card { min-height: 300px; }
}

