/* ——— Lucid Innovations Site Look & Feel ——— */

/* Logo height drives overlay-page content positioning via CSS vars */
:root {
  --logo-h: 220px;
  --logo-pad-v: 0.3rem;  /* vertical padding on .site-logo */
}

body {
  background-color: #212121;
  font-family: Arial, sans-serif;
  color: white;
  position: relative;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('background.jpg') no-repeat center center/cover;
  opacity: 0.5;
  z-index: -1;
}

.content {
  position: relative;
  max-width: 800px;
  margin: 120px auto 80px;
  padding: 2rem;
  background: rgba(33,33,33,0.85);
  border-radius: 8px;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
}

/* Flex wrapper: logo column left, content right */
.page-layout {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  position: relative;
}

/* Left column: logo stacked above Products nav */
.site-header {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2.5rem;
  z-index: 10;
  position: relative;
}

.site-logo {
  display: inline-block;
  border-radius: 16px;
  padding: 0.3rem 0.5rem;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.site-logo img {
  height: 220px;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.6));
}
.site-logo:hover {
  background-color: rgba(255,255,255,0.15);
  box-shadow: inset 0 0 8px rgba(255,255,255,0.6);
  text-decoration: none;
}

/* Products hover dropdown — open/close driven by JS */
.products-nav {
  position: relative;
}
.products-nav__label {
  font-family: 'Indie Flower', cursive;
  font-size: 2.2rem;
  color: white;
  text-shadow: 0 0 8px rgba(0,0,0,0.7);
  cursor: default;
  padding: 0.1rem 0.4rem;
  display: inline-block;
  user-select: none;
}
.products-nav__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 820px;
  background: rgba(25,25,25,0.92);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 0.4rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease 0.1s;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.products-nav__dropdown.open {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.15s ease;
}

h2 {
  font-family: 'Indie Flower', cursive;
  font-size: 2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 6px rgba(0,0,0,0.7);
}

h3 {
  font-family: 'Indie Flower', cursive;
  font-size: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 6px rgba(0,0,0,0.7);
}

p, li {
  line-height: 1.6;
  margin-bottom: 1rem;
}

ul {
  list-style-type: disc;
  padding-left: 1.5rem;
}

a {
  color: #FFD740;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}
/* ——————————————————————————————— */

/* reset & base same as before… */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
}



/* Indie-Flower contact, pinned to bottom */
.contact {
  position: absolute;
  bottom: 2rem;
  left: 1.5rem;
  width: auto;
  font-family: 'Indie Flower', cursive;  /* same font as title */
  font-weight: 400;
  font-size: 1rem;
  color: white;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.7);
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 1;                  /* above the overlay */
}

/* Hover effect for contact link */
.contact:hover {
  background-color: rgba(255,255,255,0.2);
  box-shadow: inset 0 0 6px rgba(255,255,255,0.7);
  color: white;
  text-decoration: none;  
}

body.office-addin .content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

body.eula .content h2,
body.eula .content h3 {
  font-family: Arial, sans-serif;
  text-shadow: none;
}

/* ——— Home page: product cards ——— */
.product-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: white;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.product-card:hover {
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,215,64,0.45);
  text-decoration: none;
}
.product-logo {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  flex-shrink: 0;
  object-fit: contain;
}
.product-info h3 {
  font-size: 1.4rem;
  margin: 0 0 0.2rem;
}
.product-info p {
  margin: 0;
  opacity: 0.75;
  font-size: 0.9rem;
  font-family: Arial, sans-serif;
}

/* ——— PartPerfect product page ——— */
.app-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.app-icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  flex-shrink: 0;
  object-fit: contain;
}
.app-header h2 {
  margin: 0 0 0.1rem;
}
.tagline {
  margin: 0;
  opacity: 0.7;
  font-size: 1rem;
  font-family: Arial, sans-serif;
}

.screenshots {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.75rem 0 1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,215,64,0.4) transparent;
  margin: 0.5rem 0 1.5rem;
}
.screenshots img {
  height: 380px;
  border-radius: 16px;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.store-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0.5rem 0 1.5rem;
}
.store-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 0.6rem 1.4rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22);
  color: white;
  text-decoration: none;
  transition: background 0.2s ease;
  min-width: 140px;
}
.store-btn:hover {
  background: rgba(255,255,255,0.18);
  text-decoration: none;
  color: white;
}
.store-btn__label {
  font-size: 0.7rem;
  opacity: 0.75;
  letter-spacing: 0.03em;
}
.store-btn__store {
  font-size: 1.05rem;
  font-weight: bold;
  margin-top: 0.1rem;
}

