/* ═══════════════════════════════════════════════════════
   MAMORE — MySpace/SpaceHey Style Profile
   Color scheme: dark maroon + hot pink + cyan
═══════════════════════════════════════════════════════ */

:root {
  --bg-body:        #520030;
  --bg-page:        #1a0010;
  --bg-box:         rgb(32 7 33 / 83%); /*rgb(32 7 33 / 83%); rgba(45, 0, 32, 0.9)*/
  --bg-box-header:  #7c295a;
  --color-primary:  #ff0095;
  --color-secondary:#00ffff;
  --color-tertiary: #ff66cc;
  --color-text:     #dadada;
  --color-text-dim: #ffccee;
  --color-past:     #885566;
  --border-main:    6px double #ff0095;
  --border-inner:   1px solid #7a0048;
  --border-dashed: #c787b2;
}

/* ─── RESET & BASE ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100vh;
}

body {
  background-image: url('/images/background/stars.gif');
  background-position: center;
  background-repeat: repeat;
  background-attachment: fixed;
  color: var(--color-text);
  font-family: 'Courier New', monospace;
  font-size: 15px;
  line-height: 1.5;
}

a {
  color: var(--color-secondary);
  text-decoration: none;
}

a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ─── PAGE WRAPPER ─── */
#page-wrapper {
  max-width: 900px;
  margin: 20px auto;
  border: var(--border-main);
  padding: 0;
}

/* ─── PHOTO BOX: NAME HEADER ─── */
#band-name-header {
  font-family: monospace;
  font-size: 30px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: none;
  background: transparent;
  border-bottom: none;
  padding: 0px 0px 0px;
  animation: none;
}

/* ─── PHOTO + INFO ROW ─── */
#photo-info-row {
  display: flex;
  align-items: stretch;
  margin-bottom: 10px;
}

#band-main-photo {
  width: 70%;
  aspect-ratio: 1 / 1;
  min-height: unset;
  max-height: unset;
  object-fit: cover;
  flex-shrink: 0;
  background: #1a0010;
  display: block;
}

#band-quick-info {
  flex: 1;
  padding: 10px 10px;
  display: flex;
  font-family: Arial, sans-serif;
  flex-direction: column;
  gap: 8px;
}

.info-label {
  display: block;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--color-tertiary);
  margin-bottom: 2px;
}

#last-active-minutes {
  color: var(--color-secondary);
  font-size: 12px;
  font-weight: bold;
}

#band-status-text {
  color: var(--color-text);
  font-size: 12px;
}


/* ─── MAIN TWO-COLUMN LAYOUT ─── */
#main-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 0;
  align-items: start;
  padding: 8px;
  gap: 8px;
}

/* ─── PROFILE BOX (shared style for all sections) ─── */
.profile-box {
  border: 2px dashed var(--border-dashed);
  background: var(--bg-box);
  margin-bottom: 8px;
  overflow: hidden;
}

.box-header {
  
  background: var(--bg-box-header);
  color: var(--color-text-dim);
  font-family: monospace;
  font-size: 13px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: normal;
  padding: 4px 5px;
  border-bottom: none;
  animation: none;
}

.box-header-social {
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: normal;
  color: #ff00dd;

}

.tour-header {
  font-family: monospace;
  font-size: 17px;
  font-weight: 900;
  text-transform: none;
  letter-spacing: normal;
  color: var(--color-secondary);
  padding: 0px 5px;

}

/* ─── LEFT COLUMN ─── */
#left-column {
  display: flex;
  flex-direction: column;
}

/* Photo box: no outer border */
#photo-box {
  border: none;
  background: transparent;
  margin-bottom: 8px;
}


/* Social / Action section */
#action-buttons {
  background: var(--bg-box);
  border-style: dashed;
  border-width: 2px;
  border-color: var(--border-dashed);
}

#social-heading {
  font-family: Arial, sans-serif;
  font-size: 13px;
  color: var(--color-text-dim);
  background: var(--bg-box-header);
      padding-left: 5px;
}

#social-grid {
  display: grid;
    padding: 10px 10px 12px;

  grid-template-columns: 1fr 1fr;
  gap: 4px 8px;

}

.social-link {
  font-family: Arial, sans-serif;
  font-size: 15px;
  color: #FF00A9;
  font-weight: 700;

  text-decoration: none;
}

.social-link:hover {
  color: #00FF1E;
  text-decoration: underline;
}

.heart {
  font-size: 10px;
}

.btn-primary {
  display: block;
  width: 100%;
  background: var(--color-primary);
  color: #000;
  border: 2px solid #fff;
  padding: 7px 10px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  letter-spacing: 1px;
  transition: box-shadow 0.2s, background 0.2s;
}

.btn-primary:hover {
  background: #ff33aa;
  box-shadow: 0 0 12px var(--color-primary), 0 0 4px var(--color-primary);
  text-decoration: none;
  color: #000;
}

