/* landing.css - Premium dedicated styles for root index.html landing page */

:root {
  --primary-glow: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 60%);
  --secondary-glow: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 60%);
  --glass-bg-premium: rgba(255, 255, 255, 0.45);
  --glass-border-premium: rgba(255, 255, 255, 0.4);
  --accent-blue: #2563eb;
  --accent-emerald: #10b981;
  --card-bg-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.3));
}

[data-theme="dark"] :root {
  --primary-glow: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, transparent 70%);
  --secondary-glow: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
  --glass-bg-premium: rgba(15, 23, 42, 0.65);
  --glass-border-premium: rgba(255, 255, 255, 0.08);
  --accent-blue: #3b82f6;
  --accent-emerald: #34d399;
  --card-bg-gradient: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.5));
}

/* Base resets & fonts */
body.landing-page {
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  background-color: var(--bg-color);
  color: var(--text-primary);
  position: relative;
}

/* Ambient glow blobs */
.glow-blob {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -2;
  filter: blur(80px);
  opacity: 0.8;
  transition: all 0.5s ease;
}

.glow-blob-1 {
  top: -100px;
  left: -100px;
  background: var(--primary-glow);
}

.glow-blob-2 {
  top: 40%;
  right: -200px;
  background: var(--secondary-glow);
}

/* Premium Navigation Logo Link */
.nav-logo-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-blue), #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: opacity 0.2s;
}
.nav-logo-link:hover {
  opacity: 0.9;
}

/* Hero elements */
.landing-hero {
  padding: 6rem 1rem 3rem 1rem;
  text-align: center;
  position: relative;
  z-index: 10;
}

.hero-tagline {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 1rem;
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(59, 130, 246, 0.08);
  border-radius: 2rem;
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.landing-hero h1 {
  font-size: 3.5rem;
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-blue) 70%, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.landing-hero p {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 2.5rem auto;
}

/* Features Quick Metric Grid */
.metrics-row {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.metric-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--glass-bg-premium);
  border: 1px solid var(--glass-border-premium);
  padding: 0.75rem 1.25rem;
  border-radius: 1rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.metric-item i {
  font-size: 1.25rem;
  color: var(--accent-blue);
}

.metric-item span {
  font-weight: 600;
  font-size: 0.95rem;
}

/* Premium Auth Glass Card */
.auth-status-card {
  max-width: 480px;
  background: var(--card-bg-gradient);
  border: 1px solid var(--glass-border-premium);
  border-radius: 2rem;
  padding: 2.25rem;
  margin: 0 auto 4rem auto;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--card-shadow), 0 20px 40px -15px rgba(0, 0, 0, 0.05);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-status-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow), 0 25px 50px -12px rgba(59, 130, 246, 0.1);
}

.user-profile-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.user-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-blue);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.user-name-title {
  font-size: 1.35rem;
  font-weight: 750;
  color: var(--text-primary);
}

.user-role-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.8rem;
  border-radius: 2rem;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-blue);
  border: 1px solid rgba(59, 130, 246, 0.15);
  margin-top: 0.25rem;
}

.user-role-badge.admin-badge {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.15);
}

.user-role-badge.seller-badge {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.15);
}

.btn-glowing {
  background: linear-gradient(135deg, var(--accent-blue), #6366f1);
  color: white !important;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
  border: none;
  transition: all 0.3s ease;
}

.btn-glowing:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
  background: linear-gradient(135deg, #2563eb, #4f46e5);
}

/* Explore Preview Catalog section */
.catalog-preview-section {
  max-width: 1280px;
  margin: 0 auto 6rem auto;
  padding: 0 1.5rem;
}

.section-title-wrapper {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title-wrapper h2 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, var(--text-primary) 40%, var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title-wrapper p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-top: 0.5rem;
}

/* Search bar on landing */
.landing-search-container {
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.landing-search-input {
  width: 100%;
  padding: 1.1rem 1.5rem 1.1rem 3.2rem;
  border-radius: 1.5rem;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text-primary);
  font-size: 1.05rem;
  outline: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.landing-search-input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.landing-search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 1.2rem;
}

/* Category Filter Tabs */
.landing-filter-chips {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.landing-chip {
  padding: 0.6rem 1.25rem;
  border-radius: 2rem;
  background: var(--glass-bg-premium);
  border: 1px solid var(--glass-border-premium);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.landing-chip:hover {
  border-color: var(--accent-blue);
  color: var(--text-primary);
}

.landing-chip.active {
  background: var(--accent-blue);
  color: white;
  border-color: var(--accent-blue);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.25);
}

/* Grid layout */
.landing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

/* Preview Modal CSS overlays */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-content-premium {
  background: var(--bg-color);
  border: 1px solid var(--glass-border-premium);
  border-radius: 2rem;
  width: 100%;
  max-width: 500px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: modalScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

@keyframes modalScaleUp {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  z-index: 10;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.15);
}

.auth-prompt-body {
  padding: 2.5rem 2rem;
  text-align: center;
}

.auth-prompt-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
}

.auth-prompt-body h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.auth-prompt-body p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 2rem;
}

.auth-prompt-actions {
  display: flex;
  gap: 1rem;
}

.auth-prompt-actions .btn {
  flex: 1;
}

/* Responsive fixes */
@media (max-width: 768px) {
  .landing-hero h1 {
    font-size: 2.5rem;
  }
  .landing-hero p {
    font-size: 1rem;
  }
  .metrics-row {
    gap: 1rem;
  }
}
