/* ============================================
   KEDA'S KORNER — shared stylesheet
   Retro ocean / old-browser-window theme,
   matched to the Art Fight profile CSS.
   ============================================ */

* { box-sizing: border-box; }

body {
  margin: 0;
  padding-bottom: 80px; /* room for the fixed bottom box */
  background: #0b4a5a url("assets/ocean-seamless.gif") repeat;
  background-size: 200px auto;
  font-family: "Courier New", Courier, monospace;
  color: #0b4a5a;
  cursor: url("assets/fish-cursor.png") 4 4, auto;
}

a, button, .tab-btn {
  cursor: url("assets/fish-cursor.png") 4 4, pointer;
}

/* ---- the big "browser window" every page lives in ---- */
.window {
  position: relative;
  width: 1190px;
  max-width: calc(100% - 24px);
  margin: 24px auto;
  background: #ffffff url("assets/browser-bar.png") no-repeat top left;
  background-size: 100% 66px;
  padding: 78px 20px 20px 20px;
  border: 6px outset #7aa8bd;
  box-shadow: 8px 10px 0 rgba(5, 40, 50, .45);
}

/* ---- navigation styled like retro browser tabs ---- */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0;
  border-bottom: 3px ridge #9be2ea;
  padding-bottom: 8px;
}

.site-nav a {
  display: inline-block;
  background: #cdf1f5;
  color: #0b4a5a;
  border: 2px outset #f4feff;
  padding: 8px 18px;
  font-weight: bold;
  font-size: 15px;
  text-decoration: none;
  letter-spacing: 1px;
}

