/* Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
	margin: 0;
	background: #ffffff; /* main white */
	color: #111;
	font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
	line-height: 1.6;
}

/* Global links */
a, a:visited { color: #111; text-decoration: none; }
a:hover { text-decoration: none; }

/* Navbar */
.navbar { position: sticky; top: 0; background: #1a1a1a; border-bottom: 1px solid #111; padding: 10px 16px; z-index: 10; }
.navbar-inner { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { font-weight: 800; font-size: 18px; color: #fff; letter-spacing: 0.2px; }
.brand .muted { color: #cfcfcf; font-weight: 600; margin-left: 4px; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav a { color: #f0f0f0; padding: 6px 8px; border-radius: 6px; }
.nav a:hover { background: #2a2a2a; }
.nav-form { display: flex; align-items: center; gap: 8px; }
.nav-input { padding: 6px 8px; background: #2a2a2a; border: 1px solid #3a3a3a; border-radius: 999px; color: #f5f5f5; font-size: 13px; min-width: 140px; }
.nav-input::placeholder { color: #bdbdbd; }
.nav-button { padding: 8px 12px; border-radius: 999px; border: 1px solid #3a3a3a; background: #f0f0f0; color: #111; font-weight: 700; cursor: pointer; }
.nav-button:hover { background: #ffffff; }

/* Layout */
.container { max-width: 1080px; margin: 0 auto; padding: 24px; }
.row { display: flex; align-items: center; gap: 12px; }
.space-between { justify-content: space-between; }

/* Headings */
h1, h2, h3 { font-weight: 700; letter-spacing: 0.2px; font-family: Georgia, Cambria, "Times New Roman", Times, serif; color: #1a1a1a; }
h1 { font-size: 38px; margin: 6px 0 12px; }
h2 { font-size: 22px; margin: 0 0 12px; }
h3 { font-size: 18px; margin: 0 0 10px; color: #3a3a3a; }

/* Cards */
.card { background: #fff; border: 1px solid #ece7e3; border-radius: 12px; padding: 16px; margin: 16px 0; box-shadow: 0 6px 24px rgba(0,0,0,0.05); }

/* Forms */
label { display: block; margin-bottom: 6px; color: #494949; }
input[type="text"], input[name="username"] { width: 100%; padding: 12px 14px; background: #fff; border: 1px solid #e7e2de; border-radius: 10px; color: #1f1f1f; }
input[type="file"] { color: #5a5a5a; }
button { margin-top: 10px; padding: 12px 18px; background: #111; color: #fff; border: 0; border-radius: 999px; cursor: pointer; }
button:hover { filter: brightness(1.05); }

/* Alerts */
.alert { border-radius: 8px; padding: 10px 12px; margin: 10px 0 0; font-size: 13px; }
.alert.error { background: #fff1f0; border: 1px solid #ffd4d1; color: #a23a2a; }
.alert.success { background: #f2fff0; border: 1px solid #cfe9cf; color: #2a7a2a; }
.hint { color: #bdbdbd; font-size: 12px; margin-top: 8px; }
.muted { color: #9a9a9a; }
.link { color: #111; border-bottom: 1px dotted #cfc4be; }
.link:hover { border-bottom-color: #a78f86; }

/* Media grids */
.preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-top: 12px; }
.preview img, .preview video { width: 100%; height: 120px; object-fit: cover; border-radius: 10px; border: 1px solid #ece7e3; background: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.item { display: block; }
.item img, .item video { width: 100%; height: 140px; object-fit: cover; border-radius: 12px; border: 1px solid #ece7e3; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.item img:hover, .item video:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0,0,0,0.08); }
.item.file { color: #333; font-size: 12px; word-break: break-word; }
.tile { display: flex; flex-direction: column; gap: 8px; }
.item-meta { color: #7a7a7a; font-size: 12px; }

/* Focus */
:focus-visible { outline: 2px dashed #aaa; outline-offset: 2px; }


