/* ======================
   SHARED STYLES FOR IFRAME PAGES
   ====================== */
/* ======================
   CUSTOM FONTS
   ====================== */
@font-face {
  font-family: 'E4Digital';
  src: url('/fonts/E4 Digital Final.ttf') format('truetype');
}
@font-face {
  font-family: 'DotGothic';
  src: url('/fonts/DotGothic16-Regular.ttf') format('truetype');
}
/* ======================
   PAGE BACKGROUND
   ====================== */
body {
  margin: 0;
  padding: 0;
  background-color: #e9bfe9; /* fallback color */
  background-image: url('/images/your-background.png'); /* change to your image */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  font-family: 'DotGothic', Arial, sans-serif;
  color: #000;
  min-height: 100vh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
/* ======================
   TYPOGRAPHY
   ====================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'E4Digital', Arial, sans-serif;
  margin-top: 0;
}
p {
  font-family: 'DotGothic', Arial, sans-serif;
}
a {
  color: #ff4fa3;
}
a:hover {
  color: #ff79b8;
}
/* ======================
   SCROLLING STAMP MARQUEE
   ====================== */
.stamp-marquee {
  width: calc(100% + 6px);
  margin-left: -3px;
  height: 55px;
  overflow: hidden;
  background: linear-gradient(to right, #ff79b8, #ffb6d3, #fff, #ffb6d3, #ff79b8);
  margin-top: 0;
  margin-bottom: 0;
  border: 3px solid #000;
  border-top: none;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.stamp-marquee.reverse {
  margin: 0;
  margin-left: -3px;
  margin-top: auto;
  border: 3px solid #000;
  border-bottom: none;
}
.stamp-track-wrapper {
  display: flex;
}
.stamp-track {
  display: flex;
  gap: 10px;
  padding: 0 10px;
  align-items: center;
  flex-shrink: 0;
}
.stamp {
  height: 45px;
  width: auto;
  flex-shrink: 0;
}

/* Pink pipe divider between stamp loops */
.stamp-divider {
  font-size: 35px;
  font-weight: bold;
  color: #ff4fa3;
  flex-shrink: 0;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* ======================
   HOME PAGE GRID LAYOUT
   ====================== */
.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  flex: 1;
  min-height: 0;
  padding: 10px;
  box-sizing: border-box;
  margin-top: 10px;
  margin-bottom: 10px;
}
/* Grid placement */
.welcome-box {
  grid-column: 1 / 3; /* spans columns 1-2 */
  grid-row: 1; /* row 1 only */
}
.tumblr-box {
  grid-column: 3;
  grid-row: 1;
}
.sysadmin-box {
  grid-column: 1;
  grid-row: 2;
}
.subspace-box {
  grid-column: 2;
  grid-row: 2;
}
.gifypet-box {
  grid-column: 3;
  grid-row: 2;
}
/* ======================
   WINDOW BOXES
   ====================== */
.window {
  background: #e9bfe9; /* solid background for embed boxes */
  border: 3px solid #000;
  border-radius: 0;
  position: relative;
  padding-top: 28px; /* space for label */
  min-height: 120px;
  box-sizing: border-box;
  transition: box-shadow 0.3s ease;
}

.window:hover {
  box-shadow: 0 0 20px rgba(255, 79, 163, 0.6), 0 0 40px rgba(255, 79, 163, 0.3);
}
.welcome-box {
  background: linear-gradient(to bottom, #ff79b8 0%, #ffb6d3 50%, #fff 100%);
}
.window-label {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: #ff4fa3;
  color: #000;
  font-family: 'E4Digital', Arial, sans-serif;
  font-size: 14px;
  padding: 4px 10px;
  border-bottom: 3px solid #000;
  border-radius: 0;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.window-buttons {
  display: flex;
  gap: 3px;
}

.window-btn {
  width: 16px;
  height: 16px;
  background: linear-gradient(to bottom, #ff79b8 0%, #ffb6d3 50%, #fff 100%);
  border: 2px solid #000;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
  color: #000;
  cursor: default;
  font-family: Arial, sans-serif;
  line-height: 1;
}
.window-content {
  padding: 10px;
  height: calc(100% - 28px);
  overflow: auto;
  box-sizing: border-box;
}
.window-content h1 {
  font-size: 16px;
  margin: 0 0 10px 0;
}
.window-content p {
  margin: 0;
  font-size: 14px;
}

/* ======================
   SYSADMIN LOG - TERMINAL STYLE
   ====================== */

/* Terminal black background */
.sysadmin-box {
  background: #0a0a0a;
  padding-top: 28px;
}

/* Scrollable terminal content area */
.terminal-content {
  padding: 12px;
  height: calc(100% - 28px);
  overflow-y: auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Individual log entry */
.log-entry {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Date stamp */
.log-date {
  font-family: 'DotGothic', monospace;
  font-size: 12px;
  color: #ff4fa3;
  opacity: 0.7;
}

/* Entry text */
.log-text {
  font-family: 'DotGothic', monospace;
  font-size: 14px;
  color: #ff4fa3;
  margin: 0;
  line-height: 1.4;
}

/* Subtle scanline effect for CRT vibes */
.sysadmin-box::after {
  content: '';
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.1) 0px,
    rgba(0, 0, 0, 0.1) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  z-index: 1;
}

/* Custom scrollbar for terminal feel */
.terminal-content::-webkit-scrollbar {
  width: 8px;
}

.terminal-content::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.terminal-content::-webkit-scrollbar-thumb {
  background: #ff4fa3;
  border-radius: 0;
}

.terminal-content::-webkit-scrollbar-thumb:hover {
  background: #ff79b8;
}

/* ======================
   TUMBLR PORTAL STYLES
   ====================== */

/* Dark background to match sysadmin */
.tumblr-box {
  background: #0a0a0a;
}

.tumblr-feed-content {
  padding: 10px;
  height: calc(100% - 28px);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Portal link */
.tumblr-portal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 20px;
  border: 2px solid #ff4fa3;
  border-radius: 8px;
  background: rgba(255, 79, 163, 0.1);
  transition: all 0.3s ease;
  width: 80%;
  max-width: 180px;
}

.tumblr-portal:hover {
  background: rgba(255, 79, 163, 0.25);
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 79, 163, 0.5);
}

.portal-icon {
  font-size: 32px;
  margin-bottom: 8px;
  animation: pulse 2s infinite;
}

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

.portal-text {
  font-family: 'DotGothic', monospace;
  font-size: 13px;
  color: #ff4fa3;
  text-align: center;
  margin-bottom: 4px;
}

.portal-subtext {
  font-family: 'DotGothic', monospace;
  font-size: 11px;
  color: #ff4fa3;
  opacity: 0.6;
}

/* ======================
   CBOX / SUBSPACE STYLES
   ====================== */

.subspace-box {
  overflow: hidden;
}

.cbox-content {
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  position: absolute;
  top: 25px;
  left: 0;
  right: 0;
  bottom: 0;
}

.cbox-content iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ======================
   POKE Q STYLES
   ====================== */

.gifypet-box {
  background: linear-gradient(to bottom, #ff79b8 0%, #ffb6d3 50%, #fff 100%);
  overflow: hidden;
}

.gifypet-content {
  height: calc(100% - 28px);
  width: 100%;
  box-sizing: border-box;
  overflow: auto;
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  bottom: 0;
}

.gifypet-content iframe {
  width: 314px;
  height: 321px;
  border: none;
  display: block;
  margin: auto;
}

/* Gifypet custom scrollbar */
.gifypet-content::-webkit-scrollbar {
  width: 8px;
}

.gifypet-content::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.gifypet-content::-webkit-scrollbar-thumb {
  background: #ff4fa3;
  border: 2px solid #000;
  border-radius: 0;
}

.gifypet-content::-webkit-scrollbar-thumb:hover {
  background: #ff79b8;
  border: 2px solid #000;
}
