/* Custom mobile and layout fixes for whysooraj.fun */
/* ponytail: flex-based masonry layout rather than dynamic JS masonry grid. Ceiling: items wrap in rows, layout may have unequal height columns. Upgrade path: use CSS columns, grid-masonry, or a library like Masonry.js. */

/* ── Hero Layout ─────────────────────────────────────── */
/* Override theme hero: text centered-left, avatar anchored right */
.hero-container {
  justify-content: space-between !important;
  align-items: center !important;
  gap: 2rem !important;
  padding: 0 4rem !important;
  flex-wrap: nowrap !important;
  max-width: 1100px !important;
  width: 100% !important;
}

/* Make the hero wrapper fill full viewport and center content */
.hero-wrapper.snap-section {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: calc(100vh - 3.75rem) !important;
  padding-bottom: 4rem !important;
}

.hero-content {
  flex: 1 1 auto !important;
  text-align: left !important;
  max-width: 480px !important;
}

.retro-avatar-container {
  flex: 0 0 auto !important;
  margin-left: auto;
}

@media (max-width: 768px) {
  .hero-container {
    flex-direction: column-reverse !important;
    justify-content: center !important;
    padding: 2rem 1.5rem !important;
    flex-wrap: wrap !important;
  }
  .hero-content {
    text-align: center !important;
    max-width: 100% !important;
  }
  .retro-avatar-container {
    margin-left: 0;
  }
}

/* ── Grid Layout ─────────────────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-block-start: 2rem;
}

@media (min-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.portfolio-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

#main-content .portfolio-column article {
  box-shadow: none !important;
  border: 2px solid var(--accent-color) !important;
  background-color: var(--surface-solid) !important;
  border-radius: var(--rounded-corner);
  padding: 1rem;
  break-inside: avoid;
}

#main-content .portfolio-column article > :first-child {
  margin-block-start: 0;
}

#main-content .portfolio-column article > :last-child {
  margin-block-end: 0;
}

/* Card banner image (widescreen, full-width fit) */
#main-content .portfolio-column article > img:first-child {
  width: calc(100% + 2rem);
  height: auto;
  margin-left: -1rem;
  margin-right: -1rem;
  margin-top: -1rem;
  margin-bottom: 1rem;
  border-top-left-radius: calc(var(--rounded-corner) - 2px);
  border-top-right-radius: calc(var(--rounded-corner) - 2px);
  display: block;
  transition: transform var(--transition-bezier), filter var(--transition);
}

#main-content .portfolio-column article > img:first-child:hover {
  transform: scale(1.02);
}
#clock {
  font-family: monospace;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Mini Windows 95 Desktop Simulator */
#mini-desktop {
  position: relative;
  width: 100%;
  height: 320px;
  background-color: #008080; /* Windows 95 Teal */
  border: 2px solid #000;
  box-shadow: inset -1px -1px #fff, inset 1px 1px #808080;
  font-family: monospace;
  overflow: hidden;
  user-select: none;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.desktop-icons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.75rem;
  width: 80px;
  position: absolute;
  top: 0;
  left: 0;
}

.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  color: #fff;
  font-size: 0.7rem;
  text-shadow: 1px 1px #000;
  font-weight: bold;
}

.desktop-icon .icon-sprite {
  font-size: 1.6rem;
  margin-bottom: 2px;
  filter: drop-shadow(1px 1px 0px #000);
}

.desktop-icon:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}

/* Windows 95 UI */
.desktop-window {
  position: absolute;
  background-color: #c0c0c0;
  border: 2px solid;
  border-color: #fff #5a5a5a #5a5a5a #fff;
  box-shadow: inset 1px 1px #dfdfdf, inset -1px -1px #0a0a0a;
  width: 250px;
  display: flex;
  flex-direction: column;
  z-index: 10;
  border-radius: 2px;
}

.window-titlebar {
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
  padding: 2px 6px;
  font-weight: bold;
  font-size: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: move;
  border-bottom: 2px solid #c0c0c0;
}

.window-controls button {
  background-color: #c0c0c0;
  border: 1px solid;
  border-color: #fff #5a5a5a #5a5a5a #fff;
  box-shadow: inset 1px 1px #dfdfdf;
  font-family: monospace;
  font-size: 0.75rem;
  font-weight: bold;
  width: 14px;
  height: 14px;
  padding: 0;
  line-height: 10px;
  text-align: center;
  cursor: pointer;
  color: #000;
}

.window-controls button:active {
  border-color: #5a5a5a #fff #fff #5a5a5a;
}

.window-body {
  padding: 8px;
  flex-grow: 1;
  font-size: 0.7rem;
  color: #000;
  overflow-y: auto;
  background-color: #fff;
  margin: 3px;
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
  max-height: 180px;
  line-height: 1.25;
}

.window-body p {
  margin: 0 0 6px 0;
}

.window-body p:last-child {
  margin-bottom: 0;
}

/* Taskbar */
.desktop-taskbar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 28px;
  background-color: #c0c0c0;
  border-top: 2px solid #fff;
  display: flex;
  align-items: center;
  padding: 2px 4px;
  box-sizing: border-box;
  z-index: 100;
}

.start-button {
  display: flex;
  align-items: center;
  background-color: #c0c0c0;
  border: 2px solid;
  border-color: #fff #5a5a5a #5a5a5a #fff;
  padding: 1px 6px;
  font-weight: bold;
  font-size: 0.7rem;
  cursor: pointer;
  gap: 3px;
  color: #000;
}

.start-button:active {
  border-color: #5a5a5a #fff #fff #5a5a5a;
}

.taskbar-clock {
  margin-left: auto;
  background-color: #c0c0c0;
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
  padding: 1px 6px;
  font-size: 0.7rem;
  color: #000;
  font-weight: bold;
}

/* ── Hyperfixation Pills ─────────────────────────────── */
.hyperfixation-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  list-style: none;
  padding: 0;
}

.hyperfixation-pills li {
  background: var(--surface-solid, #1a1a2e);
  border: 1px solid var(--accent-color);
  color: var(--fg-color);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.15s ease, color 0.15s ease;
  cursor: default;
  white-space: nowrap;
}

.hyperfixation-pills li:hover {
  background: var(--accent-color);
  color: #fff;
}

/* ── Section heading spacing fix ─────────────────────── */
.portfolio-column article h3 {
  margin-top: 0;
}

/* ── Mini desktop container should not have extra padding ─ */
#mini-desktop-wrapper {
  padding: 0;
  overflow: hidden;
}

/* ── Fancy list override: use pills instead of bullets ── */
article.fancy-list ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

article.fancy-list ul li {
  background: var(--surface-solid, #1a1a2e);
  border: 1px solid var(--accent-color);
  color: var(--fg-color);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
  cursor: default;
  white-space: nowrap;
}

article.fancy-list ul li:hover {
  background: var(--accent-color);
  color: #fff;
}

/* ── Nanolog empty state ─────────────────────────────── */
.nanolog-empty {
  list-style: none;
  padding: 2rem;
  text-align: center;
  opacity: 0.45;
  font-style: italic;
  border: 1px dashed var(--accent-color);
  border-radius: var(--rounded-corner);
}
