/* GyftVoucher Full CSS Stylesheet - Modern FinTech Theme */

:root {
  /* Brand Colors */
  --color-primary: #3525cd;
  --color-primary-dark: #4f46e5;
  --color-accent: #6cf8bb;
  --color-accent-dark: #4edea3;
  
  /* UI Colors */
  --color-bg: #f9f9f9;
  --color-surface: #ffffff;
  --color-surface-low: #f3f3f4;
  --color-text-main: #1a1c1c;
  --color-text-muted: #777587;
  --color-border: rgba(199, 196, 216, 0.15); /* Ghost border */
  --color-danger: #ba1a1a;

  /* Typography */
  --font-family: 'Plus Jakarta Sans', sans-serif;
  
  /* Utilities */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 15px -3px rgba(53, 37, 205, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ---------------
   Layout Utilities
   --------------- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.w-full { width: 100%; }
.text-center { text-align: center; }

/* ---------------
   Header / Navbar
   --------------- */
.glass-navbar {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 10px 20px -5px rgba(53, 37, 205, 0.05);
}

.nav-container {
  padding: 1rem 0;
}

.brand-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.05em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
}

/* ---------------
   Buttons
   --------------- */
.btn-primary {
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  transform: scale(1.02);
}

/* ---------------
   Hero Section (Home)
   --------------- */
.hero-section {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  max-width: 500px;
}

.stats-card {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px);
  border: var(--color-border);
  padding: 2rem;
  border-radius: 2rem;
  box-shadow: var(--shadow-md);
}

/* ---------------
   Grid Cards (Marketplace)
   --------------- */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.brand-card {
  background: var(--color-surface);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--color-border);
}

.brand-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

.brand-image {
  height: 160px;
  background: var(--color-surface-low);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.brand-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  mix-blend-mode: multiply;
}

/* ---------------
   Login Page
   --------------- */
.login-wrapper {
  display: flex;
  min-height: 100vh;
}

.login-blue-half {
  flex: 1;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.login-form-half {
  flex: 1;
  background: var(--color-surface);
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.form-container {
  width: 100%;
  max-width: 400px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 1rem;
  background: var(--color-surface-low);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: var(--color-text-main);
  transition: var(--transition);
}

.form-input:focus {
  outline: 2px solid var(--color-primary);
  background: var(--color-surface);
}

/* ---------------
   SDK Frame Setup 
   --------------- */
.main-content {
  padding: 2.5rem 0;
  min-height: calc(100vh - 160px);
}

#sdk-wrapper {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(53, 37, 205, 0.15);
  height: 85vh;
  min-height: 800px;
  width: 100%;
  position: relative;
  overflow: hidden;
  border: none;
}

#hubble-sdk-iframe { width: 100%; height: 100%; border: none; display: none; }
.state-container { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }
.loader { border: 4px solid var(--color-bg); border-top: 4px solid var(--color-primary); border-radius: 50%; width: 40px; height: 40px; animation: spin 1s linear infinite; margin: 0 auto 1rem auto; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* ---------------
   Footer
   --------------- */
.site-footer {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 3rem 0;
  margin-top: auto;
}

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

.footer-links a {
  margin-left: 1.5rem;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--color-accent-dark);
}

/* ---------------
   Animations & Dynamic Effects
   --------------- */
.float-animation-slow {
  animation: floatSlow 6s ease-in-out infinite;
}

.float-animation-fast {
  animation: floatFast 4s ease-in-out infinite;
}

@keyframes floatSlow {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

@keyframes floatFast {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

.gradient-text {
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent-dark), var(--color-primary));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  animation: shimmerSync 3s linear infinite;
}

@keyframes shimmerSync {
  to { background-position: 200% center; }
}

.glow-button {
  box-shadow: 0 0 20px rgba(53, 37, 205, 0.3);
  animation: pulseGlow 2s infinite;
  position: relative;
  overflow: hidden;
}

.glow-button::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(45deg);
  transition: all 0.3s ease;
  opacity: 0;
}

.glow-button:hover::after {
  left: 100%;
  opacity: 1;
  transition: all 0.6s ease;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 20px rgba(53, 37, 205, 0.3); }
  50% { box-shadow: 0 0 40px rgba(53, 37, 205, 0.6); }
  100% { box-shadow: 0 0 20px rgba(53, 37, 205, 0.3); }
}

/* ---------------
   Marquee Animation
   --------------- */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  padding: 2rem 0;
  position: relative;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.marquee-content {
  display: inline-block;
  animation: marqueeScroller 20s linear infinite;
  gap: 3rem;
}

.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

@keyframes marqueeScroller {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text-muted);
  opacity: 0.5;
  transition: var(--transition);
}

.marquee-item:hover {
  opacity: 1;
  color: var(--color-primary);
  transform: scale(1.1);
}
