/* --- Global Styles --- */
body {
  background-image: url('Icons/Background.png'); /* path to your image */
  background-repeat: no-repeat;                   /* don’t tile it */
  background-size: cover;                         /* fill the screen */
  background-attachment: fixed;                   /* keeps it from scrolling */
  background-position: center center;            /* center the image */
  color: white;             /* readable text */
  margin: 0;                /* remove default spacing */
  font-family: sans-serif;  /* cleaner font */
}

/* --- Title Row --- */
.title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.title-icon {
  width: 36px;   /* bigger icons */
  height: 36px;
  flex-shrink: 0;
}

.title-row h1 {
  text-align: center;
  flex: 1;
}

.title-text {
  text-align: right;
  line-height: 1.2;
}

.title-text span {
  display: block;
  font-weight: bold;
}

.title-text small {
  display: block;
  font-size: 0.8em;
  color: #ccc;
}

/* --- Placeholder --- */
.placeholder {
  width: 100%;
  height: 100%;
  background: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  border-radius: 8px;
}

/* --- Etsy Button --- */
.etsy-btn {
  padding: 10px 20px;
  background: orange;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  display: block;
  margin: 20px auto;
}

/* --- Social Row --- */
.social-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin: 10px 0;
}

.social {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #2f2f2f;
  color: white;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.social:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.35);
}

/* --- Generic Buttons --- */
.button-container {
  text-align: center;
  margin: 20px 0;
}

.button {
  display: inline-block;
  padding: 12px 24px;
  background: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: transform 0.12s ease;
}

.button:hover {
  transform: translateY(-3px);
}

/* --- Parts Row --- */
.parts-row {
  display: flex;
  flex-direction: row;
  gap: 16px;
  overflow-x: auto;
  padding: 10px 0;
  -webkit-overflow-scrolling: touch;
  align-items: center;
}

.parts-row.dragging {
  cursor: grabbing;
  user-select: none;
}

.part {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 0 0 auto;
  min-width: 120px;
  transition: width 0.3s ease, margin 0.3s ease;
  position: relative;
  overflow: visible; /* allow the tag to extend outside the video */
}

.part.expanded {
  min-width: 240px;
}

.part-placeholder {
  width: 240px;
  height: 240px;
  background: gray;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  border-radius: 8px;
  transition: width 0.3s ease, height 0.3s ease;
}

.part.expanded .part-placeholder {
  width: 480px;
  height: 480px;
}

.part-label {
  margin-top: 6px;
  white-space: normal;
  font-size: 14px;
  line-height: 1.1;
}

/* --- Page Container --- */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 0 0 0; /* can leave horizontal padding if you want */
  border: 0;        /* even a transparent border works */
  min-height: 0.1px; /* optional tiny height */
}

main {
  padding: 10px 80px 80px 80px; /* top, right, bottom, left */
  box-sizing: border-box;
}

@media (max-width: 768px) {
  main {
    padding: 15px; /* or even 10–15px if you prefer */
  }
}


/* --- Example Rows --- */
.example-row {
  display: flex;
  align-items: center; /* vertically centers the image and text */
  justify-content: center; /* optional: evenly spaces them horizontally */
  gap: 20px;
  margin: 30px 0;
  flex-wrap: nowrap;
}

.example-row.reverse {
  flex-direction: row-reverse;
}

.example-image, 
.example-text {
  flex: 1;
  min-width: 0; /* prevents overflow */
    max-width: 100%;
  height: auto;
  display: block;
}

/* --- Search Bar --- */
.search-bar {
  position: sticky;
  top: 0px;
  text-align: center;
  margin: 20px 0;
  background-color: transparent;
  backdrop-filter: blur(5px); /* optional: adds a nice frosted-glass look */
  padding: 10px;
  z-index: 1100; /* keep it above the GIF rows */
  border-bottom: 1px solid #333; /* optional visual separation */
}