.btn-secondary {
  display: block;
  width: 100%;
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-primary);
  padding: 5px 10px;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  cursor: pointer;
  text-align: center;
  transition: box-shadow 0.2s, color 0.2s;
}

.btn-secondary:hover {
  color: var(--color-primary);
  box-shadow: 0 0 8px rgba(255, 0, 149, 0.5);
}

/* Details Table */
#details-box {
  padding-bottom: 6px;
}

.details-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  padding: 0 8px;
}

.details-table td {
  padding: 4px 8px;
  border-bottom: var(--border-inner);
  vertical-align: top;
}

.details-table td:first-child {
  color: var(--color-tertiary);
  font-weight: bold;
  white-space: nowrap;
  width: 90px;
}

.details-table tr:last-child td {
  border-bottom: none;
}

/* Merch grid (Bandcamp) */
#merch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 8px;
  border-bottom: var(--border-inner);
}

.merch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  gap: 4px;
}

.merch-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--border-dashed);
  display: block;
  transition: border-color 0.15s;
}

.merch-item:hover img {
  border-color: var(--color-primary);
}

.merch-title {
  font-size: 10px;
  color: var(--color-text-dim);
  text-align: center;
  line-height: 1.3;
}

.merch-price {
  font-size: 10px;
  color: var(--color-secondary);
}

.merch-fallback {
  display: block;
  padding: 10px;
  color: var(--color-primary);
  font-size: 13px;
  text-decoration: none;
}

.merch-fallback:hover {
  color: #00cc44;
  text-decoration: underline;
}

/* Shop Links */
#shop-links-list {
  list-style: none;
  padding: 8px 10px;
}

#shop-links-list li {
  border-bottom: var(--border-inner);
  padding: 7px 0;
}

#shop-links-list li:last-child {
  border-bottom: none;
}

#shop-links-list .shop-label {
  display: block;
  font-weight: bold;
  color: var(--color-primary);
  font-size: 15px;
  font-weight: 700;
}

#shop-links-list .shop-desc {
  font-size: 11px;
  color: var(--color-text-dim);
}

/* Friends */
.friends-count {
  font-size: 11px;
  color: var(--color-text-dim);
  padding: 4px 10px;
  border-bottom: var(--border-inner);
}

.friends-count span {
  color: var(--color-secondary);
  font-weight: bold;
}

#friends-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border-inner);
  padding: 0;
}

.friend-card {
  background: var(--bg-box);
  text-align: center;
  padding: 10px 6px;
  transition: background 0.2s;
}



.friend-card a {
  display: block;
  color: var(--color-text);
  text-decoration: none;
}

.friend-card img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 2px solid var(--color-primary);
  display: block;
  margin: 0 auto 5px;
  background: #3d0030;
}

.friend-card .friend-name {
  font-size: 11px;
  color: var(--color-secondary);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.friend-card:hover .friend-name{
  text-decoration: underline;
}

/* ─── RIGHT COLUMN ─── */
#right-column {
  display: flex;
  flex-direction: column;
}

/* About / Bio */
#about-box {
  padding-bottom: 10px;
}

#about-gifs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px;
}

#about-gifs img {
  max-height: 80px;
  width: auto;
  height: auto;
  display: block;
  image-rendering: pixelated;
}

#bio-text {
  padding: 10px 12px;
  color: var(--color-text);
  line-height: 1.7;
  border-bottom: var(--border-inner);
}

.section-sub-header {
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-tertiary);
  padding: 6px 12px 2px;
  border-bottom: var(--border-inner);
  margin: 0;
}

#members-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: var(--border-inner);
}

.member-card {
  text-align: center;
  min-width: 70px;
}

.member-card img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border: 2px solid var(--color-primary);
  display: block;
  margin: 0 auto 4px;
  background: #3d0030;
}

.member-name {
  font-size: 11px;
  color: var(--color-secondary);
  display: block;
}

.member-role {
  font-size: 10px;
  color: var(--color-text-dim);
  display: block;
}

#influences-text {
  padding: 8px 12px;
  color: var(--color-text-dim);
  font-style: italic;
  font-size: 12px;
}

/* Tour Dates */
#tour-box {
  padding-bottom: 4px;
}

.empty-msg {
  padding: 12px;
  color: var(--color-text-dim);
  font-style: italic;
  font-size: 12px;
}

#tour-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

#tour-table thead tr {
  background: #3d0030;
}

#tour-table th {
  text-align: left;
  padding: 6px 10px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-tertiary);
  border-bottom: 2px solid var(--color-primary);
}

#tour-table tbody tr:nth-child(even) {
  background: #3d0024;
}

#tour-table tbody tr:nth-child(odd) {
  background: var(--bg-box);
}

#tour-table td {
  padding: 0px 6px;
  border-bottom: var(--border-inner);
  vertical-align: middle;
      font-size: 17px;
}

#tour-table tbody tr:last-child td {
  border-bottom: none;
}

