/* daily-art/index.css */
/* DAD-like: dark topbar, light page bg, white cards, blue action button */

:root{
  --bg: #eef1f4;
  --card: #ffffff;
  --border: #d7dce2;
  --text: #111827;
  --muted: #6b7280;
  --topbar: #2f3437;
  --blue: #1d4ed8;
  --blue-hover: #1e40af;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Topbar */
.topbar{
  background: var(--topbar);
  color: #fff;
  height: 56px;
  display:flex;
  align-items:center;
}
.topbar-inner{
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
  letter-spacing:.2px;
}

.brand-title{ font-size: 16px; }

.topbar-nav{
  display:flex; gap:14px;
}
.toplink{
  color:#cbd5e1;
  text-decoration:none;
  font-weight:600;
}
.toplink:hover{ color:#fff; }

/* Layout */
.wrap{
  width: min(1200px, calc(100% - 40px));
  margin: 26px auto;
}

.grid{
  display:grid;
  grid-template-columns: 280px 1fr;
  gap: 22px;
  align-items:start;
}

.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.profile{
  padding: 18px;
  text-align:center;
}
.pfp{
  width: fit-content;
  height: fit-content;
  margin: 0 auto 12px;

  padding: 10px;
  background: #f3f4f6;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.pfp-img{
  width: 140px;
  height: 140px;

  background-image: url("https://assets.junkumori.rip/RDP/32x32-02.gif");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  image-rendering: pixelated;
}


.profile-name{
  font-weight:700;
  margin-top: 6px;
  padding-bottom: 8px;
  font-size: 19px;
  line-height: 1.05;
}
.profile-meta{
  margin-top: 8px;
  padding-bottom: 0;
}
.profile-pixel{
  display: block;
  margin: 0 auto;
  width: 81px;
  height: auto;
  image-rendering: pixelated;
}
.profile-streak{
  color: #374151;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
}
.profile-highest{
  color: #4b5563;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
}
.content{
  padding: 0;
  overflow:hidden;
}
.content-head{
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}
.content-head h2{
  margin:0;
  font-size: 16px;
  font-weight: 800;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 34px;
  padding: 0 14px;
  border-radius: 4px;
  background: var(--blue);
  color:#fff;
  text-decoration:none;
  font-weight:700;
  border: 1px solid rgba(0,0,0,.08);
}
.btn:hover{ background: var(--blue-hover); }

/* ===== Latest Submissions: square thumbnails ===== */

.thumbstrip {
  display: flex;
  gap: 16px;
  padding: 12px 0 12px 16px; /* 驕ｶ鄙ｫ繝ｻadd left padding */
  overflow-x: auto;
}

.thumb {
  flex: 0 0 auto;
  width: 120px;
  aspect-ratio: 1 / 1;
  border: 1px solid #d0d7de;
  border-radius: 0;      /* 驕ｶ鄙ｫ繝ｻremove rounding */
  background: #fff;
  overflow: hidden;
}

/* Center-crop thumbnails (zoom into middle) */
.thumb img,
.thumb video{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;        /* keep full image visible inside square */
  object-position: 50% 50%;
  background: #fff;
}


/* Optional hover polish */
.thumb:hover {
  box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
}

/* Fallback for items with no preview */
.thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #777;
  background: #f2f2f2;
  text-align: center;
  padding: 8px;
}


.empty{
  padding: 18px 16px;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 860px){
  .grid{ grid-template-columns: 1fr; }
  .pfp{ width: fit-content; max-width: none; height: fit-content; }
  .thumb{ width: 46%; min-width: 160px; }
}

/* =========================
   ARCHIVE / GALLERY (full)
   Paste into daily-art/index.css
   ========================= */

/* Space inside the main content card so thumbnails don't touch the edges */
.card.content{
  padding: 16px;
}

/* "Displaying Submission ..." bar */
.archive-head{
  margin: 0 0 12px 0;
}

.archive-meta{
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d9d9d9;
  background: #ffffff;
  border-radius: 0;
  color: #333;
}

/* Pagination */
.pager{
  width: 100%;
  padding: 12px;
  border: 1px solid #d9d9d9;
  background: #ffffff;
  border-radius: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 12px 0 16px;
}

.pg{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid #d9d9d9;
  border-radius: 0;
  background: #fff;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
}

.pg:hover{
  background: #f3f3f3;
}

.pg.is-active{
  background: #ffefe6;
  border-color: #ff8f4a;
  color: #222;
  font-weight: 700;
}

.pg.is-disabled{
  opacity: 0.45;
  pointer-events: none;
}

.pg-ellipsis{
  border: 0;
  background: transparent;
  min-width: auto;
  padding: 0 4px;
}

.pg-prev,
.pg-next{
  min-width: auto;
}

/* Gallery grid */
.archive-grid{
  padding: 12px;               /* inner padding around thumbnails */
  border: 1px solid #d9d9d9;   /* optional: matches your bars */
  background: #ffffff;
  border-radius: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;                   /* space between thumbnails */
}

/* Clickable thumbnail tile */
.a-thumb{
  text-decoration: none;
  color: inherit;
  display: block;
}

.a-thumb-inner{
  position: relative;
  overflow: hidden;
  background: #fafafa;
  border: 1px solid #e3e3e3;
  border-radius: 0;
  aspect-ratio: 1 / 1;
}

/* Image fills tile */
.a-thumb-inner img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

/* Fallback if no preview */
.thumb-fallback{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #666;
  background: #f1f1f1;
}

/* Date badge */
.a-date{
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 4px 8px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  border-radius: 0;
}

/* Hover */
.a-thumb:hover .a-thumb-inner{
  border-color: #c8c8c8;
  background: #f6f6f6;
}

@media (max-width: 520px){
  .card.content{
    padding: 12px;
  }

  .archive-grid{
    padding: 10px;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
  }
}

.brand-title{
  color: inherit;
  text-decoration: none;
}

/* =========================
   ARCHIVE / GALLERY (full)
   Paste into daily-art/index.css
   ========================= */

/* Space inside the main content card so thumbnails don't touch the edges */
.card.content{
  padding: 16px;
}

/* "Displaying Submission ..." bar */
.archive-head{
  margin: 0 0 12px 0;
}

.archive-meta{
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d9d9d9;
  background: #ffffff;
  border-radius: 0;
  color: #333;
}

/* Pagination */
.pager{
  width: 100%;
  padding: 12px;
  border: 1px solid #d9d9d9;
  background: #ffffff;
  border-radius: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 12px 0 16px;
}

.pg{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid #d9d9d9;
  border-radius: 0;
  background: #fff;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
}

.pg:hover{
  background: #f3f3f3;
}

.pg.is-active{
  background: #ffefe6;
  border-color: #ff8f4a;
  color: #222;
  font-weight: 700;
}

.pg.is-disabled{
  opacity: 0.45;
  pointer-events: none;
}

.pg-ellipsis{
  border: 0;
  background: transparent;
  min-width: auto;
  padding: 0 4px;
}

.pg-prev,
.pg-next{
  min-width: auto;
}

/* Gallery grid */
.archive-grid{
  padding: 12px;               /* inner padding around thumbnails */
  border: 1px solid #d9d9d9;   /* optional: matches your bars */
  background: #ffffff;
  border-radius: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;                   /* space between thumbnails */
}

/* Clickable thumbnail tile */
.a-thumb{
  text-decoration: none;
  color: inherit;
  display: block;
}

.a-thumb-inner{
  position: relative;
  overflow: hidden;
  background: #fafafa;
  border: 1px solid #e3e3e3;
  border-radius: 0;
  aspect-ratio: 1 / 1;
}

/* Image fills tile */
.a-thumb-inner img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

/* Fallback if no preview */
.thumb-fallback{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #666;
  background: #f1f1f1;
}

/* Date badge */
.a-date{
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 4px 8px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  border-radius: 0;
}

/* Hover */
.a-thumb:hover .a-thumb-inner{
  border-color: #c8c8c8;
  background: #f6f6f6;
}

@media (max-width: 520px){
  .card.content{
    padding: 12px;
  }

  .archive-grid{
    padding: 10px;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
  }
}
/* Archive back button */
.archive-back{
  margin-top: 10px;
}

.btn-back{
  display: inline-block;
  padding: 6px 14px;
  background: #1f4fff;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  border-radius: 0;
}

.btn-back:hover{
  background: #163bd6;
}
/* ---- FIX: clickable sidebar icon/name should not change layout ---- */

/* make the pfp link behave like the old div */
.profile .pfp{
  display: block;
  text-decoration: none;
  color: inherit;
}

/* remove the weird focus outline look while keeping accessibility */
.profile .pfp:focus{
  outline: none;
}
.profile .pfp:focus-visible{
  outline: 2px solid #1f4fff;  /* or remove if you want no focus ring */
  outline-offset: 2px;
}

/* ensure the image block stays centered like before */
.profile .pfp-img{
  display: block;
  margin: 0 auto;
}

/* make the "Junku" name link look like plain text */
.profile .profile-name a{
  color: inherit;
  text-decoration: none;
}
.profile .profile-name a:hover{
  text-decoration: underline; /* optional */
}

/* keep the back button centered but not affecting other spacing */
.sidebar-actions{
  margin-top: 12px;
  display: flex;
  justify-content: center;
}
/* ===== Latest Submissions: 6x2 stacked grid (keep square thumbs) ===== */
/* Replace the old .thumbstrip block with this, keep your existing .thumb styles. */

.thumbgrid{
  display: grid;
  grid-template-columns: repeat(6, 120px);
  grid-auto-rows: 120px;
  gap: 16px;
  padding: 12px 16px 16px;
  overflow: hidden; /* no horizontal scrollbar */
}

/* keep your existing .thumb square rules; included here for completeness */
.thumb{
  width: 120px;
  height: 120px;
  border: 1px solid #d0d7de;
  border-radius: 0;
  background: #fff;
  overflow: hidden;
  display: block;
}

.thumb img,
.thumb video{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
}

.thumb:hover{
  box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
}

/* Responsive: keep square tiles, reduce columns as needed */
@media (max-width: 980px){
  .thumbgrid{ grid-template-columns: repeat(4, 120px); }
}
@media (max-width: 720px){
  .thumbgrid{ grid-template-columns: repeat(3, 120px); }
}
@media (max-width: 520px){
  .thumbgrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  .thumb{ width: 100%; aspect-ratio: 1 / 1; height: auto; }
}