#search {
  padding: 10px;
  width: 60%;
  max-width: 400px;
  border-radius: 5px;
  border: none;
  font-size: 16px;
}

.gif-row-wrapper {
  position: relative;
  overflow: hidden;      /* hide overflowing parts */
  padding: 0 90px;       /* space on left/right for arrows */
  box-sizing: border-box;
}

@media screen and (max-width: 768px) {
  .scroll-arrow {
    display: none !important;
  }

  .gif-row-wrapper {
    padding: 0 10px; /* tighten sides for mobile */
  }
}

.parts-row {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 10px;

  /* hide scrollbar for all browsers */
  scrollbar-width: none; /* Firefox */
}

.parts-row::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

.scroll-arrow {
  position: absolute;
  top: 50%;
  left: 0; /* left arrow */
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: rgba(0,0,0,0.7);
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

.scroll-arrow.right {
  left: auto;
  right: 10px; /* right arrow */
}

/* triangle pseudo-element */
.scroll-arrow::before {
  content: '';
  position: absolute;       /* absolute positioning inside circle */
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  border-top: 4px solid white;
  border-left: 4px solid white;
  transform: translate(-35%, -50%) rotate(-45deg); /* left arrow */
}

.scroll-arrow.right::before {
  transform: translate(-65%, -50%) rotate(135deg);  /* right arrow */
}

.scroll-arrow.left {
  left: 0px;               /* sits in padding area */
}

.scroll-arrow.right {
  right: 0px;              /* sits in padding area */
}

@media screen and (max-width: 768px) {
  .scroll-arrow {
    display: none !important;
  }
}

.parts-row {
  display: flex;
  overflow-x: auto;               /* horizontal scroll */
  -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
  gap: 10px;                       /* spacing between parts */
  padding: 10px 0;                 /* top/bottom padding for touch */
}

.title-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 20px;
  background-color: rgba(0,0,0,0.5); /* optional, for readability */
  color: white;
  z-index: 1000;
  height: 80px; /* set a fixed height */
  backdrop-filter: blur(5px); /* optional: adds a nice frosted-glass look */
  transition: transform 0.3s ease;
  transform: translateY(0);
}

/* hidden state - slides the title bar up out of view */
.title-bar.hidden {
  transform: translateY(-100%);
}

/* optionally prevent pointer events while hidden */
.title-bar.hidden {
  pointer-events: none;
}

.page-container {
  margin-top: 140px; /* starting offset */
  transition: margin-top 0.5s ease;
}

.company-icon img {
  width: 60px;
  height: auto;
}

.title-buttons {
  display: flex;
  gap: 20px;
  align-items: center;
}

.title-button a {
  text-decoration: none;
  color: inherit;
}

.title-button p {
  margin: 0;
  font-size: 0.85em;
  color: #ccc;
}

.title-btn-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 6px 12px;
  background-color: #333;
  border-radius: 8px;
  min-width: 90px; /* ensures both buttons align neatly */
}

.image-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* centers the row and any wrapped rows */
  gap: 10px; /* spacing between images */
  margin: 20px auto;
  max-width: 1000px;
}

.image-row img {
  width: auto;       /* prevents images from stretching */
  height: 300px;     /* set a consistent height */
  object-fit: cover; /* crops if aspect ratios differ */
  border-radius: 6px;
}

.split-container {
  display: flex;
  gap: 40px; /* space between left and right */
  align-items: flex-start;
  flex-wrap: wrap; /* optional, keeps things responsive */
}

.left-side, .right-side {
  flex: 1; /* each side takes up roughly half */
  min-width: 300px; /* ensures layout doesn’t break on small screens */
}

.right-side {
  flex: 1;               /* take available space */
  display: flex;         /* use flex to contain video */
  justify-content: center; /* center horizontally */
  align-items: center;     /* center vertically if needed */
  max-width: 50%;          /* optional: don't let it get too wide */
}

