@import './landing.css';

/* ============================================================
   AWWWARDS-STYLE TYPOGRAPHIC PRELOADER
   ============================================================ */
#lp-page-loader {
  position: fixed;
  inset: 0;
  background: #050505;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.loader-wrap {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.loader-line {
  overflow: hidden;
  height: clamp(32px, 8vw, 72px);
}

.loader-text-item {
  display: block;
  font-family: 'Akira Expanded', sans-serif;
  font-size: clamp(26px, 6vw, 64px);
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  transform: translateY(100%);
}

.loader-progress {
  position: absolute;
  bottom: 40px;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.2em;
}

/* ============================================================
   HEADER BANNER (PREVENT INITIAL JUMP)
   ============================================================ */
.lp-artisans-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: #0c0c0c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 9980;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;             /* Hidden by default in CSS */
  transform: translateY(-60px); /* Pre-positioned offscreen */
}

.lp-header-title {
  font-family: 'ThccHandwritten', sans-serif;
  font-size: clamp(16px, 4vw, 24px);
  color: #ffffff;
  letter-spacing: 0.05em;
  margin: 0;
  text-align: center;
}

/* ============================================================
   SIDEBAR & CONTENT OVERRIDES (BREATHING ROOM)
   ============================================================ */
#lp-content {
  margin-top: 60px !important;
  padding-top: 40px;
  padding-left: var(--card-gap);
  padding-right: var(--card-gap);
  padding-bottom: calc(var(--card-gap) + 80px);
}

.lp-sidebar {
  pointer-events: all !important;
}

@media (min-width: 769px) {
  .lp-sidebar {
    top: 60px !important;
    height: calc(100vh - 60px) !important;
    transform: none !important;
    opacity: 0; /* Fade/slide in on load */
  }
}

@media (max-width: 768px) {
  #lp-content {
    margin-top: 60px !important;
    padding-top: 24px;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: var(--card-gap) !important;
    margin-right: var(--card-gap) !important;
    width: auto !important;
  }
}

/* ============================================================
   HERO BANNER CARD
   ============================================================ */
.lp-artisans-hero-card {
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  background-color: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 40px;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

@media (max-width: 768px) {
  .lp-artisans-hero-card {
    height: 250px;
    margin-top: 16px;
    margin-bottom: 32px;
  }
}

.lp-artisans-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.lp-artisans-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(0, 242, 0, 0.15) 0%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 1;
}

.lp-artisans-hero-content {
  position: relative;
  z-index: 2;
  overflow: hidden;
  text-align: center;
}

.lp-artisans-hero-title {
  font-family: 'Akira Expanded', sans-serif;
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.05em;
  margin: 0;
  transform: translateY(110%);
}

/* ============================================================
   SECTION TITLE
   ============================================================ */
.lp-artisans-section-title {
  font-family: 'Akira Expanded', sans-serif;
  font-size: clamp(1.4rem, 3.5vw, 2.5rem);
  font-weight: 900;
  color: var(--accent);
  margin-top: 40px;
  margin-bottom: 24px;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  opacity: 0;
}

/* ============================================================
   ARTISANS ROW GRID (HORIZONTAL SCROLLING SLIDER LAYOUT)
   ============================================================ */
.lp-artisans-grid {
  display: flex;
  gap: var(--card-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 24px;
  margin-bottom: 60px;
  scrollbar-width: none; /* Hide scrollbars for Firefox */
}

.lp-artisans-grid::-webkit-scrollbar {
  display: none; /* Hide scrollbars for Chrome/Safari */
}

/* ============================================================
   ARTISAN PROFILE CARD
   ============================================================ */
.lp-artisan-card {
  flex: 0 0 350px;
  height: 480px;
  scroll-snap-align: start;
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  background-color: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Top name / Bottom metadata layout */
  padding: 36px;
  cursor: pointer;
  transition: border-color 0.3s ease;
  opacity: 0;
}

@media (max-width: 768px) {
  .lp-artisan-card {
    flex: 0 0 290px;
    height: 390px;
    padding: 28px;
  }
}

.lp-artisan-card:hover {
  border-color: rgba(255, 242, 0, 0.35);
}

.lp-artisan-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.lp-artisan-card:hover .lp-artisan-card-bg {
  transform: scale(1.06);
}

/* Card Content Items styling */
.lp-artisan-card-name {
  font-family: 'Akira Expanded', sans-serif;
  font-size: clamp(14px, 1.8vw, 19px);
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  text-align: center;
  position: relative;
  z-index: 2;
  margin: 0;
  line-height: 1.2;
}

.lp-artisan-card-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 2;
}

