/* ============================================================
   Main style2.css Works alongside style.css (Win7 theme) 
   ============================================================ */

/* Grid columns in #home must not expand to fit wide children.
   Without min-width: 0, a flex/grid item ignores overflow on its children
   and the whole column stretches instead of scrolling. */
@font-face {
  font-family: 'Segoe UI';
  src: url('fonts/SegoeUI.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

body {
    font-family: 'Segoe UI', sans-serif;
    cursor: url("Images/cursors/NormalSelect.cur"), auto;
    background-image: url(Images/background3.gif);
    background-size: cover;
    background-position: 50%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    margin: 0;
}

body:before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: -1
}

*,:after,:before {
    box-sizing: border-box;
    border: 0 solid #e5e7eb
}

blockquote, dd, dl, figure, h1, h2, h3, h4, h5, h6, hr, p, pre {
  margin: 0;
}

a,
button,
[role="button"],
select,
label,
.icon-btn,
.dashed-link,
.media-item,
.media-poster,
.doink-wrap,
.album-art,
.album-art-wrap {
  cursor: url("Images/cursors/LinkSelect.cur"), pointer;
}
/* ----------------------------------------------------------
   SHARED UTILITIES
   ---------------------------------------------------------- */
#home > div {
  min-width: 0;
}

/* Fills its parent container absolutely */
.cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.object-contain {
  object-fit: contain;
}

.no-pointer {
  pointer-events: none;
}


/* ----------------------------------------------------------
   PROFILE WINDOW
   ---------------------------------------------------------- */

/* Remove default window padding so the banner bleeds edge-to-edge */
.window-body.no-padding {
  padding: 0;
}

/* Banner strip at the top */
.profile-banner {
  position: relative;
  width: 100%;
  height: 6rem; /* 96px, matching h-24 */
}

/* Main content area below the banner */
.profile-body {
  position: relative;
  padding: 1rem;
  margin-top: -2.5rem; /* pulls content up over the banner bottom */
}


/* ---- Avatar ---- */

.avatar-wrap {
  position: relative;
  width: 8rem;   /* 128px */
  height: 8rem;
  margin-bottom: 1rem;
  margin-top: -1.5rem; /* -mt-6 */
}

.avatar-circle {
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

/* Status dot  */
.status-dot {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  border: 4px solid white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  background: #23a55a;
  transform: scale(1.09226);
}

/* Online */
.status-dot[title="online"] {
  background: #23a55a;
}

/* Idle */
.status-dot[title="idle"] {
  background: #f0b232;
  -webkit-mask: radial-gradient(circle at 68% 32%, transparent 38%, black 39%);
  mask: radial-gradient(circle at 68% 32%, transparent 38%, black 39%);
}

/* Do Not Disturb */
.status-dot[title="dnd"] {
  background: #f23f43;
}
.status-dot[title="dnd"]::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 62%; height: 3px;
  background: white;
  border-radius: 2px;
}

/* Offline */
.status-dot[title="offline"] {
  background: #80848e;
  -webkit-mask: radial-gradient(circle, transparent 32%, black 33%);
  mask: radial-gradient(circle, transparent 32%, black 25%);
}


/* ---- Visit count + clock badges ---- */

.profile-badges {
  position: absolute;
  top: 3rem;   /* top-12 */
  right: 1rem; /* right-4 */
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.badge {
  padding: 0.25rem 0.5rem;
  background: rgba(255,255,255,0.8);
  border: 1px solid #d1d5db;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.badge-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: #374151;
}


/* ---- Name & handle ---- */

.profile-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.profile-handle {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}


/* ---- Social icon buttons row ---- */

.social-row {
  display: flex;
  gap: 0.25rem;
  margin-top: 1rem;
}

.icon-btn {
  width: 24px;
  height: 24px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: unset;
}


/* ---- Now Playing section ---- */

.now-playing-wrap {
  position: relative;
  margin-top: 1rem;
}

/* Decorative GIF pinned to top-right of the wrap */
.gif-corner {
  position: absolute;
  right: -6px;
  bottom: 100%;
  z-index: 1;
  opacity: 0.9;
  pointer-events: none;
}

.now-playing-window {
  margin-top: 1rem;
  margin-bottom: 0;
}

.now-playing-body {
  padding: 8px;
}

.now-playing-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Album art square */
.album-art-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border: 1px solid #999;
  cursor: pointer;
  overflow: hidden;
}

