/* Custom Styles for Glamour Peptides */

* {
  scroll-behavior: smooth;
}

:root {
  --primary: #2d1b3d;
  --primary-light: #3d2847;
  --secondary: #e18aaa;
  --secondary-dark: #d96b8f;
  --accent: #e4a0b7;
  --accent-light: #ecbdc4;
  --accent-lighter: #efcfd4;
  --accent-lightest: #f5dce0;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-light: #9ca3af;
  --bg-primary: #ffffff;
  --bg-secondary: #fdf2f8;
  --bg-tertiary: #fce7f3;
  --border: #fbcfe8;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse-subtle {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(225, 138, 170, 0.1);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(225, 138, 170, 0);
  }
}

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

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 5px rgba(225, 138, 170, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(225, 138, 170, 0.6);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-10deg) scale(0.9);
  }
  to {
    opacity: 1;
    transform: rotate(0) scale(1);
  }
}

.animate-fade-in-down {
  animation: fadeInDown 0.7s ease-out forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.7s ease-out forwards;
}

.animate-slide-in-left {
  animation: slideInLeft 0.7s ease-out forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.7s ease-out forwards;
}

.animate-scale-in {
  animation: scaleIn 0.5s ease-out forwards;
}

.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

.animate-slide-up {
  animation: slideUp 0.6s ease-out forwards;
}

.animate-rotate-in {
  animation: rotateIn 0.6s ease-out forwards;
}

/* Scroll Animations - Optimized for Performance */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

.scroll-animate.in-view {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

.scroll-animate-left {
  opacity: 0;
  transform: translateX(-50px);
  transition:
    opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

.scroll-animate-left.in-view {
  opacity: 1;
  transform: translateX(0);
  will-change: auto;
}

.scroll-animate-right {
  opacity: 0;
  transform: translateX(50px);
  transition:
    opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

.scroll-animate-right.in-view {
  opacity: 1;
  transform: translateX(0);
  will-change: auto;
}

.scroll-animate-scale {
  opacity: 0;
  transform: scale(0.9);
  transition:
    opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

.scroll-animate-scale.in-view {
  opacity: 1;
  transform: scale(1);
  will-change: auto;
}

/* Stagger effect for multiple elements */
.scroll-animate-stagger {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

.scroll-animate-stagger.in-view {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

.scroll-animate-stagger:nth-child(1) {
  transition-delay: 0s;
}
.scroll-animate-stagger:nth-child(2) {
  transition-delay: 0.08s;
}
.scroll-animate-stagger:nth-child(3) {
  transition-delay: 0.16s;
}
.scroll-animate-stagger:nth-child(4) {
  transition-delay: 0.24s;
}
.scroll-animate-stagger:nth-child(5) {
  transition-delay: 0.32s;
}
.scroll-animate-stagger:nth-child(6) {
  transition-delay: 0.4s;
}

/* Body */
body {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  color: var(--text-primary);
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
    Arial, sans-serif;
}

/* Navigation */
.navbar {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-link {
  position: relative;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--secondary), var(--secondary-dark));
  transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-link:hover {
  color: var(--secondary);
}

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

/* Buttons */
.btn-primary {
  background: linear-gradient(
    135deg,
    var(--secondary) 0%,
    var(--secondary-dark) 100%
  );
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  transition: left 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(225, 138, 170, 0.4);
}

.btn-primary:active {
  transform: translateY(-1px);
}

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

.btn-secondary {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
  padding: 0.65rem 1.4rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--secondary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(225, 138, 170, 0.2);
}

.btn-secondary:active {
  transform: translateY(-1px);
}

/* Cards */
.card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: fadeInUp 0.6s ease-out;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
  border-color: var(--secondary);
}

/* Input Fields */
.input-field {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  padding-left: 1.942rem;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: var(--bg-primary);
  color: var(--text-primary);
}

.input-field:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(225, 138, 170, 0.15);
}

/* Section Title */
.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  animation: slideUp 0.6s ease-out;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--secondary);
  border-radius: 2px;
  animation: slideInLeft 0.6s ease-out 0.2s both;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: scaleIn 0.4s ease-out;
}

.badge-pending {
  background: #fef3c7;
  color: #92400e;
}

.badge-approved {
  background: #d1fae5;
  color: #065f46;
}

.badge-rejected {
  background: #fee2e2;
  color: #7f1d1d;
}

.badge-verified {
  background: #d1fae5;
  color: #065f46;
}

/* Star Rating */
.star-rating {
  display: flex;
  gap: 4px;
}

.star {
  color: #fbbf24;
  font-size: 1.25rem;
}

/* Gradient Text */
.gradient-text {
  color: var(--secondary);
  font-weight: 700;
}

/* Table */
.table-row {
  border-bottom: 1px solid var(--border);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.table-row:hover {
  background-color: var(--bg-secondary);
}

/* Footer */
.footer {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 100%
  );
  color: white;
}

.footer a {
  color: #cbd5e1;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footer a:hover {
  color: var(--secondary);
  transform: translateX(4px);
}

/* Alert Messages */
.alert {
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
  animation: slideInRight 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition: all 0.3s ease;
}

.alert:hover {
  transform: translateX(4px);
}

.alert-success {
  background: #d1fae5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.alert-error {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #7f1d1d;
}

/* Divider */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* Premium Badge */
.premium-badge {
  background: var(--secondary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-block;
}

/* Sidebar */
.sidebar {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
}

.sidebar-header {
  background: linear-gradient(
    135deg,
    var(--secondary) 0%,
    var(--secondary-dark) 100%
  );
  color: white;
  padding: 1.5rem;
  border-radius: 0.75rem 0.75rem 0 0;
}

.sidebar-item {
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-left: 3px solid transparent;
  cursor: pointer;
}

.sidebar-item:hover {
  background: var(--bg-secondary);
  color: var(--secondary);
  border-left-color: var(--secondary);
  transform: translateX(4px);
}

/* Hero Section */
.hero {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 100%
  );
  color: white;
  border-radius: 1rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(225, 138, 170, 0.1);
  border-radius: 50%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 3rem 2rem;
}

/* Stats */
.stat-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: fadeInUp 0.6s ease-out;
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  border-color: var(--secondary);
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Feature List */
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  animation: slideInLeft 0.6s ease-out;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature-item:hover {
  transform: translateX(8px);
}

/* Scroll animation for feature items */
.feature-item.scroll-animate-stagger {
  animation: none;
}

.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--secondary);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  font-size: 1.25rem;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: rotateIn 0.6s ease-out;
}

.feature-item:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 20px rgba(225, 138, 170, 0.3);
}

.feature-text h4 {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.feature-text p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Mobile Responsive Adjustments */
@media (max-width: 640px) {
  .hero-content {
    padding: 1rem;
  }

  .hero::before {
    width: 300px;
    height: 300px;
    top: -30%;
    right: -5%;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-title::after {
    width: 60px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 0.6rem 1.2rem;
    font-size: 0.875rem;
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .feature-item {
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .feature-icon {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
  }

  .feature-text h4 {
    font-size: 0.95rem;
  }

  .feature-text p {
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .hero-content {
    padding: 1rem 1.5rem;
  }

  .section-title {
    font-size: 1.875rem;
  }

  .stat-card {
    padding: 1.25rem;
  }

  .stat-number {
    font-size: 2rem;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .hero-content {
    padding: 2.5rem 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .stat-card {
    padding: 1.5rem;
  }

  .stat-number {
    font-size: 2.125rem;
  }
}

@media (min-width: 1025px) {
  .hero-content {
    padding: 2rem;
  }
}
