/* lowpolyrat — base.css
   shared aero-goth desktop theme: windows + taskbar + CRT
*/

/* ===== BASE ===== */
html, body{
  height: 100%;
  margin: 0;
  background: radial-gradient(circle at 20% 10%, #1a1a24 0%, #07070b 45%, #040406 100%);
}

body{
  font-family: "VT-100", fixedsys, System, monospace;
  font-size: 13px;
  color: #f2f2f2;
  overflow: hidden; /* desktop vibe: no page scroll */
}

a{ color:#ff2a2a; }
a:hover{ color:#ff6b6b; }

/* ===== WINDOWS (LOOK) ===== */
.sidebar, .mini-sidebar, .wide-sidebar, .box{
  background:
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.00) 35%),
    rgba(10,10,14,0.88);
  border-radius: 10px;
  border: 1px solid rgba(255, 40, 40, 0.45);
  box-shadow:
    0 10px 30px rgba(0,0,0,0.65),
    0 0 0 1px rgba(255, 0, 0, 0.12) inset;
  backdrop-filter: blur(6px);
}

.inner{
  padding: 10px;
  padding-top: 8px;
}

/* Title bars */
.title-bar, .box-title-bar{
  background:
    linear-gradient(180deg, rgba(255, 70, 70, 0.35), rgba(120, 0, 0, 0.35)),
    rgba(20,20,28,0.55);
  color: #ffeaea;
  font-weight: bold;
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255, 40, 40, 0.35);
  text-shadow: 0 1px 0 rgba(0,0,0,0.7);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;

  cursor: grab;
  user-select: none;
}
.title-bar:active, .box-title-bar:active{ cursor: grabbing; }

/* little X */
.right{
  float: right;
  margin-right: 6px;
  font-family: Arial, sans-serif;
  line-height: 12px;
}

/* ===== GLOWS ===== */
.window:hover{
  box-shadow:
    0 12px 34px rgba(0,0,0,0.75),
    0 0 22px rgba(255,40,40,0.45),
    0 0 0 1px rgba(255, 0, 0, 0.18) inset;
}
.window.active{
  box-shadow:
    0 16px 40px rgba(0,0,0,0.80),
    0 0 28px rgba(255,40,40,0.65),
    0 0 0 1px rgba(255, 120, 120, 0.22) inset;
  border-color: rgba(255, 60, 60, 0.70);
}

/* Profile photo */
.profile-pic{
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(255,40,40,0.45);
  box-shadow: 0 0 16px rgba(255,40,40,0.25);
  margin-bottom: 8px;
}

/* Back button (used on pages like Music/Games/TV/Shrines) */
.back-btn{
  margin-right: 10px;
  text-decoration: none;
  color: rgba(255,235,235,0.85);
  font-weight: normal;
}
.back-btn:hover{
  color: #ff2a2a;
  text-shadow: 0 0 6px rgba(255,40,40,0.6);
}

/* ===== TASKBAR ===== */
#taskbar{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44px;
  z-index: 9997;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  box-sizing: border-box;

  background:
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02)),
    rgba(10,10,14,0.80);
  border-top: 1px solid rgba(255, 40, 40, 0.35);
  backdrop-filter: blur(8px);
}

#taskbar .tb-left{
  display: flex;
  align-items: center;
  gap: 10px;
}

#taskbar .tb-orb{
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255,40,40,0.9);
  box-shadow: 0 0 12px rgba(255,40,40,0.55);
}

#taskbar .tb-title{
  color: rgba(255,235,235,0.95);
  font-weight: bold;
  letter-spacing: 0.3px;
}

#taskbar .tb-apps{
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 0 10px;
  flex: 1;
}

#taskbar .tb-right{
  color: rgba(255,235,235,0.85);
  font-variant-numeric: tabular-nums;
  padding-left: 10px;
}

.tb-btn{
  border: 1px solid rgba(255, 40, 40, 0.35);
  background: rgba(0,0,0,0.25);
  color: rgba(255,235,235,0.92);
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
}
.tb-btn:hover{ box-shadow: 0 0 16px rgba(255,40,40,0.35); }
.tb-btn.active{
  background: rgba(255,40,40,0.20);
  border-color: rgba(255, 80, 80, 0.60);
}
.tb-btn.min{ opacity: 0.55; }

