/* ============================================
   DREAMLAB — by DrynWorks
   Older Brother Core — 2000s Bedroom Aesthetic
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=VT323&family=Inter:wght@400;500;600&family=Silkscreen&family=Caveat:wght@400;500;600;700&family=Kalam:wght@300;400;700&family=Share+Tech+Mono&family=Playfair+Display:wght@400;700&display=swap');

/* ===== VARIÁVEIS ===== */
:root {
  --bg: #1a1d2e;
  --bg-warm: #1e1f2b;
  --card: #252839;
  --card-header: #2d3048;
  --border: #3a3d54;
  --border-hover: #5a5d7a;
  --accent: #7eb8d4;
  --accent-soft: #5a9ab8;
  --accent-glow: rgba(126, 184, 212, 0.3);
  --green: #7ab87a;
  --green-soft: #5a9a5a;
  --yellow: #d4c456;
  --pink: #d48aa0;
  --blue-soft: #6a8cba;
  --white: #e8e0d4;
  --text: #b8b0a4;
  --text-dim: #7a7568;
  --font-pixel: 'VT323', monospace;
  --font-silk: 'Silkscreen', monospace;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
  --font-hand: 'Caveat', cursive;
  --font-serif: 'Playfair Display', serif;
  --window-radius: 6px;
  --shadow: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.5);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-2px, -2px); }
  30% { transform: translate(3px, 1px); }
  50% { transform: translate(-1px, 3px); }
  70% { transform: translate(2px, -1px); }
  90% { transform: translate(-3px, 2px); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse-soft {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  background-image: url('images/fundo.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Film grain overlay */
body::after {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9998;
  animation: grain 0.5s steps(1) infinite;
  opacity: 0.5;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.2s ease;
}

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

/* ===== DESKTOP WALLPAPER BG ===== */
.desktop-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: 
    radial-gradient(ellipse at 20% 80%, rgba(126, 184, 212, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(106, 140, 186, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(30, 31, 43, 0.6) 0%, rgba(26, 29, 46, 0.6) 100%);
}

/* ===== TASKBAR ===== */
.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 38px;
  background: linear-gradient(180deg, rgba(58, 61, 84, 0.92) 0%, rgba(45, 48, 72, 0.95) 50%, rgba(37, 40, 57, 0.95) 100%);
  border-top: 1px solid #4a4d64;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 4px;
  font-family: var(--font-pixel);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.taskbar-start {
  background: linear-gradient(180deg, #7eb8d4, #5a9ab8);
  color: var(--bg);
  border: 1px solid #9ecce4;
  border-radius: 3px;
  padding: 2px 12px;
  font-family: var(--font-silk);
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}

.taskbar-start:hover {
  background: linear-gradient(180deg, #9ecce4, #6aaac8);
}

.taskbar-separator {
  width: 1px;
  height: 24px;
  background: #4a4d64;
  margin: 0 4px;
}

.taskbar-items {
  flex: 1;
  display: flex;
  gap: 3px;
  overflow: hidden;
}

.taskbar-item {
  padding: 3px 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 18px;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  text-decoration: none;
}

.taskbar-item:hover {
  background: rgba(126, 184, 212, 0.1);
  border-color: var(--accent-soft);
  color: var(--white);
  text-decoration: none;
}

.taskbar-item.active {
  background: rgba(126, 184, 212, 0.15);
  border-color: var(--accent);
  color: var(--accent);
}

.taskbar-clock {
  font-size: 19px;
  color: var(--text);
  padding: 0 8px;
  border-left: 1px solid #4a4d64;
  margin-left: auto;
}

/* ===== PAGE LAYOUT ===== */
.page-wrapper {
  position: relative;
  z-index: 1;
  padding: 20px 20px 60px;
  min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
  position: fixed;
  left: 16px;
  top: 16px;
  width: 200px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ===== WINDOW COMPONENT ===== */
.window {
  background: rgba(20, 18, 30, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--window-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.3s, border-color 0.3s, transform 0.2s ease;
  animation: fadeInUp 0.5s ease-out both;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.window:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.window-header {
  background: rgba(30, 28, 42, 0.9);
  padding: 4px 10px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  cursor: default;
  user-select: none;
}

.window-title {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  flex: 1;
}

.window-title::before { content: '[ '; opacity: 0.5; }
.window-title::after  { content: ' ]'; opacity: 0.5; }

.window-body {
  padding: 14px;
}

/* ===== PROFILE CARD (Sidebar) ===== */
.profile-card .window-body {
  text-align: center;
  padding: 16px 12px;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  border: 2px solid var(--accent-soft);
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2d3048, #1a1d2e);
  font-size: 36px;
}

.profile-name {
  font-family: var(--font-pixel);
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 2px;
}

.profile-status-label {
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.profile-status {
  font-family: var(--font-pixel);
  font-size: 15px;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-soft 2s ease-in-out infinite;
}

/* ===== NAV WINDOW (Sidebar) ===== */
.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  color: var(--text);
  font-family: var(--font-pixel);
  font-size: 17px;
  margin: 10px 5px;
  position: relative;
  background: rgba(20, 20, 25, 0.6);
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.15s;
  text-decoration: none;
}

/* Tape texture */
.nav-item::before, .nav-item::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 15px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(2px);
  pointer-events: none;
  z-index: 2;
}

.nav-item::before {
  top: -6px; left: -15px;
  transform: rotate(-15deg);
  border-left: 1px dashed rgba(255,255,255,0.2);
}

.nav-item::after {
  bottom: -6px; right: -15px;
  transform: rotate(-15deg);
  border-right: 1px dashed rgba(255,255,255,0.2);
}

.nav-item:nth-child(odd) { transform: rotate(-0.8deg); }
.nav-item:nth-child(even) { transform: rotate(0.8deg); }

.nav-item:hover {
  background: rgba(126, 184, 212, 0.15);
  color: var(--accent);
  text-decoration: none;
  transform: rotate(0deg) scale(1.05);
  z-index: 10;
}

.nav-item.active {
  background: rgba(126, 184, 212, 0.2);
  color: var(--accent);
  border: 1px solid var(--accent-soft);
  box-shadow: 3px 3px 0 var(--accent-soft);
}

.nav-icon {
  font-size: 16px;
  width: 22px;
  text-align: center;
}

/* ===== MUSIC PLAYER (Sidebar) ===== */
.music-player .window-body.music-player-body {
  padding: 6px;
  background: #0d0d0d;
}

.music-player .window-body.music-player-body iframe {
  border-radius: 4px;
  display: block;
}

/* ===== ANIME FAVORITES WIDGET ===== */
.anime-widget {
  animation-delay: 0.3s;
}

.anime-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.anime-entry {
  font-family: var(--font-pixel);
  font-size: 17px;
  color: var(--text);
  padding: 5px 8px;
  border-radius: 4px;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.anime-entry:hover {
  background: rgba(212, 138, 160, 0.08);
  color: var(--pink);
}

.anime-bullet {
  color: var(--pink);
  font-size: 14px;
}

/* ===== PLAYLIST LINK IN STATUS ===== */
.status-value.listening a {
  color: var(--pink);
  font-family: var(--font-pixel);
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s;
}

.status-value.listening a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ===== MAIN CONTENT AREA ===== */
.main-content {
  margin-left: 232px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 900px;
}

/* ===== HEADER BANNER ===== */
.header-banner {
  animation-delay: 0.05s;
}

.header-banner .window-body {
  padding: 0;
}

.banner-content {
  padding: 28px 28px 22px;
  background:
    linear-gradient(135deg, rgba(126, 184, 212, 0.08) 0%, transparent 60%),
    linear-gradient(225deg, rgba(106, 140, 186, 0.06) 0%, transparent 60%);
  position: relative;
}

.banner-title {
  font-family: var(--font-silk);
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 4px;
  letter-spacing: 2px;
}

.banner-sub {
  font-family: var(--font-pixel);
  font-size: 20px;
  color: var(--text-dim);
  letter-spacing: 1px;
}

.marquee-bar {
  background: rgba(0,0,0,0.2);
  padding: 5px 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
}

.marquee-content {
  display: inline-block;
  white-space: nowrap;
  animation: marqueeScroll 25s linear infinite;
  font-family: var(--font-pixel);
  font-size: 16px;
  color: var(--text-dim);
}

.marquee-content .sep {
  color: var(--accent);
  margin: 0 16px;
}

/* ===== WIDGETS ROW ===== */
.widgets-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ===== WELCOME WIDGET (Paper Scrap — folha velha) ===== */
.welcome-widget {
  animation-delay: 0.1s;
  background: #d4c9a8 !important;
  color: #2a2825 !important;
  border: 1px solid #b8ad90 !important;
  border-radius: 2px !important;
  box-shadow: 3px 3px 15px rgba(0,0,0,0.25) !important;
  transform: rotate(-1deg);
  clip-path: polygon(0% 2%, 98% 0%, 100% 97%, 1% 100%);
}

.welcome-widget .window-header {
  background: #c8bda0 !important;
  border-bottom: 1px solid #b8ad90 !important;
}

.welcome-widget .window-title {
  color: #7a7060 !important;
}

.welcome-text {
  font-family: var(--font-hand);
  font-size: 22px;
  color: #2a2520;
  line-height: 1.4;
}

.welcome-text .hi {
  color: #2a5a7a;
  font-size: 28px;
  font-weight: bold;
}

.welcome-text .name-hl {
  color: #1e4560;
  text-decoration: underline wavy #3a7098;
}

.typing-cursor {
  display: inline-block;
  width: 8px;
  height: 20px;
  background: #3a3835;
  margin-left: 3px;
  vertical-align: text-bottom;
  animation: blink-cursor 1s step-end infinite;
}

/* ===== STATUS WIDGET (Terminal) ===== */
.status-widget {
  animation-delay: 0.15s;
  background: #000 !important;
  color: #33ff33 !important;
  border: 2px solid #1a1a1a !important;
  border-radius: 0 !important;
  position: relative;
  overflow: hidden;
}

.status-widget::after {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  z-index: 2;
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
}

.status-widget .window-header {
  background: #111 !important;
  border-bottom: 1px solid #222 !important;
}

.status-widget .window-title {
  color: #33ff33 !important;
  font-family: var(--font-mono);
}

.status-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-mono);
  position: relative;
  z-index: 1;
}

.status-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  padding: 2px 0;
  border-bottom: none !important;
}

.status-row::before {
  content: ">>";
  color: #1a881a;
  font-weight: bold;
}

.status-label {
  color: #22aa22;
  font-size: 14px;
}

.status-value {
  color: #33ff33;
  font-size: 14px;
}

.status-widget .status-value {
  text-shadow: 0 0 5px rgba(51, 255, 51, 0.5);
}

.status-value a {
  color: #33ff33;
  text-decoration: underline;
}

/* random_facts.cfg — suaviza verde saturado */
#facts-window .status-label        { color: var(--text-dim); }
#facts-window .status-value        { color: var(--text); text-shadow: none; }
#facts-window .status-row::before  { content: '>'; color: var(--text-dim); opacity: 0.4; font-weight: normal; }

/* ===== LINKS WIDGET (Zine/Cutout) ===== */
.links-widget {
  animation-delay: 0.2s;
  background: #e0e0e0 !important;
  color: #111 !important;
  border: none !important;
  border-radius: 0 !important;
  transform: rotate(1deg);
  clip-path: polygon(2% 0%, 95% 2%, 100% 95%, 5% 100%, 0% 50%);
  box-shadow: 5px 5px 0px #333 !important;
}

.links-widget .window-header {
  background: #ccc !important;
  border-bottom: 2px solid #111 !important;
}

.links-widget .window-title {
  color: #111 !important;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.link-entry {
  padding: 10px !important;
  border-bottom: 1px dashed #555;
  transition: background 0.1s;
}

.link-entry:hover {
  background: #fff !important;
  color: #000 !important;
}

.link-entry-name {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 18px !important;
  text-transform: uppercase;
}

.link-entry:nth-child(even) .link-entry-name {
  font-size: 15px !important;
  font-family: var(--font-serif);
}

/* ===== VIBES WIDGET (Gothic) ===== */
.vibes-widget {
  animation-delay: 0.25s;
  background: #1a0a0a !important;
  color: #d4cdc3 !important;
  border: 1px solid #3d1a1a !important;
  border-radius: 0 !important;
  box-shadow: 0 0 20px rgba(0,0,0,0.8) !important;
}

.vibes-widget .window-header {
  background: #2a1515 !important;
  border-bottom: 1px solid #3d1a1a !important;
}

.vibes-widget .window-title {
  color: #8a3a3a !important;
  font-family: var(--font-serif);
  font-style: italic;
}

.vibes-widget .window-title::before { content: '[ '; }
.vibes-widget .window-title::after  { content: ' ]'; }

.vibe-tag {
  background: transparent !important;
  border: 1px solid #3d1a1a !important;
  border-radius: 0 !important;
  color: #b8b0a4 !important;
  font-family: var(--font-serif) !important;
  font-size: 14px !important;
}

.vibe-tag::before { content: "✦ "; opacity: 0.5; }

.vibe-tag:hover {
  border-color: #8a3a3a !important;
  color: #fff !important;
  background: #2a1515 !important;
}


/* ===== DESKTOP ICONS ===== */
.desktop-icons {
  position: fixed;
  right: 20px;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 10;
}

.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  width: 80px;
}

.desktop-icon:hover {
  background: rgba(126, 184, 212, 0.1);
  text-decoration: none;
}

.desktop-icon-img {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  background: rgba(20, 18, 30, 0.9);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  padding: 4px 8px;
  display: block;
  width: 44px;
  text-align: center;
  border-radius: 1px;
  box-shadow: 1px 1px 0 rgba(0,0,0,0.4);
  letter-spacing: 0.5px;
}

.desktop-icon-label {
  font-family: var(--font-pixel);
  font-size: 13px;
  color: var(--white);
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/* ===== FOOTER ===== */
.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px;
  margin-left: 232px;
  max-width: 900px;
}

.footer-text {
  font-family: var(--font-pixel);
  font-size: 15px;
  color: var(--text-dim);
}

.footer-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.footer-badge {
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--text-dim);
}

/* ===== ABOUT PAGE ===== */
.about-body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
}

.about-body p {
  margin-bottom: 14px;
}

.about-body .hl {
  color: var(--accent);
  font-weight: 600;
}

.about-avatar-lg {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  border: 2px solid var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2d3048, #1a1d2e);
  font-size: 56px;
  float: left;
  margin: 0 18px 10px 0;
}

.about-interests {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.about-interests h3 {
  font-family: var(--font-pixel);
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 8px;
}

/* ===== SISTER PAGE ===== */
.sister-window {
  border-color: #ffb3c6;
}

.sister-window .window-title {
  color: #ffb3c6;
}

.sister-body {
  text-align: center;
  padding: 24px 20px;
}

.sister-emoji-row {
  font-family: var(--font-mono);
  font-size: 20px;
  color: #ffb3c6;
  margin-bottom: 14px;
  letter-spacing: 10px;
  animation: float 3s ease-in-out infinite;
}

.sister-message {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  max-width: 480px;
  margin: 0 auto;
}

.sister-message .hl {
  color: #ffb3c6;
  font-weight: 600;
}

.sister-future {
  margin-top: 18px;
  padding: 14px 18px;
  background: rgba(255, 179, 198, 0.05);
  border: 1px dashed #ffb3c6;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: #ffb3c6;
  line-height: 1.6;
}

.sister-deco {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 18px;
  letter-spacing: 8px;
  color: #ffb3c6;
  opacity: 0.7;
}

/* ===== CONSTRUCTION TAG ===== */
.construction-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border: 1px dashed var(--border);
  border-radius: 3px;
  margin-top: 8px;
}

/* ===== VISITOR COUNTER ===== */
.visitor-counter {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 8px;
}

.counter-digits {
  display: inline-flex;
  gap: 2px;
}

.digit {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  color: var(--green);
  font-family: var(--font-pixel);
  font-size: 16px;
  padding: 2px 5px;
  min-width: 18px;
  text-align: center;
}

/* ===== DIARY PAGE (Grunge Paper) ===== */
.diary-container {
  max-width: 720px;
  margin: 0 auto;
}

.diary-container hr {
  border: none;
  border-top: 1px solid rgba(209, 207, 197, 0.25);
  margin: 24px 50px;
}

.diary-header-window {
  background: #f0ebe0 !important;
  color: #2a2825 !important;
  border: 1px solid #d4cdc3 !important;
  transform: rotate(0.5deg);
}

.diary-header-window .window-header {
  background: #e5dfd4 !important;
}

.diary-header-window .window-title {
  color: #555 !important;
  font-family: var(--font-serif);
}

.diary-title {
  font-family: var(--font-hand);
  font-size: 48px;
  font-weight: 700;
  color: #333;
  margin-bottom: 4px;
}

.diary-subtitle {
  font-family: var(--font-hand);
  font-size: 18px;
  color: #666;
}

.diary-entry {
  position: relative;
  background: #f0ebe0 !important;
  background-image: 
    linear-gradient(#d1cfc5 .1em, transparent .1em) !important;
  background-size: 100% 2em !important;
  color: #2a2825 !important;
  border: 1px solid #d4cdc3 !important;
  padding: 40px 50px !important;
  box-shadow: 10px 10px 30px rgba(0,0,0,0.1) !important;
  animation: fadeInUp 0.5s ease-out both;
}

/* Coffee stains */
.diary-entry::before {
  content: "";
  position: absolute;
  top: 20px; right: 40px;
  width: 100px; height: 100px;
  background: rgba(101, 67, 33, 0.05);
  border-radius: 50%;
  box-shadow: 200px 400px 0 rgba(101, 67, 33, 0.03), -150px 250px 0 rgba(101, 67, 33, 0.04);
  pointer-events: none;
  z-index: 5;
}

.diary-date {
  font-family: var(--font-hand);
  font-size: 18px;
  color: #888;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.diary-text {
  font-family: var(--font-hand);
  font-size: 24px;
  line-height: 2em; /* Matches background-size */
  color: #222;
}


/* ===== BANNER TYPEWRITER ===== */
@keyframes typewriter-banner {
  from { max-width: 0; }
  to   { max-width: 100%; }
}

.banner-sub {
  overflow: hidden;
  white-space: nowrap;
  animation: typewriter-banner 2.2s steps(50, end) 0.4s both;
}

/* ===== WIDGETS: VISITANTES.LOG & AGORA.TXT ===== */
.visitas-body {
  font-family: var(--font-mono);
  text-align: center;
  padding: 16px 14px;
}

.visitas-label {
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 10px;
  opacity: 0.8;
}

.visitas-number {
  font-family: var(--font-pixel);
  font-size: 34px;
  color: var(--accent);
  letter-spacing: 4px;
  border: 1px solid var(--border);
  padding: 4px 14px;
  display: inline-block;
  background: rgba(0,0,0,0.25);
  margin: 6px 0;
}

.visitas-meta {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 8px;
  opacity: 0.7;
}

.agora-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.agora-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
}

.agora-bullet {
  color: var(--accent);
  margin-right: 6px;
}

.agora-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 12px;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  font-style: italic;
  opacity: 0.7;
}

/* ===== PERSONALITY EFFECTS ===== */

/* Cursor customizado — mira estilo anos 2000 (verde = normal, laranja = clicável) */
* {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cline x1='10' y1='0' x2='10' y2='7' stroke='%237ab87a' stroke-width='1.5'/%3E%3Cline x1='10' y1='13' x2='10' y2='20' stroke='%237ab87a' stroke-width='1.5'/%3E%3Cline x1='0' y1='10' x2='7' y2='10' stroke='%237ab87a' stroke-width='1.5'/%3E%3Cline x1='13' y1='10' x2='20' y2='10' stroke='%237ab87a' stroke-width='1.5'/%3E%3Ccircle cx='10' cy='10' r='2.5' fill='none' stroke='%237ab87a' stroke-width='1.5'/%3E%3C/svg%3E") 10 10, crosshair;
}

a, button, .taskbar-start, .desktop-icon, .nav-item, .link-entry, .vibe-tag, .taskbar-item {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cline x1='10' y1='0' x2='10' y2='7' stroke='%23e8943a' stroke-width='1.5'/%3E%3Cline x1='10' y1='13' x2='10' y2='20' stroke='%23e8943a' stroke-width='1.5'/%3E%3Cline x1='0' y1='10' x2='7' y2='10' stroke='%23e8943a' stroke-width='1.5'/%3E%3Cline x1='13' y1='10' x2='20' y2='10' stroke='%23e8943a' stroke-width='1.5'/%3E%3Ccircle cx='10' cy='10' r='2.5' fill='none' stroke='%23e8943a' stroke-width='1.5'/%3E%3C/svg%3E") 10 10, pointer;
}

input, textarea, select { cursor: text; }

/* Scrollbar customizada — fina, verde escuro, track escuro */
html { scrollbar-width: thin; scrollbar-color: #2d5a2d #0d0d0d; }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: #0d0d0d; }
::-webkit-scrollbar-thumb { background: #2d5a2d; border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: #3d7a3d; }

/* vibes.cfg — borda ornamental de caracteres especiais */
.vibes-widget .window-body::before,
.vibes-widget .window-body::after {
  content: "·:·:·:·:·:·:·:·:·:·:·:·:·:·:·:·:·:·:·:·:·:·:·:·:·:·:·:·";
  display: block;
  text-align: center;
  font-size: 10px;
  color: #5a2020;
  font-family: monospace;
  letter-spacing: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.vibes-widget .window-body::before {
  border-bottom: 1px solid #3d1a1a;
  padding-bottom: 6px;
  margin-bottom: 10px;
}

.vibes-widget .window-body::after {
  border-top: 1px solid #3d1a1a;
  padding-top: 6px;
  margin-top: 10px;
}

/* Widget hover lift — janelas rotacionadas mantêm o rotate ao subir */
.welcome-widget:hover {
  transform: rotate(-1deg) translateY(-2px) !important;
  box-shadow: 5px 5px 20px rgba(0,0,0,0.3) !important;
}

.links-widget:hover {
  transform: rotate(1deg) translateY(-2px) !important;
  box-shadow: 7px 7px 0px #333 !important;
}

/* Links piscam uma vez ao carregar a página */
@keyframes link-flash {
  0%, 100% { opacity: 1; }
  20%       { opacity: 0.08; }
  45%       { opacity: 1; }
  65%       { opacity: 0.22; }
}

a { animation: link-flash 0.7s ease-out 0.5s both; }

/* Barra de progresso fake de carregamento */
@keyframes loading-bar {
  0%   { width: 0;    opacity: 1; }
  70%  { width: 100%; opacity: 1; }
  100% { width: 100%; opacity: 0; }
}

#loading-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green-soft), var(--green), var(--accent));
  z-index: 9999;
  animation: loading-bar 1.5s ease-out forwards;
  pointer-events: none;
}

/* Footer — online desde */
.footer-online {
  font-family: var(--font-pixel);
  font-size: 13px;
  color: var(--green-soft);
  margin-top: 4px;
  opacity: 0.6;
  letter-spacing: 1px;
}

/* ===== VIBES TAGS CONTAINER ===== */
.vibes-tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ===== WIN98 CD PLAYER — estilos compartilhados entre páginas ===== */
@font-face {
  font-family: "Pixelated MS Sans Serif";
  src: url("https://files.catbox.moe/1za99g.woff") format("woff");
  font-weight: normal;
}
@font-face {
  font-family: "Pixelated MS Sans Serif";
  src: url("https://files.catbox.moe/z7csle.woff") format("woff");
  font-weight: bold;
}
#music-player {
  background: #c0c0c0 !important;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #dfdfdf,
              inset -2px -2px #808080, inset 2px 2px #ffffff !important;
  padding: 3px !important;
  border: none !important;
}
.win98-titlebar {
  background: linear-gradient(90deg, purple, orchid, pink);
  padding: 3px 2px 3px 3px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.win98-titlebar-text {
  font-weight: bold;
  color: white;
  font-family: "Pixelated MS Sans Serif", Arial;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 4px;
}
.win98-titlebar-text img { height: 14px; width: 14px; }
.win98-titlebar-controls { display: flex; }
.win98-titlebar-controls button {
  padding: 0 !important;
  display: block;
  width: 16px !important;
  min-width: 16px !important;
  height: 14px;
  min-height: 14px !important;
  background: silver;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff,
              inset -2px -2px grey, inset 2px 2px #dfdfdf;
  border: none;
  border-radius: 0;
}
.win98-titlebar-controls button:active {
  box-shadow: inset -1px -1px #fff, inset 1px 1px #0a0a0a,
              inset -2px -2px #dfdfdf, inset 2px 2px grey;
}
.win98-titlebar-controls button[aria-label="Minimize"] {
  background-image: url("https://raw.githubusercontent.com/jdan/98.css/main/icon/minimize.svg");
  background-position: bottom 3px left 4px;
  background-repeat: no-repeat;
}
.win98-titlebar-controls button[aria-label="Maximize"] {
  background-image: url("https://raw.githubusercontent.com/jdan/98.css/4a2282dd9170cabf730fb5803d1153d86b2e94e3/icon/maximize.svg");
  background-position: top 2px left 3px;
  background-repeat: no-repeat;
}
.win98-titlebar-controls button[aria-label="Close"] {
  background-image: url("https://raw.githubusercontent.com/jdan/98.css/main/icon/close.svg");
  background-position: top 3px left 4px;
  background-repeat: no-repeat;
  margin-left: 2px;
}
.win98-iframe-body { margin: 2px 0 0 0; padding: 0; line-height: 0; }
.win98-iframe-body iframe { display: block; }

/* ===== NOW PLAYING (sidebar das páginas sobre/irmã) ===== */
.now-playing .window-body { padding: 12px; }
.now-playing-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.note { color: var(--accent); animation: pulse-soft 1.5s ease-in-out infinite; }
.song-name { font-family: var(--font-pixel); font-size: 17px; color: var(--white); margin-bottom: 2px; }
.song-artist { font-family: var(--font-pixel); font-size: 14px; color: var(--text-dim); margin-bottom: 10px; }
.eq-bars { display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.eq-bar {
  width: 4px;
  background: var(--accent);
  border-radius: 1px;
  animation: eq-bounce var(--speed, 0.5s) ease-in-out infinite alternate;
  height: var(--h, 10px);
}
@keyframes eq-bounce {
  from { transform: scaleY(0.3); }
  to   { transform: scaleY(1); }
}

/* ===== DIARY EXTRAS (stack, fold, holes, empty) ===== */
.diary-stack { position: relative; animation: fadeInUp 0.5s ease-out both; }
.diary-fold {
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 32px 32px 0;
  border-color: transparent #b8ad90 transparent transparent;
  z-index: 6;
}
.diary-entry-holes {
  position: absolute;
  left: 22px; top: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  pointer-events: none;
  z-index: 5;
  padding: 20px 0;
}
.diary-entry-holes span {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #e0d8cc;
  border: 2px solid #b8ad90;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.15);
}
.diary-empty {
  text-align: center;
  padding: 28px 20px;
  font-family: var(--font-hand);
  color: var(--text-dim);
  opacity: 0.5;
  animation: fadeInUp 0.5s ease-out both;
}
.diary-empty-icon { font-family: var(--font-pixel); font-size: 22px; margin-bottom: 8px; color: var(--border); }
.diary-empty-text { font-size: 16px; }

/* ===== CONTACT CARD ===== */
.contact-card { border-left: 3px solid var(--green) !important; }
.contact-card .window-title { color: var(--green) !important; }
.contact-email-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  border-radius: 3px;
  margin: 10px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  word-break: break-all;
  transition: all 0.2s;
}
.contact-email-link:hover {
  border-color: var(--accent);
  background: rgba(126, 184, 212, 0.08);
  color: var(--white);
  text-decoration: none;
}
.contact-note { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); margin-top: 6px; }
.contact-mailto {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 6px 18px;
  background: rgba(122, 184, 122, 0.08);
  border: 1px solid var(--green-soft);
  border-radius: 3px;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 13px;
  transition: all 0.2s;
  text-decoration: none;
}
.contact-mailto:hover {
  background: rgba(122, 184, 122, 0.18);
  border-color: var(--green);
  color: var(--white);
  text-decoration: none;
}

/* ===== SOBRE PAGE — blocos extras ===== */
.sobre-block { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.sobre-block-title { font-family: var(--font-pixel); font-size: 17px; color: var(--accent); margin-bottom: 10px; }
.sobre-list { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.sobre-list li {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  display: flex;
  gap: 6px;
}
.sobre-list li::before { content: "> "; color: var(--accent-soft); flex-shrink: 0; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tech-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-dim);
  background: rgba(0,0,0,0.2);
  transition: all 0.15s;
}
.tech-tag:hover { border-color: var(--accent-soft); color: var(--accent); }
.tech-tag.learning  { border-color: var(--green-soft); color: var(--green); background: rgba(122,184,122,0.06); }
.tech-tag.exploring { border-color: var(--accent-soft); color: var(--accent-soft); background: rgba(126,184,212,0.06); }

/* estado_atual.log — mesma suavidade do random_facts.cfg */
#estado-window .status-label        { color: var(--text-dim); }
#estado-window .status-value        { color: var(--text); text-shadow: none; }
#estado-window .status-row::before  { content: '>'; color: var(--accent-soft); opacity: 0.5; font-weight: normal; }

/* ===== SISTER PAGE — extras afetivos ===== */
.sister-carta {
  margin: 16px 0;
  padding: 16px 20px;
  background: rgba(255, 179, 198, 0.04);
  border: 1px dashed rgba(255, 179, 198, 0.35);
  border-radius: 4px;
  font-family: var(--font-hand);
  font-size: 18px;
  color: #ffccd8;
  line-height: 1.7;
}
.sister-stars {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #ff90b0;
  letter-spacing: 6px;
  text-align: center;
  padding: 6px 0;
  opacity: 0.7;
}
.sister-stamp {
  display: inline-block;
  border: 2px solid rgba(255, 179, 198, 0.6);
  padding: 5px 14px;
  font-family: var(--font-pixel);
  font-size: 13px;
  color: #ffb3c6;
  transform: rotate(-2deg);
  margin-top: 12px;
  box-shadow: 2px 2px 0 rgba(255, 179, 198, 0.15);
}

/* ===== PROFILE CARD — dark forum card com acento roxo ===== */
.profile-card {
  background: linear-gradient(160deg, #1c1830 0%, #131128 100%) !important;
  border: 1px solid #3a2a5a !important;
  border-top: 3px solid #7a5ab8 !important;
  box-shadow: 0 0 24px rgba(100, 60, 180, 0.12) !important;
}
.profile-card .window-header {
  background: linear-gradient(90deg, #241840, #1c1830) !important;
  border-bottom: 1px solid #3a2a5a !important;
}
.profile-card .window-title { color: #9a7ad0 !important; }
.profile-card .profile-avatar {
  border-color: #7a5ab8 !important;
  box-shadow: 0 0 16px rgba(120, 80, 200, 0.28);
  background: linear-gradient(135deg, #281e48, #181030) !important;
}
.profile-card .profile-name { color: #b090e0 !important; }
.profile-card .status-dot   { background: #5af078 !important; box-shadow: 0 0 6px #5af078; }
.profile-card .profile-status { color: #5af078 !important; }

/* ===== VISITOR WINDOW (sidebar) — display LED verde ===== */
#visitor-window {
  background: #040904 !important;
  border: 1px solid #0a240a !important;
  border-radius: 0 !important;
  box-shadow: 0 0 16px rgba(0, 80, 0, 0.25) inset !important;
}
#visitor-window .window-header {
  background: #020602 !important;
  border-bottom: 1px solid #0a240a !important;
}
#visitor-window .window-title {
  color: #2a8a2a !important;
  font-family: var(--font-pixel) !important;
  letter-spacing: 1px;
}
#visitor-window .visitor-counter { color: #3a9a3a; }
#visitor-window .digit {
  background: #060e06 !important;
  border-color: #0c380c !important;
  color: #22ff22 !important;
  font-size: 22px !important;
  padding: 4px 8px !important;
  text-shadow: 0 0 10px rgba(34, 255, 34, 0.7);
  min-width: 24px !important;
  letter-spacing: 0;
}

/* ===== VISITAS WIDGET (main) — painel de log de servidor ===== */
#visitas-widget {
  background: #05080e !important;
  border: 1px solid #14203a !important;
  border-left: 3px solid #3a68b8 !important;
  border-radius: 0 !important;
}
#visitas-widget .window-header {
  background: #080e1c !important;
  border-bottom: 1px solid #14203a !important;
}
#visitas-widget .window-title { color: #4a88d4 !important; }
#visitas-widget .visitas-label { color: #3a68b8 !important; }
#visitas-widget .visitas-number {
  color: #5abcff !important;
  border-color: #14284a !important;
  text-shadow: 0 0 14px rgba(90, 188, 255, 0.5);
}
#visitas-widget .visitas-meta { color: #3a68b8 !important; }

/* ===== AGORA WIDGET — post-it amarelo ===== */
#agora-widget {
  position: relative;
  background: #fef5a4 !important;
  color: #2a2815 !important;
  border: 1px solid #d8c43a !important;
  border-radius: 0 !important;
  transform: rotate(0.5deg);
  box-shadow: 4px 5px 16px rgba(0,0,0,0.32) !important;
}
#agora-widget .window-header {
  background: rgba(195, 175, 10, 0.22) !important;
  border-bottom: 1px dashed #c8b428 !important;
}
#agora-widget .window-title {
  color: #5a4800 !important;
  font-family: var(--font-hand) !important;
  font-size: 15px !important;
}
#agora-widget .window-title::before { content: ""; }
#agora-widget .window-title::after  { content: ""; }
#agora-widget .agora-date   { color: #7a6510 !important; font-family: var(--font-hand) !important; font-size: 13px !important; }
#agora-widget .agora-list   { color: #2a2210 !important; font-family: var(--font-hand) !important; font-size: 17px !important; }
#agora-widget .agora-bullet { color: #8a5800 !important; }
#agora-widget .agora-note   { color: #7a6510 !important; border-top-color: #d8c43a !important; font-family: var(--font-hand) !important; }
#agora-widget:hover { transform: rotate(0.5deg) translateY(-2px) !important; box-shadow: 5px 7px 20px rgba(0,0,0,0.38) !important; }

/* ===== ANIME WIDGET — capa de VHS / tracklist ===== */
#anime-widget {
  background: #070812 !important;
  border: 2px solid #14163a !important;
  border-top: 3px solid #b040e8 !important;
  border-radius: 0 !important;
}
#anime-widget .window-header {
  background: linear-gradient(90deg, #180638, #070812) !important;
  border-bottom: 1px solid #460880 !important;
}
#anime-widget .window-title {
  color: #c050f0 !important;
  font-family: var(--font-pixel) !important;
  letter-spacing: 1px;
}
#anime-widget .window-title::before { content: ""; }
#anime-widget .window-title::after  { content: ""; }
#anime-widget .anime-list { gap: 0 !important; }
#anime-widget .anime-entry {
  border-bottom: 1px solid #14163a !important;
  border-radius: 0 !important;
  padding: 7px 12px !important;
  font-family: var(--font-pixel) !important;
  font-size: 15px !important;
  color: #c0a8d8 !important;
  transition: all 0.12s;
}
#anime-widget .anime-entry:hover {
  background: rgba(176, 64, 232, 0.12) !important;
  color: #d870ff !important;
  padding-left: 20px !important;
}
#anime-widget .anime-bullet { color: #b040e8 !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .sidebar {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
  }

  .sidebar .window {
    flex: 1;
    min-width: 180px;
  }

  .main-content {
    margin-left: 0;
  }

  .site-footer {
    margin-left: 0;
  }

  .desktop-icons {
    position: relative;
    right: auto;
    top: auto;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 16px;
  }

  .widgets-row {
    grid-template-columns: 1fr;
  }

  .contact-email-link {
    font-size: 12px;
    word-break: break-all;
  }

  .tech-tags {
    gap: 5px;
  }

  .sobre-block {
    margin-top: 14px;
    padding-top: 12px;
  }

  .diary-entry-holes {
    display: none;
  }

  .win98-titlebar-text {
    font-size: 11px;
  }
}

@media (max-width: 600px) {
  .page-wrapper {
    padding: 10px 10px 60px;
  }

  .sidebar .window {
    min-width: 100%;
  }

  .banner-title {
    font-size: 20px;
  }

  .taskbar-item {
    display: none;
  }

  .taskbar-items {
    display: none;
  }

  .contact-email-link {
    font-size: 11px;
    padding: 8px 10px;
  }

  .contact-mailto {
    font-size: 12px;
    padding: 6px 10px;
  }

  .tech-tag {
    font-size: 10px;
    padding: 3px 7px;
  }

  .sobre-list li {
    font-size: 13px;
  }

  .diary-text p {
    font-size: 15px;
  }

  .diary-date {
    font-size: 14px;
  }

  .sister-carta {
    font-size: 16px;
    padding: 14px;
  }

  .sister-future {
    font-size: 13px;
  }

  .now-playing-label {
    font-size: 11px;
  }

  .song-name {
    font-size: 15px;
  }

  .song-artist {
    font-size: 12px;
  }

  .win98-titlebar-controls button {
    width: 14px !important;
    height: 14px !important;
  }

  .vibes-tags {
    gap: 6px;
  }

  .vibe-tag {
    font-size: 12px;
    padding: 4px 8px;
  }
}