.album-art {
  position: relative;
  width: 48px;
  height: 48px;
  border: 1px solid #999;
  overflow: hidden;
}

.album-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.album-art:hover .album-hover-overlay {
  opacity: 1;
}

/* Track info text */
.now-playing-info {
  flex: 1;
  min-width: 0;
}

.np-title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #888;
}

.np-subtitle {
  margin: 2px 0 0;
  font-size: 11px;
  color: #aaa;
}


/* ----------------------------------------------------------
   ABOUT ME WINDOW
   ---------------------------------------------------------- */

.about-body {
  overflow: hidden;
  /* space-y-3 equivalent: gap between children */
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* "Who is ash?" card */
.about-card {
  padding: 8px;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.about-heading {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.about-text {
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.625;
}

/* Divider bar */
.about-divider {
  background: #f0f0f0;
  border: 1px solid rgba(0,0,0,0.1);
  width: 100%;
  padding: 0 12px;
}


/* ---- Interests fieldset ---- */

.interests-fieldset {
  border: 1px solid #d1d5db;
  padding: 0.5rem;
  min-width: 0;       /* don't grow past parent */
  overflow: hidden;   /* clip the track; .media-scroll scrolls within this */
}

.interests-legend {
  padding: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

.category-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 1px;
}

.category-label {
  font-size: 0.75rem;
  color: #4b5563;
  flex-shrink: 0;
}

.category-select {
  font-size: 0.75rem;
  border: 1px solid #d1d5db;
  background: white;
  padding: 0.25rem 0.5rem;
}

.category-select:focus {
  outline: none;
}

/* Horizontal scroll strip */
.media-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  background-color: #f0f0f0;
  padding-top: 12px;
  padding-bottom: 4px;
  cursor: grab;
}

.media-scroll:active {
  cursor: grabbing;
}

.media-track {
  display: flex;
  gap: 16px;
  width: max-content;
  overflow: visible;
  padding-left: 4px;
  padding-right: 16px;
}

/* Individual media card */
.media-item {
  flex-shrink: 0;
  width: 90px;
  cursor: pointer;
}

.media-poster {
  width: 90px;
  height: 135px;
  position: relative;
  margin-bottom: 4px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.media-hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  opacity: 0;
  transition: opacity 0.15s;
}

.media-item:hover .media-hover-overlay {
  opacity: 1;
}

.media-title {
  position: absolute;
  bottom: 6px;
  left: 0;
  right: 0;
  padding: 0 6px;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  color: white;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 1;
  line-height: 1.3;
}

.media-item:hover .media-title {
  opacity: 1;
}
/* ----------------------------------------------------------
   ANIMATED TEXT EFFECTS
   ---------------------------------------------------------- */

/* Animated gradient text — purple/pink/blue (used on "ash") */
.text-gradient-purple {
  background: linear-gradient(135deg, #E0BBFC, #CB8FFA, #B763F8, #9C27F5);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  display: inline-block;
  filter: drop-shadow(0 0 6px rgba(167,139,250,0.7));
  animation: gradient-wave 3s ease infinite;
}

/* Animated gradient text — red (used on "LOVES") */
.text-gradient-red {
  background: linear-gradient(135deg, #ff80b5, #ff4444, #ff80b5, #ff4444);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  display: inline-block;
  filter: drop-shadow(0 0 6px rgba(255,100,100,0.7));
  animation: gradient-wave 2s ease infinite;
  cursor: default;
  position: relative;
}

/* Animated gradient text — lavender (used on ";0") */
.text-gradient-lavender {
  background: linear-gradient(135deg, #ff80b5, #a78bfa, #60a5fa, #ff80b5, #a78bfa);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  display: inline-block;
  filter: drop-shadow(0 0 6px rgba(255,100,100,0.7));
  animation: gradient-wave 2s ease infinite;
}

/* Monospace age counter */
.mono-age {
  font-family: monospace;
  font-size: 12px;
  font-weight: 700;
  animation: red-wave 2s ease infinite;
}

@keyframes red-wave {
    0% {
        color: #ff4444;
        text-shadow: 0 0 6px rgba(255,50,50,.8),0 0 12px rgba(255,50,50,.5)
    }

    33% {
        color: #ff0080;
        text-shadow: 0 0 6px rgba(255,0,128,.8),0 0 12px rgba(255,0,128,.5)
    }

    66% {
        color: #ff6600;
        text-shadow: 0 0 6px rgba(255,100,0,.8),0 0 12px rgba(255,100,0,.5)
    }

    to {
        color: #ff4444;
        text-shadow: 0 0 6px rgba(255,50,50,.8),0 0 12px rgba(255,50,50,.5)
    }
}

@keyframes gradient-wave {
    0% {
        background-position: 0 50%
    }

    50% {
        background-position: 100% 50%
    }

    to {
        background-position: 0 50%
    }
}

/* Doink gif inline */
.doink-wrap {
  cursor: pointer;
  display: inline;
}

.doink-gif {
  display: inline;
  width: 32px;
  height: 32px;
  vertical-align: middle;
}

/* Dashed underline link style */
.dashed-link {
  text-decoration-line: underline;
  text-decoration-style: dashed;
  text-decoration-color: #888;
  text-underline-offset: 3px;
  cursor: pointer;
}


/* ---- "chill" tooltip ---- */

.tooltip-wrap {
  text-decoration-line: underline;
  text-decoration-style: dashed;
  text-decoration-color: #888;
  text-underline-offset: 3px;
  cursor: help;
  position: relative;
  display: inline-block;
}

.tooltip-box {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.95);
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  pointer-events: none;
  z-index: 50;
  display: inline-flex;
  opacity: 0;
  transition: opacity 0.15s;
}

.tooltip-wrap:hover .tooltip-box {
  opacity: 1;
}

/* Tooltip caret — outer (border colour) */
.tooltip-arrow-outer {
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid #ccc;
}

/* Tooltip caret — inner (fill colour) */
.tooltip-arrow-inner {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid rgba(255,255,255,0.95);
}

.tooltip-img {
  max-width: 40px;
  max-height: 40px;
  display: block;
}


/* ----------------------------------------------------------
   BOUNCE KEYFRAME
   (used by Now Playing bars — kept here so it's not
    buried in a <style> tag inside the HTML)
   ---------------------------------------------------------- */

@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40%           { transform: translateY(-6px); }
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
}

.project-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.project-info {
  padding: 8px;
}

.project-title {
  margin: 0;
  font-weight: bold;
}

.project-desc {
  margin: 4px 0 0;
  font-size: 12px;
  opacity: 0.8;
}

#cool-banners {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.np-progress-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 6px;
}

.np-elapsed,
.np-total {
  font-size: 9px;
  color: #aaa;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.np-progress-track {
  flex: 1;
  height: 3px;
  background: #ddd;
  border-radius: 2px;
  overflow: hidden;
}

.np-progress-fill {
  height: 100%;
  width: 0%;
  background: #1db954; /* Spotify green */
  border-radius: 2px;
  transition: width 0.9s linear;
}

::-webkit-scrollbar {
    width: 17px
}

::-webkit-scrollbar-track {
    background: linear-gradient(90deg,#e0e0e0,#f5f5f5 50%,#e0e0e0);
    border: 1px solid #a0a0a0
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg,#c8c8c8,#f0f0f0 30%,#c8c8c8);
    border: 1px solid #808080;
    border-radius: 0
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg,#d0d0d0,#ffffff 30%,#d0d0d0)
}

::-webkit-scrollbar-button:vertical:end:increment,::-webkit-scrollbar-button:vertical:start:decrement {
    height: 17px;
    background: linear-gradient(90deg,#e0e0e0,#f5f5f5 50%,#e0e0e0);
    border: 1px solid #a0a0a0
}

.scrollbar-thin::-webkit-scrollbar {
    height: 8px
}

.scrollbar-thin::-webkit-scrollbar-track {
    background: #f1f1f1
}

.scrollbar-thin::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
    background: #999
}

audio,canvas,embed,iframe,img,object,svg,video {
    display: block;
    vertical-align: middle;
}

img,video {
    max-width: 100%;
    height: auto
}