/* =============================================================================
   kedy's personal site - neocities
   authentic 2000s windows 7 / vista aero glass personal fansite
   lightweight glass textures, double-outline window frames, 7.css aero buttons
   ============================================================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: none !important;
}

html, body, a, button, input, select, textarea {
  cursor: none !important;
}

/* Rei Custom Mouse Cursor (Never blocks clicks) */
#rei-clock-head {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  pointer-events: none !important;
  user-select: none !important;
  z-index: 100000;
  image-rendering: pixelated;
  display: block;
}

/* Custom Windows 7 / Vista Scrollbars */
::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}
::-webkit-scrollbar-track {
  background: linear-gradient(90deg, #e5e5e5, #f0f0f0 20%);
}
::-webkit-scrollbar-thumb {
  background-color: #eee;
  background: linear-gradient(180deg, #eee 45%, #ddd 50%, #bbb 100%);
  border: 1px solid #8e8f8f;
  border-radius: 3px;
  box-shadow: inset 0 1px 1px #fff;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #e5f4fd 45%, #b3e0f9 50%, #8ecbf5 100%);
  border-color: #3c7fb1;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 11.5px;
  line-height: 1.5;
  color: #000000;
  background-color: #72aee6;
  background-image: 
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.4) 0%, transparent 65%),
    linear-gradient(180deg, #4f9fe4 0%, #89c0ee 25%, #c8e2fb 60%, #a4d0f7 100%);
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  padding: 14px 10px 40px 10px;
}

a {
  color: #003399;
  text-decoration: underline;
}

a:hover {
  color: #cc0000;
  background-color: rgba(255, 255, 200, 0.8);
}

/* ================= MAIN CONTAINER ================= */
#main-container {
  max-width: 950px;
  margin: 0 auto;
}

/* ================= HARDWARE-ACCELERATED VECTOR CLOCK CURSOR ================= */
#retro-cursor-clock {
  position: fixed;
  top: 0;
  left: 0;
  width: 120px;
  height: 120px;
  pointer-events: none;
  z-index: 100000;
  will-change: transform;
  transform: translate3d(-200px, -200px, 0);
}

.clock-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  display: block;
}

.clock-orbit-ring {
  transform-origin: 60px 60px;
  animation: clockOrbitSpin 30s linear infinite;
}

@keyframes clockOrbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.clock-date-text {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  font-size: 7px;
  font-weight: bold;
  fill: #003366;
  letter-spacing: 1px;
}

.clock-hand {
  transform-origin: 60px 60px;
  stroke-linecap: round;
}

.clock-hand.hour {
  stroke: #004499;
  stroke-width: 2.5px;
}

.clock-hand.min {
  stroke: #2277bb;
  stroke-width: 1.8px;
}

.clock-hand.sec {
  stroke: #cc0000;
  stroke-width: 1.2px;
}

.clock-rei-center {
  position: absolute;
  top: 44px;
  left: 44px;
  width: 32px;
  height: 32px;
  object-fit: contain;
  image-rendering: pixelated;
  pointer-events: none;
}

/* ================= WINDOWS 7 / VISTA AERO WINDOW ================= */
.header-window, .retro-box {
  outline: solid 1px rgba(0, 0, 0, 0.7);
  border: solid 1px rgba(255, 255, 255, 0.8) !important;
  box-shadow: 2px 2px 10px 1px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  background: linear-gradient(
    hsla(0,0%,100%,.5),
    hsla(0,0%,100%,.3) 45%,
    rgba(0,0,0,.1) 50%,
    rgba(0,0,0,.1) 75%,
    hsla(0,0%,100%,.5)
  ), rgba(37, 90, 120, 0.22) !important;
  border-radius: 6px;
  margin-bottom: 12px;
  padding: 4px;
  position: relative;
}

/* Glass Titlebar Heading */
.window-titlebar, .retro-box-header {
  background: linear-gradient(55deg, 
    transparent 8%, 
    hsla(0,0%,100%,.1) 10%, 
    hsla(0,0%,100%,.3) 30%, 
    rgba(0,0,0,.1) 32%, 
    rgba(0,0,0,.3) 55%, 
    transparent 57%, 
    hsla(0,0%,100%,.3) 70%, 
    transparent 72%) !important;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 6px;
  user-select: none;
}

.window-titlebar span, .retro-box-header span {
  color: #000000 !important;
  font-size: 9pt !important;
  font-weight: normal;
  text-shadow: 0px 0px 8px white, 0px 0px 10px white, 0px 0px 14px white !important;
}