/* ===== CRT / SCANLINES ===== */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.03) 0px,
      rgba(255,255,255,0.03) 1px,
      rgba(0,0,0,0.00) 2px,
      rgba(0,0,0,0.00) 4px
    ),
    radial-gradient(circle at 50% 50%,
      rgba(0,0,0,0.00) 0%,
      rgba(0,0,0,0.35) 70%,
      rgba(0,0,0,0.60) 100%
    );
  mix-blend-mode: overlay;
  opacity: 0.55;
}

body::after{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: rgba(255,255,255,0.02);
  animation: crtFlicker 5s infinite;
}

@keyframes crtFlicker{
  0%, 100% { opacity: 0.06; }
  10% { opacity: 0.03; }
  20% { opacity: 0.08; }
  30% { opacity: 0.04; }
  40% { opacity: 0.09; }
  50% { opacity: 0.05; }
  60% { opacity: 0.08; }
  70% { opacity: 0.04; }
  80% { opacity: 0.07; }
  90% { opacity: 0.05; }
}

/* ===== LAUNCHER (shared) ===== */
.launcher-stack{
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

.launcher-item{
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 96px;
  padding: 14px;
  text-decoration: none;
  color: rgba(255,235,235,0.95);

  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.00)),
    rgba(12,12,16,0.78);

  border: 1px solid rgba(255,40,40,0.40);
  border-radius: 10px;

  box-shadow:
    0 6px 18px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,0,0,0.10) inset;

  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.launcher-item:hover{
  transform: translateY(-2px);
  box-shadow:
    0 10px 28px rgba(0,0,0,0.75),
    0 0 18px rgba(255,40,40,0.45);
}

.launcher-thumb{
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255,40,40,0.35);
  box-shadow:
    inset 0 0 12px rgba(0,0,0,0.6),
    0 0 10px rgba(255,40,40,0.20);
}

.launcher-text{
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.launcher-title{
  font-weight: bold;
  letter-spacing: 0.2px;
}

.launcher-sub{
  font-size: 11px;
  opacity: 0.75;
}

/* ===== UTIL: red scrollbars ===== */
.scroll-red{
  scrollbar-width: thin;
  scrollbar-color: #ff2a2a rgba(0,0,0,0.4);
}
.scroll-red::-webkit-scrollbar{ width: 8px; }
.scroll-red::-webkit-scrollbar-track{
  background: rgba(0,0,0,0.45);
  border-radius: 8px;
  box-shadow: inset 0 0 6px rgba(0,0,0,0.8);
}
.scroll-red::-webkit-scrollbar-thumb{
  background: linear-gradient(180deg, #ff5a5a, #b00000);
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(255,40,40,0.6), inset 0 0 2px rgba(0,0,0,0.8);
}
.scroll-red::-webkit-scrollbar-thumb:hover{
  background: linear-gradient(180deg, #ff7a7a, #d00000);
}

/* ===== RED SCROLLBARS (REUSABLE) ===== */

/* Firefox */
.scroll-red{
  scrollbar-width: thin;
  scrollbar-color: #ff2a2a rgba(0,0,0,0.4);
}

/* Chrome / Edge / Safari */
.scroll-red::-webkit-scrollbar{
  width: 8px;
}

.scroll-red::-webkit-scrollbar-track{
  background: rgba(0,0,0,0.45);
  border-radius: 8px;
  box-shadow: inset 0 0 6px rgba(0,0,0,0.8);
}

.scroll-red::-webkit-scrollbar-thumb{
  background: linear-gradient(180deg, #ff5a5a, #b00000);
  border-radius: 8px;
  box-shadow:
    0 0 6px rgba(255,40,40,0.6),
    inset 0 0 2px rgba(0,0,0,0.8);
}

.scroll-red::-webkit-scrollbar-thumb:hover{
  background: linear-gradient(180deg, #ff7a7a, #d00000);
}

