/* =================================================================
   FIRST LANTERN - ENHANCED BRAND STYLES
   Quiet Luxury Design System for Premium Chenpi Brand
   ================================================================= */

/* =============================================
   ENHANCED TYPOGRAPHY & SPACING
   ============================================= */

/* Refined typography hierarchy */
h1, .h1 {
  font-family: 'Playfair Display', 'Noto Serif SC', serif;
  font-weight: 300;
  font-size: clamp(20px, 3.5vw, 28px);
  line-height: 1.4;
  letter-spacing: 0;
  color: rgb(var(--color-text));
}

h2, .h2 {
  font-family: 'Playfair Display', 'Noto Serif SC', serif;
  font-weight: 300;
  font-size: clamp(16px, 3vw, 22px);
  line-height: 1.45;
  letter-spacing: 0;
  color: rgb(var(--color-text));
}

h3, .h3 {
  font-family: 'Playfair Display', 'Noto Serif SC', serif;
  font-weight: 300;
  font-size: clamp(14px, 2.5vw, 18px);
  line-height: 1.5;
  color: rgb(var(--color-text));
}

h4, h5, h6, .h4, .h5, .h6 {
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: rgb(var(--color-text));
  text-transform: uppercase;
}

/* Elegant body text */
body, p, .body-text {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Noto Sans SC', sans-serif;
  font-weight: 300;
  font-size: 13px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: rgba(var(--color-text), 0.75);
}

/* =============================================
   QUIET LUXURY INTERACTIONS
   ============================================= */

/* Premium button hover effects */
.btn, button, [type="submit"], .button {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn:hover, button:hover, [type="submit"]:hover, .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(var(--color-background), 0.3);
}

/* Subtle glow effect for primary actions */
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s;
}

.btn-primary:hover::before {
  left: 100%;
}

/* =============================================
   ENHANCED PRODUCT & COLLECTION CARDS
   ============================================= */

/* Product card enhancements */
.product-card, .collection-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(var(--color-text), 0.08);
  background: rgba(var(--color-background), 0.02);
}

.product-card:hover, .collection-card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 12px 35px rgba(var(--color-text), 0.1),
    0 4px 15px rgba(var(--color-background), 0.3);
  border-color: rgba(var(--color-background), 0.3);
}

/* Premium image containers */
.product-card img, .collection-card img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover img, .collection-card:hover img {
  transform: scale(1.05);
}

/* =============================================
   ARTICLE & BLOG ENHANCEMENTS  
   ============================================= */

/* Article card premium styling */
.article-card {
  transition: all 0.4s ease;
  border: 1px solid rgba(var(--color-text), 0.06);
  background: linear-gradient(135deg, 
    rgba(var(--color-background), 0.02) 0%, 
    rgba(var(--color-background), 0.08) 100%);
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(var(--color-text), 0.12);
  border-color: rgba(var(--color-background), 0.4);
}

/* Enhanced typography for article content */
.article-content, .blog-content {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(var(--color-text), 0.85);
}

/* Product and price typography */
.product-title, .product-name {
  font-family: 'Playfair Display', 'Noto Serif SC', serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.5;
  color: rgb(var(--color-text));
}

.price, .product-price {
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: rgb(var(--color-text));
}

/* Caption and meta text */
.caption, .meta-text, .product-meta {
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(var(--color-text), 0.6);
  text-transform: uppercase;
}

.article-content h2, .blog-content h2 {
  font-size: 32px;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.article-content h2::after, .blog-content h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: rgb(var(--color-background));
}

/* =============================================
   PREMIUM FORM ELEMENTS
   ============================================= */

/* Enhanced input fields */
input[type="text"], input[type="email"], input[type="password"], 
input[type="tel"], textarea, select {
  transition: all 0.3s ease;
  border: 1px solid rgba(var(--color-text), 0.12);
  background: rgba(var(--color-background), 0.02);
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

input:focus, textarea:focus, select:focus {
  border-color: rgb(var(--color-background));
  box-shadow: 0 0 0 3px rgba(var(--color-background), 0.1);
  transform: translateY(-2px);
}

/* Custom checkbox and radio styling */
input[type="checkbox"], input[type="radio"] {
  accent-color: rgb(var(--color-background));
}

/* =============================================
   NAVIGATION ENHANCEMENTS
   ============================================= */

/* Premium navigation hover effects */
.nav-link, .navigation a {
  transition: all 0.3s ease;
  position: relative;
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-link::after, .navigation a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: rgb(var(--color-background));
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after, .navigation a:hover::after {
  width: 100%;
}

/* =============================================
   LOADING & MICRO-ANIMATIONS
   ============================================= */

/* Subtle fade-in animation for elements */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Premium loading spinner */
.loading-spinner {
  border: 3px solid rgba(var(--color-text), 0.1);
  border-top: 3px solid rgb(var(--color-background));
  border-radius: 50%;
  width: 32px;
  height: 32px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* =============================================
   RESPONSIVE ENHANCEMENTS
   ============================================= */

@media (max-width: 768px) {
  /* Adjust spacing for mobile */
  .product-card:hover, .collection-card:hover, .article-card:hover {
    transform: translateY(-4px);
  }
  
  /* Reduce motion for mobile users who prefer it */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }
}

/* =============================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================= */

/* Focus indicators */
*:focus-visible {
  outline: 3px solid rgb(var(--color-background));
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .product-card, .collection-card, .article-card {
    border-width: 2px;
  }
}

/* Dark mode preparations */
@media (prefers-color-scheme: dark) {
  .product-card, .collection-card, .article-card {
    background: rgba(var(--color-text), 0.02);
  }
}