.site-nav a:hover { background: #aee6ec; }

.site-nav a.active {
  background: #7fd2dc;
  color: #06323e;
  border-style: inset;
}

/* ---- banner ---- */
.banner { width: 100%; height: auto; display: block; }

/* ---- dark teal panels (like Art Fight cards) ---- */
.card {
  background: rgba(8, 58, 70, .95);
  border: 3px ridge #9be2ea;
  margin: 14px 0;
}

.card, .card p, .card li, .card div, .card span { color: #eafcff; }

.card a { color: #9be2ea; }
.card a:hover { color: #eafcff; }

.card-header {
  background: #116f83;
  color: #eafcff;
  font-weight: bold;
  font-size: 18px;
  letter-spacing: 1px;
  padding: 8px 14px;
  border-bottom: 2px solid #9be2ea;
}

.card-body { padding: 14px; }

/* ---- light "popup" panels ---- */
.popup-panel {
  background: #cfe7f2;
  border: 4px outset #b8e2f2;
  margin: 14px 0;
}

.popup-inner {
  background: #ffffff;
  border: 2px inset #8fc9de;
  margin: 0 6px;
  padding: 12px 8px;
  text-align: center;
}

/* ---- buttons ---- */
.btn {
  display: inline-block;
  background: #cdf1f5;
  color: #0b4a5a;
  border: 2px outset #f4feff;
  padding: 10px 22px;
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;
  font-size: 15px;
  text-decoration: none;
  letter-spacing: 1px;
}

.btn:hover { background: #aee6ec; }
.btn:active { border-style: inset; }

/* big landing-page / commission buttons */
.btn-big {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 20px;
  padding: 18px 10px;
  margin: 10px 0;
}

/* warm accent button (pulled from the banner's orange lettering)
   for calls-to-action that need to pop against the teal */
.btn-accent {
  background: #e8935a;
  color: #5b2413;
  border: 2px outset #f7c9a3;
}

.btn-accent:hover { background: #f2a76f; }

/* greyed-out "coming soon" button */
.btn-disabled {
  background: #d7dfe2;
  color: #7b8b91;
  border: 2px outset #eef2f3;
  pointer-events: none;
}

.badge-soon {
  display: inline-block;
  background: #e8935a;
  color: #5b2413;
  border: 2px outset #f7c9a3;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 8px;
  letter-spacing: 1px;
  transform: rotate(-4deg);
}

/* ---- general text bits ---- */
a { color: #116f83; }
a:hover { color: #0b4a5a; }

p, li { color: #0b4a5a; line-height: 1.5; }

hr { border: none; border-top: 2px dashed #116f83; margin: 18px 0; }

h1, h2, h3 {
  color: #0b4a5a;
  letter-spacing: 1px;
}

.center { text-align: center; }

/* ---- two-column layout ---- */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.col { flex: 1 1 300px; }

/* ---- gallery ---- */
.tab-btn {
  background: #cdf1f5;
  color: #0b4a5a;
  border: 2px outset #f4feff;
  padding: 10px 24px;
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;
  font-size: 16px;
  letter-spacing: 1px;
}

.tab-btn:hover { background: #aee6ec; }

.tab-btn.active {
  background: #7fd2dc;
  color: #06323e;
  border-style: inset;
}

/* smaller sub-tabs inside each gallery section */
.tab-btn.subtab {
  font-size: 12px;
  padding: 5px 12px;
  margin: 2px;
}

.subtab-row { border-bottom: 2px dashed #9be2ea; padding-bottom: 8px !important; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  padding: 14px;
}

.gallery-item {
  background: #ffffff;
  border: 3px ridge #9be2ea;
  padding: 8px;
  text-align: center;
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border: 2px inset #8fc9de;
}

.gallery-item .caption {
  font-size: 13px;
  font-weight: bold;
  color: #0b4a5a;
  padding-top: 6px;
  display: block;
}

/* lightbox for clicking gallery images */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 40, 50, .85);
  z-index: 100;
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border: 6px outset #7aa8bd;
  background: #fff;
}

/* ---- pagedoll sitting on the bottom box ---- */
.pagedoll {
  position: fixed;
  right: 24px;
  bottom: 48px; /* feet resting on top of the bottom box */
  width: 110px;
  height: auto;
  z-index: 50;
  pointer-events: none;
}

/* ---- box spanning the bottom of the screen ---- */
.bottom-box {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  background: #cfe7f2;
  border-top: 4px outset #b8e2f2;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  font-weight: bold;
  color: #0b4a5a;
}

.bottom-box a { color: #116f83; text-decoration: none; }
.bottom-box a:hover { color: #0b4a5a; }

/* the sneaky little admin dot, bottom-left of the landing window */
.admin-dot {
  position: absolute;
  left: 7px;
  bottom: 7px;
  width: 11px;
  height: 11px;
  background: #2a6fb5;
  border: 1px solid #14456f;
  border-radius: 50%;
  opacity: .5;
}

.admin-dot:hover { opacity: 1; }

/* ---- "view in spanish?" bar at the top ---- */
.lang-bar {
  background: #cdf1f5;
  border-bottom: 3px ridge #9be2ea;
  padding: 8px 12px;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  color: #0b4a5a;
}

.lang-bar .btn-small { margin: 0 4px; }

/* the always-visible language switch button in the bottom bar */
.bottom-box a.lang-toggle {
  background: #cdf1f5;
  border: 2px outset #f4feff;
  padding: 4px 10px;
  font-weight: bold;
}

.bottom-box a.lang-toggle:hover { background: #aee6ec; }

/* ---- gallery subcategory headers ---- */
.category-header {
  color: #9be2ea;
  font-weight: bold;
  font-size: 16px;
  letter-spacing: 1px;
  border-bottom: 2px dashed #9be2ea;
  margin: 14px 14px 0 14px;
  padding-bottom: 4px;
}

/* ---- fish clicker easter egg ---- */
.fish-clicker { text-align: center; padding: 10px; }

.fish-clicker img {
  width: 90px;
  transition: transform .08s;
  user-select: none;
  -webkit-user-drag: none;
}

.fish-clicker img:active { transform: scale(.85) rotate(-8deg); }

/* ---- mobile ---- */
@media (max-width: 700px) {
  .window { padding: 60px 10px 12px 10px; }
  .pagedoll { width: 70px; right: 8px; }
}

/* ---- admin page bits ---- */
.admin-list { list-style: none; padding: 0; margin: 0; }

.admin-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 2px inset #8fc9de;
  padding: 6px 10px;
  margin: 6px 0;
}

.admin-list img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border: 2px solid #7aa8bd;
}

.admin-list input[type="text"], .admin-input {
  flex: 1;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  padding: 6px 8px;
  border: 2px inset #8fc9de;
  color: #0b4a5a;
}

.btn-small { padding: 4px 10px; font-size: 12px; }
