/* 
   Loveshop - Секретная Лаборатория Пушистых Льдинок
   Main Stylesheet
*/

:root {
  /* Lab Atmosphere Colors */
  --background: 208 100% 97%;
  --foreground: 240 64% 27%;

  --card: 0 0% 100%;
  --card-foreground: 240 64% 27%;

  --popover: 0 0% 100%;
  --popover-foreground: 240 64% 27%;

  /* Chemical Pink - Primary CTA */
  --primary: 330 100% 71%;
  --primary-foreground: 0 0% 100%;

  /* Lavender Mist - Secondary */
  --secondary: 270 50% 90%;
  --secondary-foreground: 240 64% 27%;

  /* Lab Equipment Gray */
  --muted: 210 20% 92%;
  --muted-foreground: 210 15% 45%;

  /* Chemical Orange - Accent */
  --accent: 39 100% 50%;
  --accent-foreground: 240 64% 27%;

  /* Experiment Green */
  --success: 142 76% 36%;
  --success-foreground: 0 0% 100%;

  /* Error Red */
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;

  --border: 210 30% 85%;
  --input: 210 30% 85%;
  --ring: 330 100% 71%;

  --radius: 1rem;

  /* Custom Lab Variables */
  --gradient-lab: linear-gradient(135deg, hsl(208 100% 97%) 0%, hsl(270 50% 95%) 50%, hsl(180 60% 95%) 100%);
  --gradient-chemical: linear-gradient(135deg, hsl(330 100% 71%) 0%, hsl(280 70% 70%) 100%);
  --gradient-flask: linear-gradient(180deg, hsl(180 80% 70%) 0%, hsl(200 90% 60%) 100%);
  --gradient-orange: linear-gradient(135deg, hsl(39 100% 50%) 0%, hsl(20 100% 60%) 100%);
  
  --shadow-glow: 0 0 30px hsl(330 100% 71% / 0.3);
  --shadow-float: 0 20px 40px hsl(240 64% 27% / 0.1);
  --shadow-card: 0 8px 32px hsl(240 64% 27% / 0.08);
  
  /* Molecular Pattern */
  --pattern-molecules: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FF69B4' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3Ccircle cx='10' cy='10' r='1.5'/%3E%3Ccircle cx='50' cy='50' r='1.5'/%3E%3Cpath d='M30 30l-20-20M30 30l20 20' stroke='%23FF69B4' stroke-opacity='0.03'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: hsl(var(--border));
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'JetBrains Mono', monospace;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  background-image: var(--pattern-molecules);
  background-attachment: fixed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Comfortaa', cursive;
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

[data-lucide] {
  width: 1.25rem;
  height: 1.25rem;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) { .container { max-width: 640px; } }
@media (min-width: 768px) { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }

.flex { display: flex !important; }
.flex-col { flex-direction: column !important; }
.items-center { align-items: center !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.hidden { display: none !important; }
.inline-flex { display: inline-flex !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 0.75rem !important; }
.gap-4 { gap: 1rem !important; }
.gap-6 { gap: 1.5rem !important; }
.gap-8 { gap: 2rem !important; }
.gap-12 { gap: 3rem !important; }
.grid { display: grid !important; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
.relative { position: relative; }
.absolute { position: absolute; }
.border { border: 1px solid hsl(var(--border)); }
.border-2 { border-width: 2px; }
.border-primary\/20 { border-color: hsl(var(--primary) / 0.2); }
.border-success\/30 { border-color: hsl(var(--success) / 0.3); }
.border-destructive\/20 { border-color: hsl(var(--destructive) / 0.2); }
.border-y { border-top-width: 1px; border-bottom-width: 1px; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.overflow-hidden { overflow: hidden; }
.w-full { width: 100% !important; }
.w-auto { width: auto !important; }
.w-1.5 { width: 0.375rem !important; }
.w-2 { width: 0.5rem !important; }
.w-3 { width: 0.75rem !important; }
.w-4 { width: 1rem !important; }
.w-5 { width: 1.25rem !important; }
.w-6 { width: 1.5rem !important; }
.w-7 { width: 1.75rem !important; }
.w-8 { width: 2rem !important; }
.w-10 { width: 2.5rem !important; }
.w-12 { width: 3rem !important; }
.w-14 { width: 3.5rem !important; }
.w-16 { width: 4rem !important; }
.w-20 { width: 5rem !important; }
.w-24 { width: 6rem !important; }
.w-32 { width: 8rem !important; }
.w-48 { width: 12rem !important; }
.w-80 { width: 20rem !important; }
.h-full { height: 100% !important; }
.h-1 { height: 0.25rem !important; }
.h-1.5 { height: 0.375rem !important; }
.h-2 { height: 0.5rem !important; }
.h-3 { height: 0.75rem !important; }
.h-4 { height: 1rem !important; }
.h-5 { height: 1.25rem !important; }
.h-6 { height: 1.5rem !important; }
.h-7 { height: 1.75rem !important; }
.h-8 { height: 2rem !important; }
.h-10 { height: 2.5rem !important; }
.h-12 { height: 3rem !important; }
.h-14 { height: 3.5rem !important; }
.h-16 { height: 4rem !important; }
.h-20 { height: 5rem !important; }
.h-24 { height: 6rem !important; }
.h-48 { height: 12rem !important; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }

/* Spacing */
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }

/* Typography */
.text-center { text-align: center; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }
.leading-tight { line-height: 1.25; }
.font-body { font-family: 'JetBrains Mono', monospace; }
.font-display { font-family: 'Comfortaa', cursive; }
.font-bold { font-weight: 700; }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-primary { color: hsl(var(--primary)); }
.text-success { color: hsl(var(--success)); }

/* Max-width utilities */
.max-w-md { max-width: 28rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-20 { margin-top: 5rem; }
.ml-2 { margin-left: 0.5rem; }
.mr-2 { margin-right: 0.5rem; }

/* Components Style */
.glass {
  background: hsl(var(--background) / 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid hsl(var(--border) / 0.5);
}

.rounded-full { border-radius: 9999px; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }

.bg-primary { background-color: hsl(var(--primary)); }
.bg-secondary { background-color: hsl(var(--secondary)); }
.bg-muted { background-color: hsl(var(--muted)); }

.bg-gradient-lab { background: var(--gradient-lab); }
.bg-gradient-chemical { background: var(--gradient-chemical); }
.bg-gradient-flask { background: var(--gradient-flask); }
.bg-gradient-orange { background: var(--gradient-orange); }

.bg-clip-text {
  -webkit-background-clip: text;
  background-clip: text;
}
.text-transparent {
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.shadow-glow { box-shadow: var(--shadow-glow); }
.shadow-float { box-shadow: var(--shadow-float); }
.shadow-card { box-shadow: var(--shadow-card); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }

.blur-3xl { filter: blur(64px); }
.opacity-20 { opacity: 0.2; }
.opacity-30 { opacity: 0.3; }
.opacity-60 { opacity: 0.6; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-chemical {
  background: var(--gradient-chemical);
  color: white;
  box-shadow: var(--shadow-glow);
}

.btn-chemical:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px hsl(330 100% 71% / 0.5);
}

.btn-xl {
  padding: 0.75rem 2rem;
  font-size: 1.125rem;
}

.btn-lg {
  padding: 0.625rem 1.5rem;
  font-size: 1rem;
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-10px) rotate(1deg); }
  50% { transform: translateY(-5px) rotate(0deg); }
  75% { transform: translateY(-15px) rotate(-1deg); }
}

@keyframes bubble {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.7; }
  50% { transform: translateY(-20px) scale(1.1); opacity: 1; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px hsl(330 100% 71% / 0.4); }
  50% { box-shadow: 0 0 40px hsl(330 100% 71% / 0.7); }
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

@keyframes scan-line {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-bubble {
  animation: bubble 3s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

.animate-ticker {
  display: inline-block;
  animation: ticker 20s linear infinite;
}

.animate-blink {
  animation: blink 1s step-end infinite;
}

.animate-pulse-dot {
  animation: pulse-dot 1.5s ease-in-out infinite;
}

/* Scroll Animations */
.observe-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.observe-fade.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Specific Components */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 9999px;
  padding: 0.5rem 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.logo-img {
  max-height: 2.5rem !important;
  width: auto !important;
  object-fit: contain !important;
}

@media (min-width: 768px) {
  .logo-img {
    height: 3rem !important;
  }
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  transition: all 0.2s;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.5);
}

.nav-link.active {
  background: var(--gradient-chemical);
  color: white !important;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: hsl(var(--success));
}

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-section .container {
  z-index: 10;
}

.ticker-bar {
  background: hsl(var(--primary));
  color: white;
  padding: 0.75rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-content {
  display: inline-block;
  padding-right: 2rem;
}

.feature-card {
  padding: 2rem;
  border-radius: 1.5rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: hsl(var(--primary) / 0.5);
  box-shadow: var(--shadow-card);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: hsl(var(--primary) / 0.1);
  margin-bottom: 1.5rem;
}

.floating-particle {
  position: absolute;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background-color: hsl(var(--primary) / 0.2);
  pointer-events: none;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: hsl(var(--background));
  z-index: 100;
  transition: right 0.3s ease;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}

.mobile-menu.active {
  right: 0;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 90;
  display: none;
  backdrop-filter: blur(4px);
}

.menu-overlay.active {
  display: block;
}

/* Rarity Colors */
.bg-common { background-color: hsl(var(--muted)); }
.text-common { color: hsl(var(--muted-foreground)); }
.bg-rare { background-color: #dbeafe; }
.text-rare { color: #2563eb; }
.bg-epic { background-color: #f3e8ff; }
.text-epic { color: #9333ea; }
.bg-legendary { background: var(--gradient-orange); }
.text-legendary { color: hsl(var(--accent-foreground)); }

/* NFT Card */
.nft-card {
  border-radius: 1.5rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nft-card:hover {
  transform: scale(1.02) rotate(1deg);
  box-shadow: var(--shadow-card);
}

.nft-image-container {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
}

.nft-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.nft-card:hover .nft-image {
  transform: scale(1.1);
}

/* Media Queries for Grid */
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex !important; }
  .md\:hidden { display: none !important; }
  .md\:h-20 { height: 5rem !important; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .md\:text-3xl { font-size: 1.875rem !important; }
  .md\:text-5xl { font-size: 3rem !important; }
}

@media (min-width: 1024px) {
  .lg\:flex { display: flex !important; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .lg\:text-left { text-align: left !important; }
  .lg\:text-6xl { font-size: 3.75rem !important; }
  .lg\:mx-0 { margin-left: 0 !important; margin-right: 0 !important; }
}