.right-side video {
  width: 100%;       /* fills container width */
  height: auto;      /* keeps aspect ratio */
  display: block;    /* avoid inline spacing issues */
}

.demo-gif {
  max-width: 100%;
  height: auto;
  display: block;
}

.part video {
  width: 200px;
  transition: width 0.3s ease, height 0.3s ease;
  cursor: pointer;
}

.part.expanded {
  width: 90vw;          /* the container expands */
  max-width: 600px;     /* cap on desktop */
  position: relative;
  z-index: 10;
  margin: 0 auto;
  transition: width 0.3s ease, height 0.3s ease;
}

.part.expanded video {
  width: 100%;          /* video fills the container */
  height: auto;         /* keep aspect ratio */
}

.parts-row .part {
  flex: 0 0 auto;          /* prevent flex items from shrinking unpredictably */
  transition: all 0.3s ease;
}

.button-wrapper {
  text-align: center; /* centers inline-flex child */
}

.cults-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  width: 140px;          /* fixed width to match other buttons */
  background-color: #2f2f2f;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.2s ease, transform 0.2s ease;
}


.cults-button:hover {
  background-color: #666;
  transform: scale(1.05);
}

.cults-icon {
  width: 24px;
  height: 24px;
  display: block;
}

.etsy-button {
  display: inline-flex;       /* side by side icon + text */
  align-items: center;        /* vertical alignment */
  gap: 8px;                   /* space between icon and text */
  padding: 8px 16px;          /* button size */
  width: 140px;    
  background-color: #2f2f2f;     /* grey like other buttons */
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.etsy-button:hover {
  background-color: #666;
  transform: scale(1.05);
}

.social-icon {
  width: 24px;
  height: 24px;
  display: block;             /* prevents spacing issues */
}

/* Coming soon box replaces the video visually */
.coming-soon .placeholder {
  width: 190px;
  height: 190px;
  aspect-ratio: 1 / 1; /* keeps same shape as video */
  background: repeating-linear-gradient(
    135deg,
    #ddd,
    #ddd 20px,
    #eee 20px,
    #eee 40px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 2px dashed #aaa;
  position: relative;
}

/* Centered text styling */
.coming-soon .placeholder span {
  font-weight: bold;
  font-size: 16px;
  color: #444;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.video-wrapper {
  position: relative;
  width: fit-content;       /* makes wrapper match video’s intrinsic width */
  height: fit-content;      /* same for height */
  overflow: hidden;
}

.video-wrapper video {
  display: block;
  max-width: 100%;          /* keep scaling consistent with other .part videos */
  height: auto;
}

.tag-2h {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 32px;
  background-color: #777;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  writing-mode: vertical-rl;
  text-orientation: mixed;

  display: flex;               /* make it a flex container */
  align-items: center;         /* vertically center the text */
  justify-content: center;     /* horizontally center the text */
  letter-spacing: 1px;
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
  box-shadow: inset 0 0 4px rgba(0,0,0,0.2);
  pointer-events: none;
}

@media (max-width: 768px) {
  .split-container {
    flex-direction: column;   /* stack vertically */
    align-items: center;      /* center all children horizontally */
    gap: 20px;                /* optional, smaller gap on mobile */
  }

  .right-side video {
    width: 100%;             /* scale to container width */
    max-width: 300px;        /* optional max width */
    height: auto;
  }

  .image-row img {
    height: 150px;
  }
}

@media (max-width: 480px) {
  .part-placeholder {
    width: 60px; /* even smaller for compact phones */
  }

  .parts-row {
    gap: 2px;
    padding: 2px 0;
  }
    .part video {
    width: 100px;   /* or a percentage if you prefer */
    height: auto;
  }
  .coming-soon .placeholder {
  width: 100px; /* even smaller for compact phones */
  height: auto;
  }
}

@media (max-width: 400px) {
  .company-icon {
    display: none;
  }
}
