/* === BASIC PAGE SETUP === */
body {
  background: #0d1117;
  font-family: "Comic Neue", "Comic Sans MS", sans-serif;
  font-size: 11px;
  color: #c7d8ff;
  margin: 0;
  padding: 10px;
  cursor: url('flan.gif'), auto;
}

/* === MAIN GRID LAYOUT === */
#container {
  display: grid;
  grid-template-columns: 200px 1fr;
  grid-gap: 10px;
  max-width: 850px;
  margin: 0 auto;
  background: #141a24;
  padding: 6px;
  box-shadow: 0 0 0 1px #1e2633 inset;
}

/* === BOXES === */
.box {
  background: #141a24;
  padding: 8px;
  box-shadow: 0 0 0 1px #1e2633 inset;
}

.box-title {
  background: linear-gradient(#ffb4b4, #b86363);
  font-weight: bold;
  font-size: 10px;
  text-transform: uppercase;
  padding: 3px 5px;
  margin: -8px -8px 8px -8px;
  color: #ffffff;
  letter-spacing: 0.3px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset;
  text-align: center;
}

/* === PROFILE SECTION === */
#profile .profile-content {
  text-align: center;
}

.avatar {
  width: 96px;
  height: 96px;
  background: #0d1117;
  margin-bottom: 6px;
  image-rendering: optimizeSpeed;
  box-shadow: 0 0 0 1px #1e2633 inset;
}

.name {
  font-weight: bold;
  color: #ff8c8c;
  margin: 4px 0;
  text-shadow: 0 0 2px rgba(255,140,140,0.4);
}

.status-box {
  margin-top: 6px;
  padding-top: 4px;
  font-size: 10px;
  color: #ffc2c2;
  line-height: 1.3em;
  background: rgba(255,180,180,0.05);
  box-shadow: 0 0 0 1px #1e2633 inset;
}

/* === WELCOME SECTION === */
#welcome .welcome-content {
  margin-bottom: 10px;
  color: #ffbaba;
}

#welcome .text-area {
  margin-top: 10px;
  background: #0d1117;
  padding: 8px;
  line-height: 1.5em;
  min-height: 150px;
  box-shadow: 0 0 0 1px #1e2633 inset;
}

#welcome .text-area h3 {
  font-size: 11px;
  border-bottom: 1px solid #1e2633;
  margin-top: 0;
  padding-bottom: 3px;
  color: #ffb4b4;
}

/* === MUSIC SECTION (FULL WIDTH) === */
.fullwidth {
  grid-column: 1 / -1;
  margin-top: 10px;
}

#music {
  background: #141a24;
}

#music .music-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 8px;
}

#music .music-content iframe {
  width: 90%;
  max-width: 600px;
  height: 140px;
  background: #0d1117;
  box-shadow: 0 0 6px rgba(255,180,180,0.2);
  border: none;
  box-sizing: border-box;
}

/* === COLLECTION / STAMPS SECTION === */
#collection {
  background: #141a24;
}

#collection .collection-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 8px 0;
}

#collection .collection-item {
  width: 80px;
  height: 40px;
  background: #0d1117;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px #1e2633 inset;
}

#collection .collection-item img {
  max-width: 100%;
  max-height: 100%;
  image-rendering: optimizeSpeed;
  display: block;
}

/* === TEXT ELEMENTS === */
h2, h3, p {
  margin: 0 0 4px 0;
}

a {
  color: #ffc4c4;
  text-decoration: none;
}

a:hover {
  color: #ffdcdc;
  text-shadow: 0 0 3px rgba(255,180,180,0.3);
}

hr {
  border: none;
  border-top: 1px dashed #1e2633;
  margin: 6px 0;
}

small {
  color: #6b7280;
  font-size: 10px;
}

/* === STAMP HOVER GLOW EFFECT === */
#collection .collection-item img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#collection .collection-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 8px 3px rgba(255,180,180,0.6), 0 0 12px 6px rgba(255,140,140,0.4);
  animation: stampGlow 1.6s ease-in-out infinite alternate;
}

@keyframes stampGlow {
  from {
    box-shadow: 0 0 6px 2px rgba(255,180,180,0.4), 0 0 10px 4px rgba(255,140,140,0.3);
  }
  to {
    box-shadow: 0 0 12px 4px rgba(255,180,180,0.8), 0 0 18px 8px rgba(255,140,140,0.6);
  }
}

.sparkle {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255, 120, 100, 0.6);
  z-index: 9999;
}