#tour-table tr.past-show td {
  color: var(--color-past);
}

.tour-date-col {
  white-space: nowrap;
  font-weight: bold;
}

.badge-soldout {
  background: #880000;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  letter-spacing: 1px;
  display: inline-block;
}

.badge-past {
  background: #443344;
  color: #aaa;
  font-size: 10px;
  padding: 2px 6px;
  display: inline-block;
}

/* Photo Gallery */
#gallery-box {
  padding-bottom: 6px;
}

#photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 6px;
}

.gallery-thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  background: #3d0030;
  transition: border-color 0.2s, transform 0.15s;
  display: block;
}

.gallery-thumb:hover {
  border-color: var(--color-primary);
  transform: scale(1.03);
}

/* Lightbox */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightbox.hidden {
  display: none;
}

#lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  cursor: pointer;
}

#lightbox-inner {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
}

#lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border: 4px solid var(--color-primary);
  display: block;
}

#lightbox-caption {
  color: var(--color-text-dim);
  margin-top: 8px;
  font-size: 13px;
  font-style: italic;
}

#lightbox-close {
  position: absolute;
  top: -16px;
  right: -16px;
  background: var(--color-primary);
  color: #000;
  border: none;
  font-size: 22px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-weight: bold;
  line-height: 34px;
  text-align: center;
  padding: 0;
}

#lightbox-close:hover {
  background: #fff;
}

/* Comments */
#comments-box {
  padding-bottom: 10px;
}

#comment-form {
  padding: 10px 12px;
  border-bottom: 2px solid var(--color-primary);
  background: #1a0010;
}

.form-row {
  margin-bottom: 8px;
}

#comment-name,
#comment-text {
  width: 100%;
  background: #2d0020;
  border: 2px solid var(--color-primary);
  color: #fff;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  padding: 6px 8px;
  outline: none;
  transition: box-shadow 0.2s;
}

#comment-name:focus,
#comment-text:focus {
  box-shadow: 0 0 8px rgba(255, 0, 149, 0.5);
}

#comment-text {
  height: 80px;
  resize: vertical;
}

#comment-status {
  margin-left: 10px;
  font-size: 11px;
  color: var(--color-secondary);
}

#comment-status.error {
  color: #ff4444;
}

#comments-list {
  padding: 0 12px;
}

.comment-empty {
  padding: 16px 0;
  text-align: center;
  color: var(--color-text-dim);
  font-style: italic;
  font-size: 12px;
}

.comment-card {
  border-left: 4px solid var(--color-primary);
  padding: 10px 10px 10px 12px;
  margin: 12px 0;
  background: #1a0010;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 5px;
}

.comment-name {
  color: var(--color-secondary);
  font-weight: bold;
  font-size: 13px;
}

.comment-time {
  color: var(--color-text-dim);
  font-size: 10px;
}

.comment-body {
  color: var(--color-text);
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ─── FOOTER ─── */
#page-footer {
  text-align: center;
  padding: 14px;
  border-top: var(--border-main);
  font-size: 11px;
  color: var(--color-text-dim);
  letter-spacing: 1px;
  background: #100008;
}

/* ─── ANIMATIONS ─── */
@keyframes glow-pulse {
  0%, 100% {
    text-shadow:
      0 0 10px var(--color-primary),
      0 0 22px var(--color-primary),
      0 0 40px rgba(255, 0, 149, 0.5),
      3px 3px 0 #000;
  }
  50% {
    text-shadow:
      0 0 16px var(--color-primary),
      0 0 32px var(--color-primary),
      0 0 60px rgba(255, 0, 149, 0.7),
      3px 3px 0 #000;
  }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes header-glow {
  0%, 100% { background: var(--bg-box-header); }
  50% { background: #960059; }
}

/* ─── RESPONSIVE (single column below 700px) ─── */
@media (max-width: 700px) {
  #page-wrapper {
    margin: 0;
    border-left: none;
    border-right: none;
    width: 100%;
  }

  #main-layout {
    display: flex;
    flex-direction: column;
    padding: 6px;
    gap: 6px;
  }

  #left-column, #right-column {
    display: contents;
  }

  #photo-box, #tour-box, #details-box, #shop-box,
  #friends-box, #about-box, #gallery-box, #comments-box {
    width: 100%;
  }

  #photo-box    { order: 1; }
  #tour-box     { order: 2; }
  #details-box  { order: 3; }
  #shop-box     { order: 4; }
  #friends-box  { order: 5; }
  #about-box    { order: 6; }
  #gallery-box  { order: 7; }
  #comments-box { order: 8; }

  #band-main-photo {
    width: 70%;
  }

  #tour-table {
    font-size: 10px;
  }

  #tour-table th, #tour-table td {
    padding: 4px 4px;
  }

  .profile-box {
    overflow: hidden;
  }

  img {
    max-width: 100%;
  }

  #photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #friends-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  #social-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 400px) {
  #friends-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