.lp-artisan-card-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(11px, 1.2vw, 13px);
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-align: center;
}

.lp-artisan-card-country {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(9px, 1vw, 11px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
}

/* ============================================================
   ARTISANS DETAILS PAGE SPECIFIC STYLES
   ============================================================ */

/* SECTION 1: Hero Details Intro */
.lp-artisan-hero-section {
  display: flex;
  gap: var(--card-gap);
  align-items: center;
  margin-bottom: 120px;
  width: 100%;
  opacity: 0; /* JS reveal */
}

.lp-artisan-hero-left {
  flex: 0 0 45%;
  width: 100%;
}

.lp-artisan-hero-img-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 520px;
  overflow: hidden;
  border-radius: var(--card-radius);
  border: 1px solid rgba(255, 255, 255, 0.4); /* White border */
  background: #0d0d0d;
  opacity: 0; /* Hide initially */
}

.lp-artisan-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.lp-artisan-hero-img-box:hover .lp-artisan-hero-img {
  transform: scale(1.04);
}

.lp-artisan-hero-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-left: 20px;
  width: 100%;
}

.lp-artisan-hero-name {
  font-family: 'Akira Expanded', sans-serif;
  font-size: clamp(1.8rem, 5vw, 4.0rem);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  margin: 0;
}

.lp-artisan-hero-role {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(16px, 2.5vw, 24px);
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
  opacity: 0; /* Hide initially */
}

.lp-artisan-hero-meta {
  display: flex;
  gap: 24px;
  align-items: center;
  opacity: 0; /* Hide initially */
}

.lp-artisan-hero-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin: 0;
}

.lp-artisan-hero-loc {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}

.lp-artisan-bio {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.lp-artisan-bio p {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.7;
  color: var(--text);
  margin: 0;
  opacity: 0; /* Hide initially */
}

@media (max-width: 768px) {
  .lp-artisan-hero-section {
    flex-direction: column;
    gap: 32px;
    text-align: center;
    align-items: center;
  }
  .lp-artisan-hero-left {
    flex: 0 0 auto;
    width: 100%;
  }
  .lp-artisan-hero-right {
    padding-left: 0;
    align-items: center;
  }
  .lp-artisan-hero-name {
    font-size: clamp(1.4rem, 8vw, 2.6rem) !important;
  }
  .lp-artisan-hero-meta {
    justify-content: center;
  }
}

/* Yellow Divider pill bar */
.lp-yellow-divider {
  width: 55%;
  height: 48px;
  background-color: var(--accent); /* Solid yellow pill line */
  border-radius: 0 999px 999px 0; /* Flat left, rounded right */
  margin-left: calc(-1 * var(--card-gap)); /* Pull it all the way to the left edge of the screen */
  margin-top: 0;
  margin-bottom: 80px;
  border: none;
  opacity: 0;
}

@media (max-width: 768px) {
  .lp-yellow-divider {
    width: 70%;
    height: 24px;
    margin-bottom: 48px;
  }
}

/* SECTION 2: Featured Products */
.lp-artisan-products-section {
  margin-bottom: 120px;
  width: 100%;
}

.lp-artisan-section-title {
  font-family: 'Akira Expanded', sans-serif;
  font-size: clamp(1.4rem, 3.5vw, 2.5rem);
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 24px;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  opacity: 0; /* Hide initially */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

@media (max-width: 768px) {
  .lp-artisan-section-title {
    font-size: clamp(1.0rem, 5.5vw, 1.6rem) !important;
    line-height: 1.2;
  }
}

.lp-artisan-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--card-gap);
  margin-top: 40px;
}

