/* --- Body & Background --- */
body {
  margin: 0;
  font-family: 'Quicksand', sans-serif;
  color: #7a5c7a;
  cursor: url("https://cur.cursors-4u.net/cursors/cur-13/cur1150.cur"), auto;
  background: url("bg.png") repeat;
  animation: bgmove 20s linear infinite;
}

@keyframes bgmove {
  from { background-position: 0 0; }
  to { background-position: 200px 200px; }
}

/* --- Container & Layout --- */
.container {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
  margin-top: 40px;
}

/* --- iPad Box & Screen --- */
.ipad-body {
  width: 650px;
  height: 500px; /* Fixed height so iPad doesn't resize with content */
  border-radius: 40px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  position: relative;
  background: #f0cfe8;
  display: flex;
  flex-direction: column;
}

.ipad-screen {
  width: 100%;
  height: 100%;
  border-radius: 25px;
  padding: 15px;
  box-sizing: border-box;
  position: relative;
  background: url("computer_bg.png") center/cover no-repeat;
  overflow-y: auto;
}

/* --- Camera & Home Button --- */
.camera {
  width: 10px;
  height: 10px;
  background: #333;
  border-radius: 50%;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
}

.home-button {
  width: 40px;
  height: 40px;
  border: 3px solid #e5b6d6;
  border-radius: 50%;
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
}

/* --- Tabs --- */
.tab {
  width: 100%;
  height: 100%;
  display: none;
  background: rgba(255, 240, 245, 0.9);
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  position: absolute;
  top: 0;
  left: 0;
  padding: 10px;
  overflow-y: auto;
}

.tab.active {
  display: block;
}

@keyframes fadein {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Tab Title --- */
.tab-title {
  background: linear-gradient(#fcd1e5, #f9bde0);
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  border-bottom: 2px solid #e5b6d6;
}

/* --- Tab Content Scroll --- */
.tab-content {
  padding: 10px;
  height: calc(100% - 30px);
  overflow-y: auto;
}

/* --- Paw Image Buttons --- */
.tab-img-button {
  width: 60px;
  height: 60px;
  margin: 5px;
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s;
  position: relative;
}
.tab-img-button:hover {
  transform: scale(1.2);
  filter: brightness(1.2);
}
.tab-img-button::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: #fde4f8;
  color: #7a5c7a;
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 0.7em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.tab-img-button:hover::after {
  opacity: 1;
}

/* --- Welcome Popup --- */
#welcome-popup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fde4f8;
  border: 2px dashed #f9cfea;
  padding: 15px 20px;
  border-radius: 12px;
  text-align: center;
  font-weight: bold;
  box-shadow: 0 5px 10px rgba(0,0,0,0.15);
  z-index: 100;
}

/* --- Side Navigation & Stickers --- */
.side {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.linkbox {
  width: 150px;
  background: #FFF7FC;
  border-radius: 25px;
  padding: 15px;
  border: 3px solid #FAD8F0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: fit-content;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.linkbox a {
  display: block;
  padding: 8px 12px;
  background: #fdf1f8;
  border-radius: 12px;
  text-decoration: none;
  color: #7a5c7a;
  font-weight: bold;
  text-align: center;
  transition: all 0.2s;
}

.linkbox a:hover {
  background: #fde4f8;
  transform: translateY(-2px);
  box-shadow: 0 3px #e5b6d6;
}

.sticker {
  text-align: center;
  animation: float 3s ease-in-out infinite alternate;
  transition: transform 0.2s;
}
.sticker img {
  width: 130px;
  border-radius: 20px;
}
.sticker:hover {
  transform: scale(1.15) rotate(-5deg);
}

@keyframes float {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-10px); }
}

/* --- Discord-Style Profile --- */
.profile-info {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}

.banner img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  margin-bottom: 10px;
}

.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #e5b6d6;
}

.user-details {
  display: flex;
  flex-direction: column;
}

.username {
  font-weight: bold;
  margin-bottom: 3px;
  color: #7a5c7a;
}

.bio {
  font-size: 0.85em;
  line-height: 1.2em;
}

.highlight {
  background: #ffd1dc;
  padding: 0 3px;
  border-radius: 3px;
}

.counts {
  font-size: 0.8em;
  margin-top: 3px;
  color: #7a5c7a;
}

/* --- Tweets --- */
.tweets {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 150px;
  overflow-y: auto;
  padding: 0 10px;
}

.tweet {
  display: flex;
  gap: 8px;
  background: rgba(255,255,255,0.9);
  border: 1px solid #e5b6d6;
  border-radius: 10px;
  padding: 6px;
}

.tweet-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.tweet-content {
  flex: 1;
}

.tweet-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8em;
  font-weight: bold;
  color: #7a5c7a;
  margin-bottom: 2px;
}

.tweet-text {
  font-size: 0.9em;
}

/* --- Pinterest Board (Aesthetic) --- */
.pinterest-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
}

.pinterest-board img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.pinterest-board img:hover {
  transform: scale(1.1);
}

/* --- Fandoms Stickers --- */
.fandom-content {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-height: 230px;
  overflow-y: auto;
}

.fandom-content img {
  width: 60px;
  border-radius: 12px;
  transition: transform 0.2s;
}

.fandom-content img:hover {
  transform: scale(1.2) rotate(-5deg);
}

/* --- Bottom GIF --- */
.bottomgif {
  width: 600px;
  margin: 40px auto;
  border: 3px solid #FAD8F0;
  border-radius: 20px;
  overflow: hidden;
}

/* --- Custom Scrollbars (cute) --- */
.tab-content::-webkit-scrollbar,
.tweets::-webkit-scrollbar,
.pinterest-board::-webkit-scrollbar,
.fandom-content::-webkit-scrollbar {
  width: 8px;
}

.tab-content::-webkit-scrollbar-track,
.tweets::-webkit-scrollbar-track,
.pinterest-board::-webkit-scrollbar-track,
.fandom-content::-webkit-scrollbar-track {
  background: #fde4f8;
  border-radius: 10px;
}

.tab-content::-webkit-scrollbar-thumb,
.tweets::-webkit-scrollbar-thumb,
.pinterest-board::-webkit-scrollbar-thumb,
.fandom-content::-webkit-scrollbar-thumb {
  background: #f9cfea;
  border-radius: 10px;
  border: 2px solid #fde4f8;
}

/* --- Tooltip for chocolate/ice cream --- */
.highlight-choco {
  position: relative;
  cursor: pointer;
}

.highlight-choco::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: #fde4f8;
  color: #7a5c7a;
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 0.75em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.highlight-choco:hover::after {
  opacity: 1;
}

.ipad-screen {
  width: 100%;
  height: calc(100% - 20px); /* leave a little padding inside iPad */
  border-radius: 25px;
  padding: 0; /* remove extra padding */
  box-sizing: border-box;
  position: relative;
  background: url("computer_bg.png") center/cover no-repeat;
  overflow: hidden; /* only inner tabs scroll */
  display: flex;
  flex-direction: column;
}

.tab-content {
  flex: 1; /* fill the iPad minus tab title */
  padding: 10px;
  overflow-y: auto;
}

.tweets {
  max-height: 100%; /* use full available height */
  overflow-y: auto;
  padding: 0 10px;
}