.legal-links {
  font-size: 0.85rem;
  opacity: 0.6;
  margin-top: 1.5rem;
}
.legal-links a {
  color: rgba(255,215,64,0.8);
}

/* ——— Overlay pages: PartPerfect + Privacy Policy ——— */
body.overlay .content {
  flex: 0 1 860px;   /* don't grow past 860px; shrink if needed */
  margin: 0 auto;    /* center in remaining space beside the logo */
  height: calc(100vh - 3rem);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,215,64,0.35) transparent;
}
body.overlay .content::-webkit-scrollbar { width: 4px; }
body.overlay .content::-webkit-scrollbar-thumb {
  background: rgba(255,215,64,0.35);
  border-radius: 2px;
}
body.overlay .content::-webkit-scrollbar-track { background: transparent; }

/* Compact text spacing for the privacy policy overlay */
body.eula.overlay .content h2 { margin-top: 0; margin-bottom: 0.3rem; }
body.eula.overlay .content h3 { margin-top: 0.7rem; margin-bottom: 0.1rem; font-size: 1.1rem; }
body.eula.overlay .content p,
body.eula.overlay .content li { margin-bottom: 0.35rem; line-height: 1.5; font-size: 0.9rem; }
body.eula.overlay .content ul { margin-bottom: 0.4rem; }

/* X close button (top-right of content box) */
.close-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.9rem;
  font-size: 1.6rem;
  line-height: 1;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
  z-index: 2;
}
.close-btn:hover {
  color: white;
  transform: scale(1.2);
  text-decoration: none;
}

/* Compact feature grid: 2 columns */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2rem 1.5rem;
  list-style: disc;
  padding-left: 1.5rem;
  margin: 0.5rem 0 1rem;
}
.features-grid li {
  margin-bottom: 0;
  line-height: 1.45;
  font-size: 0.92rem;
}

/* Screenshots: clickable */
.screenshots img {
  height: 360px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.screenshots img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 30px rgba(0,0,0,0.7);
}
.screenshots {
  margin: 0.4rem 0 1rem;
  padding-bottom: 0.5rem;
}

/* Bottom row: store buttons left, privacy right */
.page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
}
.page-footer .store-buttons {
  margin: 0;
}
.page-footer .legal-links {
  margin: 0;
  opacity: 0.55;
  white-space: nowrap;
}

/* Screenshot lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 200;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox.open {
  display: flex;
}
.lightbox img {
  max-height: 90vh;
  max-width: 90vw;
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.8);
  cursor: default;
}
.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2.5rem;
  line-height: 1;
  color: rgba(255,255,255,0.75);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease, transform 0.15s ease;
}
.lightbox__close:hover {
  color: white;
  transform: scale(1.15);
}

/* ——— Narrow screen: stack logo above content ——— */
@media (max-width: 940px) {
  .page-layout { flex-direction: column; }
  body.overlay .content {
    flex: none;    /* flex-basis was for width in row mode; disable in column mode */
    width: 100%;
    margin: 0;
    /* 1.5rem top pad + logo + 1.5rem gap + content + 1.5rem bottom pad = 100vh */
    height: calc(100vh - 4.5rem - var(--logo-pad-v) * 2 - var(--logo-h));
  }
}

/* ——— Mobile responsive ——— */
@media (max-width: 768px) {
  /* Shrink logo; CSS var drives overlay content position automatically */
  :root {
    --logo-h: 120px;
    --logo-pad-v: 0.2rem;
  }
  .site-logo { padding: 0.2rem 0.3rem; }
  .site-logo img { height: 120px; }
  .site-header { gap: 1rem; }

  /* Products nav */
  .products-nav__label { font-size: 1.6rem; }
  .products-nav__dropdown {
    min-width: calc(100vw - 3rem);
    left: 0;
  }

  /* Overlay content box */
  body.overlay .content {
    padding: 1.25rem;
  }

  /* Features grid: single column on mobile */
  .features-grid { grid-template-columns: 1fr; }

  /* Screenshots: shorter on mobile */
  .screenshots img { height: 220px; }

  /* Footer: stack vertically */
  .page-footer { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .store-buttons { flex-direction: column; }
}
