/* ============================================================
   Nana Networks Image Site — style.css
   Black / Gold gaming theme
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --gold:       #FFD700;
  --gold-dk:    #C9A000;
  --gold-light: #fff0a0;
  --bg:         #080808;
  --bg2:        #111111;
  --bg3:        #1a1a1a;
  --border:     #2a2a2a;
  --text:        #e8e8e8;
  --muted:       #888;
  --success:     #22c55e;
  --danger:      #ef4444;
  --nav-h:       68px;
  --radius:      6px;
  --shadow:      0 4px 24px rgba(0,0,0,.6);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Exo 2', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Diamond halftone background ───────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Cpolygon points='15,2 28,15 15,28 2,15' fill='%23FFD700'/%3E%3C/svg%3E");
  background-size: 30px 30px;
  pointer-events: none;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 60% 55% at 50% 50%, transparent 30%, rgba(8,8,8,.85) 100%);
  pointer-events: none;
}

.site-wrapper { position: relative; z-index: 1; }

/* ── Typography ─────────────────────────────────────────────── */
h1,h2,h3,h4 { font-family: 'Bebas Neue', sans-serif; letter-spacing: .04em; line-height: 1.1; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }
img { display: block; max-width: 100%; }

/* ── Navigation ─────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(8,8,8,.96);
  border-bottom: 2px solid var(--gold);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1rem;
  backdrop-filter: blur(8px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img { height: 42px; width: auto; }
.nav-logo-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: .06em;
  color: var(--gold);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-left: auto;
}
.nav-links a {
  display: block;
  padding: .4rem .85rem;
  color: var(--text);
  font-weight: 600;
  font-size: .88rem;
  border-radius: var(--radius);
  transition: color .15s, background .15s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); background: rgba(255,215,0,.08); }

.nav-links .btn-upload {
  background: var(--gold);
  color: #000 !important;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: .05em;
  padding: .4rem 1.1rem;
}
.nav-links .btn-upload:hover { background: var(--gold-dk); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--gold);
  font-size: 1.3rem;
  padding: .3rem .7rem;
  border-radius: var(--radius);
  cursor: pointer;
  margin-left: auto;
}

/* ── Hero / page hero ───────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 5rem 1.5rem 4rem;
}
.hero-logo {
  width: 160px;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 0 20px rgba(255,215,0,.4));
  animation: logoFloat 3.5s ease-in-out infinite;
}
@keyframes logoFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.hero-title {
  font-size: clamp(3rem,8vw,5.5rem);
  color: var(--gold);
  text-shadow: 0 0 40px rgba(255,215,0,.35);
  margin-bottom: .5rem;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 2rem;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.page-hero {
  background: linear-gradient(180deg, rgba(255,215,0,.06) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
}
.page-hero-title {
  font-size: clamp(2rem,5vw,3.5rem);
  color: var(--gold);
  margin-bottom: .4rem;
}
.page-hero-sub { color: var(--muted); font-size: .95rem; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 1.4rem;
  border-radius: var(--radius);
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  border: none;
  transition: all .18s;
  text-decoration: none;
}
.btn-gold {
  background: var(--gold);
  color: #000;
}
.btn-gold:hover { background: var(--gold-dk); color: #000; }

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-outline:hover { background: rgba(255,215,0,.1); }

.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover { background: #c53030; color: #fff; }

.btn-sm { padding: .35rem .85rem; font-size: .8rem; }

/* ── Section rule ───────────────────────────────────────────── */
.section-rule {
  width: 60px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: .6rem auto 1.5rem;
}
.section-title {
  font-size: clamp(1.8rem,4vw,2.8rem);
  color: var(--gold);
  text-align: center;
}

/* ── Gallery grid ───────────────────────────────────────────── */
.gallery-wrap { max-width: 1400px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }

.gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: .75rem;
}
.gallery-header h2 { font-size: 2rem; color: var(--gold); }
.gallery-count { color: var(--muted); font-size: .9rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .85rem;
}

.img-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative;
}
.img-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(255,215,0,.12);
  border-color: var(--gold);
}
.img-card a { display: block; text-decoration: none; }

.img-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: opacity .2s;
}
.img-card:hover .img-thumb { opacity: .92; }

