/* ==========================================
   1. RESET & BASE STYLES
   ========================================== */
* {
  box-sizing: border-box;
}

body {
  background-image: url('https://i.pinimg.com/control1/736x/ff/48/b5/ff48b55868fbf29cf4189d50e91721c0.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  font-family: 'Courier New', monospace;
  margin: 0;
  padding: 20px 10px;
  display: flex;
  justify-content: center;
}

/* Container Wrapper Utama */
.canvas-wrapper {
  width: 100%;
  max-width: 850px; /* Ukuran pas dan tidak terlalu melar */
  margin: 0 auto;
}

/* ==========================================
   2. HEADER & BANNER
   ========================================== */
.header-banner {
  background-color: #002b80;
  background-image: url('https://artwork.neocities.org/photos/night/tumblr_66cee71867a13c6d57ebe9b5aa7f9a02_6da5a07a_500.gif');
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: contain;
  backdrop-filter: blur(6px);
  border: 2px solid #5ba2ff;
  border-radius: 20px;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  margin-bottom: 15px;
}

.header-title h1 {
  margin: 0;
  color: #ffffff;
  font-size: 22px;
}

/* ==========================================
   3. LAYOUT UTAMA (2 KOLOM SAMA LEBAR)
   ========================================== */
.main-layout {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
  margin-top: 10px;
}

/* Kiri dan Kanan Membagi Layar 50% - 50% */
.left-column,
.right-column {
  flex: 1;
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Frame Window Box */
.window-box {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border: 2px solid #2161cc;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  width: 100%;
}

.window-header {
  background: linear-gradient(180deg, #184dbf 0%, #002b80 100%);
  color: #ffffff;
  padding: 8px 12px;
  font-weight: bold;
  font-size: 13px;
}

.window-content {
  padding: 12px;
}

/* ==========================================
   4. STAMPS MARQUEE BOX STYLES
   ========================================== */
.LC-box {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border: 2px solid #2161cc;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  position: relative;
  width: 100%;
}

.LC-box .tab {
  background: linear-gradient(180deg, #184dbf 0%, #002b80 100%);
  color: #ffffff;
  padding: 6px 12px;
  font-weight: bold;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Tooltip Info Icon */
.LC-box .info {
  position: absolute;
  top: 6px;
  right: 10px;
  cursor: pointer;
  z-index: 10;
}

.LC-box .info .tooltiptext {
  visibility: hidden;
  width: 200px;
  background-color: #333;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 6px 8px;
  position: absolute;
  z-index: 20;
  right: 0;
  top: 25px;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 10px;
}

.LC-box .info:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* Area Marquee Bergerak */
#stamps-marquee {
  overflow: hidden;
  white-space: nowrap;
  background: #fdfdfd;
  width: 100%;
}

.marquee2-inner,
#marquee2-inner {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  animation: stamps-slide 12s linear infinite;
  width: max-content;
}

.marquee2-inner:hover,
#marquee2-inner:hover {
  animation-play-state: paused;
}

.marquee2-inner img,
#marquee2-inner img {
  height: 40px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  border-radius: 2px;
}

/* Keyframe Animasi Marquee */
@keyframes stamps-slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Efek Border Rainbow Glow */
.window-box, .header-banner {
  animation: border-sparkle 3s linear infinite;
}

@keyframes border-sparkle {
  0% { border-color: #5ba2ff; box-shadow: 0 0 8px rgba(91, 162, 255, 0.6); }
  66% { border-color: #a8f0ff; box-shadow: 0 0 8px rgba(168, 240, 255, 0.6); }
  100% { border-color: #5ba2ff; box-shadow: 0 0 8px rgba(91, 162, 255, 0.6); }
}

/* ==========================================
   5. NAVIGATION BUTTONS & TAB CONTROLS
   ========================================== */
.nav-button-list {
  display: flex;
  flex-direction: row;
  gap: 6px;
  width: 100%;
}

.custom-btn {
  flex: 1;
  display: block;
  text-align: center;
  padding: 6px 12px;
  background: #f0ede6;
  color: #111;
  text-decoration: none;
  font-weight: bold;
  font-size: 12px;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #707070;
  border-bottom: 2px solid #707070;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.1s ease;
}

.custom-btn:hover,
.custom-btn.active {
  background: #5ba2ff;
  color: #ffffff;
  border-top: 2px solid #707070;
  border-left: 2px solid #707070;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
}

/* Tab Content Show/Hide */
.tab-content {
  display: none;
  padding: 8px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 4px;
  border: 1px dashed #5ba2ff;
  color: #111;
  font-size: 13px;
  margin-top: 10px;
}

.tab-content.active-content {
  display: block;
}

/* ==========================================
   6. PROFILE SECTION
   ========================================== */
.profile-subtabs {
  display: flex;
  gap: 4px;
  margin-bottom: -1px;
}

.subtab-btn {
  background: #e0e0e0;
  border: 1px solid #707070;
  border-bottom: none;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.subtab-btn.active {
  background: #ffffff;
  border-bottom: 1px solid #ffffff;
}

.profile-inner-box {
  display: flex;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #707070;
  padding: 8px;
  border-radius: 0 4px 4px 4px;
}

.profile-sidebar {
  width: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.avatar-frame {
  width: 80px;
  height: 80px;
  border: 2px solid #5ba2ff;
  background: #eaf2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  overflow: hidden;
}

.avatar-frame img {
  max-width: 100%;
  max-height: 100%;
}

.profile-name {
  font-size: 12px;
  color: #184dbf;
  text-align: center;
}

.profile-name span {
  font-size: 10px;
  color: #666;
}

.badge-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
}

.badge-tag {
  background: #f0f0f0;
  border: 1px solid #b0b0b0;
  border-radius: 10px;
  font-size: 9px;
  font-weight: bold;
  text-align: center;
  padding: 2px 4px;
  color: #333;
}

.badge-tag.rainbow {
  background: linear-gradient(90deg, #ffc0cb, #e0ffff, #e6e6fa);
  border-color: #5ba2ff;
}

.profile-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  line-height: 1.3;
}

.bio-section {
  background: #fafafa;
  padding: 6px;
  border-left: 3px solid #184dbf;
  border-radius: 2px;
}

.section-title {
  background: #184dbf;
  color: #ffffff;
  font-weight: bold;
  padding: 1px 5px;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 4px;
  font-size: 10px;
}

.bio-section p {
  margin: 0;
  color: #222;
}

.subtab-content {
  display: none;
}

.subtab-content.active-subcontent {
  display: block;
}

/* ==========================================
   7. PLAYLIST / AUDIO TRACKLIST
   ========================================== */
.tracklist-box {
  background: #ffffff;
  border: 1px solid #707070;
  border-radius: 4px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 250px;
  overflow-y: auto;
}

.track-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  background: #f7f9fc;
  border: 1px solid #e0e8f5;
  border-radius: 4px;
  gap: 10px;
}

.track-item:hover {
  background: #eaf2ff;
  border-color: #5ba2ff;
}

.track-details {
  display: flex;
  align-items: center;
  flex: 1;
}

.track-num {
  font-weight: bold;
  color: #184dbf;
  margin-right: 8px;
}

.track-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.track-info strong {
  color: #111;
}

.track-info small {
  color: #666;
}

.mini-audio {
  height: 28px;
  width: 120px;
}

/* ==========================================
   8. PHOTO GRID & MODAL POPUP
   ========================================== */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: #ffffff;
  border: 1px solid #707070;
  padding: 6px;
  border-radius: 4px;
}

.grid-card {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 2px solid #5ba2ff;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.grid-card:hover {
  transform: scale(1.04);
  border-color: #184dbf;
}

.grid-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Modal Pop-up */
.photo-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
}

.photo-modal-content {
  background: #ffffff;
  border: 2px solid #184dbf;
  border-radius: 8px;
  padding: 15px;
  max-width: 300px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.close-modal {
  position: absolute;
  top: 5px;
  right: 10px;
  font-size: 20px;
  font-weight: bold;
  color: #184dbf;
  cursor: pointer;
}

.photo-modal-content img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 4px;
  margin: 10px 0;
  border: 1px solid #ddd;
}

.photo-modal-content h3 {
  margin: 0;
  font-size: 14px;
  color: #184dbf;
}

.photo-modal-content p {
  margin: 5px 0 0;
  font-size: 12px;
  color: #333;
  line-height: 1.3;
}
/* ==========================================
   STATUS & UPDATES (GIF GRID + PHOTO)
   ========================================== */
.gif-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 kolom adil */
  gap: 6px;
  margin-bottom: 10px;
  justify-items: center;
  align-items: center;
}

.gif-grid img {
  width: 100%;
  max-height: 35px; /* Tinggi GIF biar seragam */
  object-fit: contain;
  border-radius: 3px;
}

.status-photo-container {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #5ba2ff;
}

.status-photo {
  width: 100%;
  height: auto;
  display: block;
}
/* ==========================================
   9. RESPONSIVE DESIGN (TAMPILAN HP)
   ========================================== */
@media screen and (max-width: 768px) {
  .main-layout {
    flex-direction: column !important;
  }

  .left-column,
  .right-column {
    width: 100% !important;
  }

  .profile-inner-box {
    flex-direction: column;
    align-items: center;
  }

  .profile-sidebar {
    width: 100%;
  }
}