/* Windows 7 Aero Glass Titlebar Controls */
.window-buttons {
  display: flex;
  align-items: stretch;
  height: 20px;
  gap: 1px;
  margin-top: -3px;
  margin-right: -4px;
}

.win-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(220, 235, 250, 0.25) 45%, rgba(170, 210, 245, 0.4) 50%, rgba(210, 235, 255, 0.6) 100%);
  border: 1px solid rgba(0, 50, 100, 0.25);
  border-top: none;
  border-radius: 0 0 3px 3px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  color: #112233;
  font-size: 10px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: normal;
  cursor: pointer;
  text-shadow: 0 1px 0 rgba(255,255,255,0.8);
  transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.win-btn:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(185, 225, 255, 0.7) 45%, rgba(120, 195, 250, 0.8) 50%, rgba(175, 225, 255, 0.9) 100%);
  border-color: #3c7fb1;
  box-shadow: 0 0 8px rgba(0, 150, 255, 0.5), inset 0 0 0 1px #ffffff;
  color: #001122;
}

.win-btn:active {
  background: linear-gradient(180deg, rgba(160, 210, 245, 0.8) 0%, rgba(100, 175, 235, 0.85) 50%, rgba(140, 205, 250, 0.9) 100%);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
}

/* Iconic Windows 7 Red Close Button */
.win-btn.close {
  width: 44px;
  background: linear-gradient(180deg, rgba(255, 200, 200, 0.5) 0%, rgba(240, 140, 140, 0.3) 45%, rgba(220, 80, 80, 0.45) 50%, rgba(240, 130, 130, 0.6) 100%);
  border: 1px solid rgba(150, 40, 40, 0.4);
  border-top: none;
  border-radius: 0 0 4px 4px;
  color: #331111;
  font-size: 11px;
}

