/* ============================================
   MYGIFTWORLDONLINE - PURE HTML/CSS/JS
   Modern Gifting Coupon Platform
   ============================================ */

:root {
  /* Primary Colors - Warm, Elegant, Joyful Palette */
  --color-primary: #E85D75;
  --color-primary-light: #FFE5EC;
  --color-primary-dark: #C41E3A;
  --color-secondary: #FFB84D;
  --color-secondary-light: #FFF4E6;
  --color-secondary-dark: #FF9800;
  
  /* Pastel Accent Colors */
  --color-pastel-pink: #F8BBD0;
  --color-pastel-blue: #B3E5FC;
  --color-pastel-purple: #E1BEE7;
  --color-pastel-gold: #FFE082;
  --color-pastel-green: #C8E6C9;
  
  /* Neutral Colors */
  --color-white: #FFFFFF;
  --color-off-white: #FAFBFC;
  --color-light-gray: #F8F9FA;
  --color-gray: #E9ECEF;
  --color-dark-gray: #6C757D;
  --color-text-dark: #2C3E50;
  --color-text-light: #7F8C8D;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--color-white);
  color: var(--color-text-dark);
  line-height: 1.7;
  font-size: 16px;
  letter-spacing: 0.3px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 1.5rem;
}

h1 { font-size: 3.5rem; font-weight: 800; }
h2 { font-size: 2.75rem; font-weight: 700; }
h3 { font-size: 2rem; font-weight: 700; }
h4 { font-size: 1.5rem; font-weight: 600; }
h5 { font-size: 1.25rem; font-weight: 600; }
h6 { font-size: 1rem; font-weight: 600; }

p {
  margin-bottom: 1.25rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--color-primary-dark);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 12px rgba(232, 93, 117, 0.1);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary) !important;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-brand i {
  font-size: 1.75rem;
}

.nav-link {
  color: var(--color-text-dark) !important;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--color-primary) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transition: width 0.3s ease;
  border-radius: 2px;
}

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

.dropdown-menu {
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: 12px;
  padding: 0.5rem 0;
  background: white;
  animation: slideDown 0.3s ease-in-out;
}

.dropdown-item {
  color: var(--color-text-dark);
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 0.75rem 1.5rem;
}

.dropdown-item:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
  padding-left: 1.75rem;
}

.btn-login {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-login:hover {
  background: var(--color-primary);
  color: white;
}

.btn-subscribe {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.btn-subscribe:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232, 93, 117, 0.3);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.btn-primary {
  background: white;
  color: var(--color-primary);
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: transparent;
  color: white;
  padding: 0.75rem 2rem;
  border: 2px solid white;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover {
  background: white;
  color: var(--color-primary);
}

/* ============================================
   COUPON CARDS
   ============================================ */
.coupon-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.coupon-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.coupon-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--color-pastel-pink) 0%, var(--color-pastel-blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  overflow: hidden;
}

.coupon-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.coupon-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.coupon-brand {
  font-size: 0.85rem;
  color: var(--color-text-light);
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.coupon-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 0.5rem;
}

.coupon-description {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
  flex-grow: 1;
}

.coupon-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.discount-badge {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
}

.btn-grab {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.btn-grab:hover {
  background: var(--color-primary-dark);
  transform: scale(1.05);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

footer h5 {
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
}

footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

footer a:hover {
  color: var(--color-secondary);
}

footer ul {
  list-style: none;
  padding: 0;
}

footer li {
  margin-bottom: 0.75rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--color-secondary);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  margin-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(20px);
  }
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 999;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.back-to-top:hover {
  background: var(--color-primary-dark);
  transform: translateY(-5px);
}

.back-to-top.show {
  display: flex;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
  
  .hero {
    padding: 2rem 1rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
  }
  
  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 1rem;
    right: 1rem;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .coupon-card {
    margin-bottom: 1rem;
  }
}
