/* only to make xp.css more navigable and moldable.. */

* {
  box-sizing: border-box;
}

:root {
  --site-red-light: #b86b72;
  --site-red-mid: #9e4a53;
  --site-red-dark: #7f303b;
}

body {
  margin: 0;
  background: url("../images/background_site_1.jpg") no-repeat center center fixed;
  background-size: cover;
  padding-top: calc(20px + env(safe-area-inset-top));
  padding-right: calc(20px + env(safe-area-inset-right));
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
  padding-left: calc(20px + env(safe-area-inset-left));
  -webkit-text-size-adjust: 100%;
  cursor: url("../cur881.cur"), auto;
}

/* Page container */
.page {
  width: 100%;
  margin: 40px auto;
  max-width: 1100px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 0 25px rgba(0,0,0,0.4);
}
/* iphone protections,,, */
@media (max-width: 768px) {
  body {
    padding-top: calc(10px + env(safe-area-inset-top));
    padding-right: calc(10px + env(safe-area-inset-right));
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    padding-left: calc(10px + env(safe-area-inset-left));
    background-attachment: scroll;
  }

  .page {
    width: 100%;
    min-width: unset;
    margin: 10px auto;
  }

  .content-wrapper {
    flex-direction: column;
  }
}

/* Header spacing */
.header-window {
  width: 100%;
}

/* Content layout */
.content-wrapper {
  display: flex;
  gap: 20px;
}

/* Sidebar */
.sidebar {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Main content */
.main {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-window {              /* narrower than other windows */
  max-width: 60%;             /* responsive for mobile */          /* center horizontally + some top/bottom spacing */
  position: relative;         /* allows optional z-index */
  z-index: 10;                /* float above other content */
  box-shadow: 0 4px 12px rgba(0,0,0,0.3); /* subtle floating effect */
}
/* Make profile-body a horizontal flex container */
.profile-body {
  display: flex;
  align-items: center; /* vertical centering */
  gap: 10px;           /* space between image and text */
}

/* Profile image styling */
.profile-img {
  width: clamp(64px, 20%, 110px);          /* fixed width */
  height: auto;         /* fixed height */
  border: 1px solid var(--site-red-mid); /* XP-style border */
  border-radius: 2px;
}

/* Profile info text */
.profile-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Optional styling */
.profile-name {
  font-weight: bold;
  margin: 0;
}

.profile-subtitle {
  font-size: 0.85rem;
  color: #555;
  margin: 0;
}

.title-bar {
  background: linear-gradient(180deg, var(--site-red-light) 0%, var(--site-red-mid) 55%, var(--site-red-dark) 100%) !important;
  border: 1px solid var(--site-red-dark) !important;
  box-shadow: inset 1px 1px rgba(255, 255, 255, 0.25), inset -1px -1px rgba(79, 21, 28, 0.35) !important;
}

.window {
  border-color: var(--site-red-dark) !important;
  box-shadow: inset 1px 1px #fff, inset -1px -1px var(--site-red-dark), 0 0 0 1px #f2d9dc !important;
}

button,
select,
input,
textarea {
  border-color: var(--site-red-dark) !important;
}

button:focus,
select:focus,
input:focus,
textarea:focus {
  outline: 1px dotted var(--site-red-dark) !important;
  outline-offset: -2px;
  box-shadow: 0 0 0 1px #f2d9dc !important;
}

/* Button stacking in nav */
.nav-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* buttons are kind of ginormous?? come back to this */
button {
  padding: 4px 10px;
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
  .content-wrapper {
    flex-direction: column;
  }
}

/* i'm fighting major wars against xp.css. major wars. */
.window .nav-window-body {
  display: flex !important;
  flex-direction: row !important;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: nowrap;
}

/* Left preview section */
.nav-preview {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-preview img {
  width: 100%;
  max-width: 150px;
  flex: 1.3;
  border: 1px solid var(--site-red-mid);
}

/* Right control section */
.nav-controls {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 200px;
}

/* Make select full width */
.nav-controls select {
  width: 100%;
}

/* Mobile stacking */
@media (max-width: 768px) {
  .window .nav-window-body {
    flex-direction: column !important;
    align-items: stretch;
  }

  .nav-preview img {
    max-width: 100%;
  }

  .nav-controls {
    min-width: 0;
  }
}

/* iphone protections... */
@media (max-width: 768px) {
  .profile-window {
    max-width: 100%;
  }

  button {
    padding: 10px 14px;
    font-size: 1rem;
  }

  select,
  button {
    min-height: 44px;
    font-size: 16px;
  }

  .window {
    width: 100%;
  }

  .title-bar-text {
    font-size: 1rem;
  }

}

.project-console {
  display: grid;
  grid-template-columns: minmax(170px, 230px) 1fr;
  gap: 12px;
  margin-top: 10px;
}

.project-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-button {
  text-align: left;
  width: 100%;
}

.project-button.is-active {
  font-weight: bold;
}

.console-window {
  background: #ffffff;
  border: 1px solid var(--site-red-mid);
  color: #222;
  font-family: "Tahoma", "Segoe UI", sans-serif;
  padding: 10px;
  min-height: 140px;
}

.console-label {
  margin: 0 0 8px;
  color: var(--site-red-dark);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  font-weight: bold;
}

.console-title {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #000;
}

.console-readout {
  margin: 0 0 12px;
  line-height: 1.45;
}

.console-carousel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.console-media-stage {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--site-red-mid);
  background: #f6ecee;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.console-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 0;
}

.console-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 0;
  background: #000;
}

.console-pdf {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.console-caption {
  margin: 0;
  font-size: 0.82rem;
  color: #333;
}

.carousel-controls {
  display: flex;
  gap: 8px;
}

.carousel-controls button {
  min-width: 72px;
}

@media (max-width: 768px) {
  .project-console {
    grid-template-columns: 1fr;
  }

  .console-media-stage {
    aspect-ratio: 4 / 3;
  }
}