@media (max-width: 768px) {
  .lp-artisan-products-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.lp-artisan-product-card {
  display: flex;
  flex-direction: column;
  opacity: 0; /* Hide initially */
}

.lp-artisan-product-img-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--card-radius);
  border: 1px solid rgba(255, 255, 255, 0.4); /* White border style */
  background: #0d0d0d;
}

.lp-artisan-product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.lp-artisan-product-card:hover .lp-artisan-product-img {
  transform: scale(1.05);
}

.lp-artisan-product-info {
  padding: 24px 0 0 0;
  text-align: center;
}

.lp-artisan-product-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 4px 0;
}

.lp-artisan-product-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* SECTION 3: Social Links */
.lp-artisan-links-section {
  margin-bottom: 60px;
  width: 100%;
}

.lp-social-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 32px;
  margin-bottom: 64px;
  align-items: center;
}

.lp-social-icon-link {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0; /* Hide initially */
}

.lp-social-icon-link:hover {
  color: var(--accent);
  transform: scale(1.18);
}

/* ============================================================
   CUSTOM FOOTER BOTTOM LINKS OVERRIDES
   ============================================================ */
.lp-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  margin-top: 8px;
}

.lp-footer-links {
  display: flex;
  gap: 24px;
}

.lp-footer-link {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.lp-footer-link:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  .lp-footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .lp-footer-links {
    justify-content: center;
  }
}

/* ============================================================
   SUCCESS TOAST NOTIFICATION STYLES
   ============================================================ */
.lp-toast {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background: #0f0f0f;
  border: 1px solid var(--accent);
  border-radius: var(--card-radius);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 11000;
  transform: translateX(120%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lp-toast.show {
  transform: translateX(0);
}

.lp-toast-icon {
  width: 24px;
  height: 24px;
  background: var(--accent);
  color: #000000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}

.lp-toast-title {
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  font-size: 14px;
}

.lp-toast-msg {
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  font-size: 12px;
}

@media (max-width: 768px) {
  .lp-toast {
    bottom: 24px;
    right: 24px;
    left: 24px;
    transform: translateY(150%);
  }
  .lp-toast.show {
    transform: translateY(0);
  }
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
  }
  .lp-mobile-nav {
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
  }
}

/* SECTION 2.5: Other Works Slider */
.lp-artisan-works-section {
  margin-bottom: 120px;
  width: 100%;
}

.lp-artisan-works-slider {
  display: flex;
  gap: var(--card-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 24px;
  margin-bottom: 40px;
  scrollbar-width: none; /* Hide scrollbars for Firefox */
}

.lp-artisan-works-slider::-webkit-scrollbar {
  display: none; /* Hide scrollbars for Chrome/Safari */
}

.lp-artisan-work-card {
  flex: 0 0 320px;
  aspect-ratio: 9 / 16;
  scroll-snap-align: start;
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  background-color: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.4); /* Matches theme border styles */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  cursor: pointer;
  transition: border-color 0.3s ease;
  text-decoration: none;
  opacity: 0; /* JS reveal */
}

.lp-artisan-work-card:hover {
  border-color: rgba(255, 242, 0, 0.6);
}

@media (max-width: 768px) {
  .lp-artisan-work-card {
    flex: 0 0 260px;
    padding: 24px;
  }
}

.lp-artisan-work-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.lp-artisan-work-card:hover .lp-artisan-work-bg {
  transform: scale(1.04);
}

.lp-work-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
  z-index: 1;
}

.lp-artisan-work-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.lp-artisan-work-tag {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  display: block;
}

.lp-artisan-work-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