.img-card-body {
  padding: .5rem .7rem;
}
.img-card-title {
  font-weight: 700;
  font-size: .82rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: .2rem;
}
.img-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .72rem;
  color: var(--muted);
}
.img-card-user { color: var(--gold); font-weight: 600; }

.img-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s;
}
.img-card:hover .img-card-overlay { opacity: 1; }
.overlay-icon { font-size: 2rem; }

/* ── Empty state ────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--muted);
}
.empty-state .e-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.empty-state h3 { color: var(--gold); font-size: 1.6rem; margin-bottom: .5rem; }

/* ── Single image view ──────────────────────────────────────── */
.image-view { max-width: 1200px; margin: 0 auto; padding: 1.5rem 1.5rem 4rem; }

.img-breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.img-breadcrumb a { color: var(--gold); }
.img-breadcrumb span { color: var(--muted); }

.image-view-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.5rem;
  align-items: start;
}

/* Image frame */
.img-frame {
  background: #000;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  line-height: 0;
}
.img-frame img {
  width: 100%;
  display: block;
  max-height: 72vh;
  object-fit: contain;
}

/* Direct link bar */
.direct-link-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .5rem .75rem;
  margin-top: .6rem;
  overflow: hidden;
}
.dl-label {
  font-size: .72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  flex-shrink: 0;
}
.dl-url {
  flex: 1;
  font-family: monospace;
  font-size: .78rem;
  color: var(--gold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.dl-copy {
  flex-shrink: 0;
  padding: .25rem .6rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-size: .75rem;
  font-family: 'Exo 2', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.dl-copy:hover { border-color: var(--gold); color: var(--gold); }
.dl-open {
  flex-shrink: 0;
  font-size: .9rem;
  color: var(--muted);
  padding: .2rem .35rem;
  border-radius: 4px;
  transition: color .15s;
}
.dl-open:hover { color: var(--gold); }

/* Sidebar cards */
.img-info-card,
.img-actions-card,
.img-details-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: .75rem;
}

.img-title {
  font-size: 1.5rem;
  color: var(--gold);
  word-break: break-word;
  margin-bottom: .5rem;
  line-height: 1.2;
}
.img-desc {
  font-size: .87rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: .75rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}

.img-uploader-row {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: .75rem;
  text-decoration: none;
}
.img-uploader-row strong { display: block; color: var(--gold); font-size: .9rem; }
.img-uploader-row span   { font-size: .75rem; color: var(--muted); }
.img-uploader-row:hover strong { color: var(--gold-light); }

.av-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.img-stats-row {
  display: flex;
  gap: 1rem;
}
.img-stat { display: flex; flex-direction: column; }
.stat-val { font-family: 'Bebas Neue', sans-serif; font-size: 1.3rem; color: var(--gold); line-height: 1.1; }
.stat-k   { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

.img-actions-card { display: flex; flex-direction: column; gap: .5rem; }
.img-actions-card form { margin: 0; }

.img-details-card h3 {
  font-size: .75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: .75rem;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  padding: .35rem 0;
  border-bottom: 1px solid var(--border);
  gap: .5rem;
}
.detail-row:last-child { border-bottom: none; }
.detail-row span:first-child { color: var(--muted); flex-shrink: 0; }
.detail-row span:last-child  { color: var(--text); text-align: right; word-break: break-all; }

.more-section { margin-top: 3rem; }
.more-section h2 { font-size: 1.5rem; color: var(--text); margin-bottom: 1rem; }
.more-section h2 a { color: var(--gold); }

/* ── Upload page ────────────────────────────────────────────── */
.upload-wrap { max-width: 720px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }

.drop-zone {
  border: 2px dashed var(--gold);
  border-radius: var(--radius);
  background: rgba(255,215,0,.03);
  text-align: center;
  padding: 3rem 1.5rem;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  margin-bottom: 1.5rem;
  position: relative;
}
.drop-zone.drag-over { background: rgba(255,215,0,.08); border-color: var(--gold-light); }
.drop-zone input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.drop-icon { font-size: 3rem; margin-bottom: .75rem; }
.drop-zone h3 { font-size: 1.5rem; color: var(--gold); margin-bottom: .4rem; }
.drop-zone p { color: var(--muted); font-size: .88rem; }

.preview-wrap { display: none; text-align: center; margin-bottom: 1.5rem; }
.preview-wrap img {
  max-height: 300px;
  max-width: 100%;
  border-radius: var(--radius);
  border: 2px solid var(--gold);
  margin: 0 auto;
}
.preview-name { color: var(--muted); font-size: .85rem; margin-top: .5rem; }

/* ── Forms ──────────────────────────────────────────────────── */
.form-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.form-card h2 { font-size: 1.8rem; color: var(--gold); margin-bottom: 1.25rem; }

.form-g { margin-bottom: 1.1rem; }
.form-g label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .35rem;
}
.form-g input,
.form-g textarea,
.form-g select {
  width: 100%;
  padding: .65rem .9rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: .95rem;
  font-family: 'Exo 2', sans-serif;
  transition: border-color .15s;
}
.form-g input:focus,
.form-g textarea:focus { outline: none; border-color: var(--gold); }
.form-g textarea { resize: vertical; }
.form-hint { font-size: .78rem; color: var(--muted); margin-top: .3rem; }

.form-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* ── Auth pages ─────────────────────────────────────────────── */
.auth-wrap {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}
.auth-box {
  background: var(--bg2);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
}
.auth-logo { text-align: center; margin-bottom: 1.5rem; }
.auth-logo img { height: 72px; margin: 0 auto .75rem; }
.auth-logo h1 { font-size: 2rem; color: var(--gold); }
.auth-logo p { color: var(--muted); font-size: .85rem; }
.auth-switch { text-align: center; margin-top: 1.25rem; font-size: .88rem; color: var(--muted); }

/* ── Alerts ─────────────────────────────────────────────────── */
.alert {
  padding: .8rem 1.1rem;
  border-radius: var(--radius);
  font-size: .9rem;
  margin-bottom: 1.25rem;
  border-left: 4px solid;
}
.alert-success { background: rgba(34,197,94,.1);  border-color: var(--success); color: #86efac; }
.alert-error   { background: rgba(239,68,68,.1);  border-color: var(--danger);  color: #fca5a5; }
.alert-info    { background: rgba(255,215,0,.08); border-color: var(--gold);    color: var(--gold); }

/* ── Profile page ───────────────────────────────────────────── */
.profile-wrap { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.profile-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.profile-av {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gold);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  flex-shrink: 0;
}
.profile-info h2 { font-size: 2rem; color: var(--gold); }
.profile-info p  { color: var(--muted); font-size: .88rem; }
.profile-stats { margin-left: auto; text-align: right; }
.profile-stat-num  { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; color: var(--gold); }
.profile-stat-label{ font-size: .8rem; color: var(--muted); }

/* ── Pagination ─────────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}
.pagination a,
.pagination span {
  display: inline-block;
  padding: .45rem .9rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: .88rem;
  color: var(--muted);
  transition: all .15s;
}
.pagination a:hover { border-color: var(--gold); color: var(--gold); background: rgba(255,215,0,.06); }
.pagination .current { background: var(--gold); color: #000; border-color: var(--gold); font-weight: 700; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  border-top: 2px solid var(--border);
  background: var(--bg2);
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  margin-bottom: 1rem;
}
.footer-logo img { height: 36px; }
.footer-logo span { font-family: 'Bebas Neue', sans-serif; font-size: 1.3rem; color: var(--gold); }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.footer-links a { color: var(--muted); font-size: .85rem; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { color: #444; font-size: .8rem; }

/* ── Utilities ───────────────────────────────────────────────── */
.inner    { max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; }
.mt1 { margin-top: .75rem; }
.mt2 { margin-top: 1.5rem; }
.text-muted { color: var(--muted); }
.badge {
  display: inline-block;
  padding: .15rem .55rem;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.badge-gold    { background: rgba(255,215,0,.15); color: var(--gold); border: 1px solid var(--gold); }
.badge-success { background: rgba(34,197,94,.15); color: var(--success); }
.badge-danger  { background: rgba(239,68,68,.15);  color: var(--danger); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .image-view-grid { grid-template-columns: 1fr; }
  .image-sidebar { order: 2; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(8,8,8,.98);
    flex-direction: column;
    gap: 0;
    padding: 1rem;
    border-bottom: 2px solid var(--gold);
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: .75rem 1rem; }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .auth-box { padding: 1.75rem 1.25rem; }
  .profile-header { flex-direction: column; text-align: center; }
  .profile-stats { margin-left: 0; text-align: center; }
}