.win-btn.close:hover {
  background: linear-gradient(180deg, #ff9494 0%, #eb4242 45%, #d11919 50%, #b80d0d 100%);
  border-color: #7a0000;
  box-shadow: 0 0 10px rgba(235, 40, 40, 0.7), inset 0 0 0 1px rgba(255, 200, 200, 0.6);
  color: #ffffff;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
}

.win-btn.close:active {
  background: linear-gradient(180deg, #b80d0d 0%, #990000 50%, #d11919 100%);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

/* Inner Window Content Card */
.header-inner, .retro-box-content {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.7);
  box-shadow: 0 0 1px .5px #fff;
  border-radius: 3px;
  padding: 10px;
  margin-top: 2px;
}

.header-inner {
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  background: linear-gradient(180deg, #f0f7ff 0%, #e1effc 100%);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-avatar {
  width: 46px;
  height: 46px;
  border: 1px solid #336699;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 0 6px rgba(0, 50, 100, 0.25);
}

.header-text h1 {
  font-size: 20px;
  color: #002244;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.header-text p {
  font-size: 11px;
  color: #225588;
}

.header-right-side {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-mini-gif {
  width: 36px;
  height: 36px;
  object-fit: contain;
  image-rendering: pixelated;
}

.dogma-link-btn {
  display: inline-block;
  background: linear-gradient(180deg, #ee3333 0%, #b81414 50%, #8a0000 100%);
  color: #ffffff !important;
  font-weight: bold;
  font-size: 11px;
  padding: 6px 12px;
  border: 1px solid #ff8888;
  border-radius: 4px;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(180, 0, 0, 0.35), inset 0 1px 0 rgba(255,255,255,0.4);
  text-shadow: none !important;
  transition: all 0.15s ease;
}

.dogma-link-btn:hover {
  background: #ff0000;
  box-shadow: 0 0 12px rgba(255, 50, 50, 0.7);
}

/* Nav Strip */
.navbar-strip {
  background: linear-gradient(180deg, #e4edf8 0%, #cce3f7 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.3);
  padding: 5px 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
}

.navbar-strip a {
  font-weight: bold;
  color: #003399;
  text-decoration: none;
  text-shadow: 0px 0px 8px #ffffff !important;
}

.navbar-strip a:hover {
  text-decoration: underline;
}

/* Marquee bar */
.marquee-bar {
  background: #ffffcc;
  border: 1px solid #cc9900;
  border-radius: 3px;
  padding: 3px 8px;
  margin-bottom: 12px;
  font-size: 10.5px;
  color: #554000;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* ================= 2-COLUMN LAYOUT ================= */
.main-layout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.left-sidebar {
  width: 270px;
  flex-shrink: 0;
}

.right-content {
  flex: 1;
  min-width: 0;
}

/* ================= VISTA / 7 PROFILE PIC FRAME ================= */
.profile-pic-container {
  text-align: center;
  margin-bottom: 8px;
}

.profile-pic {
  display: inline-block;
  position: relative;
  border-radius: 18px !important;
  filter: drop-shadow(0 0 0.25rem gray);
  padding: 2px;
}

.profile-pic img {
  width: 128px;
  height: 128px;
  object-fit: cover;
  display: block;
  border-radius: 15px !important;
  box-shadow: 0 0 7px 5px #ccffff;
}

.profile-pic::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.2) 40%, rgba(255,255,255,0.05) 60%, rgba(255,255,255,0.5) 100%);
  pointer-events: none;
}

/* Profile Info Table */
.profile-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10.5px;
  margin-bottom: 8px;
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
}

.profile-table td {
  padding: 4px 6px;
  border: 1px solid #e2e8f0;
}

.profile-table td.label {
  background: #eef5fc;
  font-weight: bold;
  width: 38%;
  color: #003399;
}

.stamp-row {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 6px 0;
}

.stamp-row img {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(0,0,0,0.25);
  border-radius: 2px;
  object-fit: cover;
}

.visitor-counter {
  text-align: center;
  font-size: 10px;
  color: #335577;
  margin-top: 4px;
}

.counter-num {
  display: inline-block;
  background: #001122;
  color: #00ff66;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid #336699;
  margin-top: 2px;
}

/* MAGI / Oracle Widget */
.oracle-box {
  background: #f0f7ff;
  border: 1px solid #b8d4f0;
  border-radius: 4px;
  padding: 6px;
}

.oracle-screen {
  background: #001122;
  color: #00ff66;
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  line-height: 1.4;
  padding: 6px;
  border-radius: 3px;
  border: 1px solid #224466;
  min-height: 50px;
  margin-bottom: 5px;
  word-break: break-word;
}

.oracle-meta {
  display: flex;
  justify-content: space-between;
  font-size: 8.5px;
  color: #003366;
  font-weight: bold;
  margin-bottom: 5px;
}

/* ================= 7.CSS AERO BUTTONS ================= */
button, .retro-btn {
  outline: none;
  border: solid 1px #707070;
  border-radius: 3px;
  min-width: 60px;
  padding: 3px 10px;
  box-shadow: inset 0px 0px 0px 1px #ffffff;
  background: linear-gradient(
    180deg,
    rgba(242, 242, 242, 1) 0%,
    rgba(235, 235, 235, 1) 40%,
    rgba(221, 221, 221, 1) 40%,
    rgba(207, 207, 207, 1) 100%
  );
  color: #222222;
  font-family: inherit;
  font-size: 10px;
  font-weight: bold;
  cursor: pointer;
  text-shadow: none !important;
  transition: all 0.1s ease;
}

button:hover, .retro-btn:hover {
  border-color: #3c7fb1;
  background: linear-gradient(
    180deg,
    rgba(234, 246, 253, 1) 0%,
    rgba(217, 240, 252, 1) 40%,
    rgba(190, 230, 253, 1) 40%,
    rgba(167, 217, 245, 1) 100%
  );
}

button:active, .retro-btn:active {
  background: linear-gradient(
    180deg,
    rgba(229, 244, 252, 1) 0%,
    rgba(196, 229, 246, 1) 40%,
    rgba(152, 209, 239, 1) 40%,
    rgba(104, 179, 219, 1) 100%
  );
  box-shadow: inset 0px 0px 0px 1px #95ade4;
}

/* Audio Player / Radio */
.audio-player-box {
  background: #f0f7ff;
  border: 1px solid #b8d4f0;
  border-radius: 4px;
  padding: 6px;
}

.player-top-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.player-rei-gif {
  width: 28px;
  height: 28px;
  object-fit: contain;
  image-rendering: pixelated;
}

.audio-title-screen {
  flex: 1;
  background: #001122;
  color: #00e5ff;
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  padding: 4px 6px;
  border-radius: 3px;
  border: 1px solid #224466;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audio-btn-row {
  display: flex;
  gap: 4px;
  margin-bottom: 6px;
}

.retro-select {
  width: 100%;
  font-size: 10px;
  font-family: inherit;
  padding: 3px;
  border: 1px solid #7f9db9;
  border-radius: 3px;
  background: #ffffff;
}

/* 88x31 Badges Grid */
.badges-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}

.retro-badge {
  width: 88px;
  height: 31px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: bold;
  color: #ffffff;
  border: 1px solid rgba(0,0,0,0.5);
  border-radius: 2px;
  user-select: none;
}

/* Sidebar Eva Banner */
.sidebar-eva-banner {
  width: 100%;
  max-width: 180px;
  height: auto;
  display: block;
  margin: 6px auto;
  border: 1px solid rgba(0, 50, 100, 0.3);
  border-radius: 3px;
}

/* ================= RIGHT COLUMN CONTENT ================= */
.welcome-card {
  font-size: 11.5px;
  line-height: 1.5;
}

.float-img {
  float: right;
  margin: 0 0 6px 10px;
  border: 1px solid #7799bb;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 50, 100, 0.15);
  max-width: 110px;
}

.inline-sticker-img {
  float: left;
  margin: 0 8px 6px 0;
  max-width: 42px;
  height: auto;
  image-rendering: pixelated;
}

.updates-log {
  list-style: none;
  font-size: 10.5px;
  background: #f8fbfe;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 6px 10px;
  margin: 6px 0;
}

.updates-log li {
  margin-bottom: 3px;
  padding-left: 12px;
  text-indent: -12px;
}

.updates-log li::before {
  content: "» ";
  color: #0055aa;
  font-weight: bold;
}

/* Awakening Feature Card */
.awakening-box {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #f0f7ff;
  border: 1px solid #b8d4f0;
  border-radius: 4px;
  padding: 8px;
}

.awakening-animated-gif {
  width: 100%;
  max-width: 240px;
  height: auto;
  border: 1px solid #7799bb;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 50, 100, 0.15);
  display: block;
}

.awakening-info {
  flex: 1;
  font-size: 11px;
  line-height: 1.5;
}

/* Cels Gallery */
.gallery-tab-row {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.gallery-tab, .tab-btn {
  background: linear-gradient(180deg, #ffffff 0%, #e2edf8 100%);
  border: 1px solid #7799bb;
  border-radius: 3px;
  color: #003366;
  padding: 2px 6px;
  font-size: 10px;
  cursor: pointer;
  font-family: inherit;
  font-weight: bold;
}

.gallery-tab.active, .gallery-tab:hover,
.tab-btn.active, .tab-btn:hover {
  background: linear-gradient(180deg, #0066cc 0%, #004499 100%);
  color: #ffffff;
  border-color: #003366;
}

.cels-grid {
  column-count: 5;
  column-gap: 8px;
}

/* 5-Column Masonry Cel Item (Tight vertical stacking) */
.cel-thumb, .cel-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 8px;
  break-inside: avoid;
  background: #ffffff;
  border: 1px solid #b8d4f0;
  border-radius: 4px;
  padding: 3px;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.cel-thumb:hover, .cel-item:hover {
  border-color: #0055aa;
  background: #f8fbfe;
  transform: scale(1.03);
}

.cel-thumb img, .cel-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

.cel-caption, .cel-item .caption {
  font-size: 8.5px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #003366;
  display: block;
}

/* GIFs Grid */
.retro-gifs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 6px;
}

.gif-box, .gif-cell {
  background: #f8fbfe;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 3px;
  text-align: center;
}

.gif-box img, .gif-cell img {
  max-width: 50px;
  max-height: 50px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  image-rendering: pixelated;
}

.gif-desc, .gif-cell span {
  display: block;
  font-size: 8.5px;
  color: #444444;
  margin-top: 2px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Webring Widget */
.webring-widget {
  background: #f0f7ff;
  border: 1px dashed #7799bb;
  border-radius: 4px;
  padding: 6px;
  text-align: center;
  font-size: 10.5px;
  margin-top: 8px;
}

.webring-links {
  margin-top: 3px;
  font-weight: bold;
}

/* Lightbox Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 10, 25, 0.85);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 16px;
}

.modal-overlay.active {
  display: flex;
}

.modal-img {
  max-width: 540px;
  max-height: 68vh;
  width: auto;
  height: auto;
  border: 2px solid #ffffff;
  border-radius: 4px;
  object-fit: contain;
}

.modal-caption {
  color: #ffffff;
  font-size: 11px;
  margin-top: 8px;
  background: rgba(0, 0, 0, 0.75);
  padding: 4px 8px;
  border-radius: 3px;
  border: 1px solid #444;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 700px) {
  .main-layout {
    flex-direction: column;
  }
  .left-sidebar {
    width: 100%;
  }
  .awakening-box {
    flex-direction: column;
  }
  .awakening-animated-gif {
    max-width: 100%;
  }
}
