/* Frontend Theme - STRICT 2-COLOR SYSTEM: Blue + Green + White ONLY - RESPONSIVE */
/* Applied ONLY to public website, NOT admin panel */

/* Brand Variables - STRICT 2-COLOR */
:root {
  --brand-blue: #0B2578;
  --brand-green: #1A9464;
  --brand-white: #FFFFFF;
  
  /* Responsive Typography */
  --text-xs-mobile: clamp(0.75rem, 2vw, 0.875rem);
  --text-sm-mobile: clamp(0.875rem, 2.5vw, 1rem);
  --text-base-mobile: clamp(1rem, 3vw, 1.125rem);
  --text-lg-mobile: clamp(1.125rem, 3.5vw, 1.25rem);
  --text-xl-mobile: clamp(1.25rem, 4vw, 1.5rem);
  --text-2xl-mobile: clamp(1.5rem, 5vw, 2rem);
  --text-3xl-mobile: clamp(2rem, 6vw, 3rem);
  --text-4xl-mobile: clamp(3rem, 7vw, 4rem);
  
  /* Responsive Spacing */
  --spacing-xs-mobile: clamp(0.25rem, 1vw, 0.5rem);
  --spacing-sm-mobile: clamp(0.5rem, 1.5vw, 1rem);
  --spacing-md-mobile: clamp(1rem, 2vw, 1.5rem);
  --spacing-lg-mobile: clamp(1.5rem, 3vw, 2rem);
  --spacing-xl-mobile: clamp(2rem, 4vw, 3rem);
  --spacing-2xl-mobile: clamp(3rem, 5vw, 4rem);
}

/* ==========================================================================
   FRONTEND SPECIFIC STYLES
   ========================================================================== */

/* Scope all styles to frontend body */
body.frontend {
  /* Base styles - ONLY WHITE BACKGROUND */
  background-color: #FFFFFF;
  color: #0B2578;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

/* Premium Hero Section - WHITE ONLY - Responsive */
body.frontend .hero-section-premium {
  padding: clamp(4rem, 10vw, 100px) 0;
  background: #FFFFFF;
  position: relative;
  overflow: hidden;
  min-height: 60vh;
}

body.frontend .hero-grid-premium {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 60px);
  align-items: center;
  min-height: 50vh;
}

@media (min-width: 768px) {
  body.frontend .hero-grid-premium {
    grid-template-columns: 1.1fr 1fr;
    min-height: 600px;
  }
}

/* Premium Headline - Half Blue Half Green - Responsive */
body.frontend .hero-headline-premium {
  font-size: clamp(2rem, 6vw, 56px);
  font-weight: 800;
  line-height: 1;
  margin-bottom: clamp(1rem, 3vw, 24px);
  display: inline-block;
}

body.frontend .hero-headline-premium .blue-half {
  color: #0B2578;
}

body.frontend .hero-headline-premium .green-half {
  color: #1A9464;
}

body.frontend .hero-headline-premium {
  color: #0B2578;
}

/* Premium Subtext - Responsive */
body.frontend .hero-subtext-premium {
  font-size: clamp(1rem, 3vw, 18px);
  color: #64748B;
  line-height: 1;
  max-width: 100%;
  margin-bottom: clamp(2rem, 5vw, 40px);
  font-weight: 400;
}

@media (min-width: 768px) {
  body.frontend .hero-subtext-premium {
    max-width: 520px;
  }
}

/* Premium Feature Badges */
body.frontend .hero-features-premium {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
}

body.frontend .feature-badge-premium {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

body.frontend .feature-badge-premium:hover {
  background: rgba(22, 163, 74, 0.04);
  border-color: rgba(22, 163, 74, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body.frontend .feature-icon-premium {
  width: 40px;
  height: 40px;
  background: var(--brand-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  flex-shrink: 0;
}

body.frontend .feature-text-premium {
  flex: 1;
}

body.frontend .feature-title-premium {
  font-weight: 600;
  font-size: 16px;
  color: var(--brand-blue);
  margin-bottom: 2px;
  line-height: 1;
}

body.frontend .feature-subtitle-premium {
  font-size: 14px;
  color: #64748B;
  font-weight: 400;
  line-height: 1;
}

/* Premium CTA Buttons - Responsive */
body.frontend .hero-cta-premium {
  display: flex;
  gap: clamp(0.75rem, 2vw, 16px);
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  body.frontend .hero-cta-premium {
    flex-direction: column;
    align-items: stretch;
  }
  
  body.frontend .hero-cta-premium .btn-cta-primary,
  body.frontend .hero-cta-premium .btn-cta-secondary {
    width: 100%;
    justify-content: center;
  }
}

body.frontend .btn-cta-primary {
  background: #0B2578;
  color: white;
  border-radius: 14px;
  padding: clamp(0.875rem, 2.5vw, 14px) clamp(1.5rem, 4vw, 28px);
  border: none;
  font-weight: 600;
  font-size: clamp(0.875rem, 2.5vw, 16px);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px; /* Touch target minimum */
  line-height: 1;
}

body.frontend .btn-cta-primary:hover {
  background: #0B2578;
  color: white;
  text-decoration: none;
}

body.frontend .btn-cta-secondary {
  color: #0B2578;
  border: 1px solid #0B2578;
  background: white;
  border-radius: 14px;
  padding: clamp(0.875rem, 2.5vw, 14px) clamp(1.5rem, 4vw, 28px);
  font-weight: 600;
  font-size: clamp(0.875rem, 2.5vw, 16px);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px; /* Touch target minimum */
  line-height: 1;
}

body.frontend .btn-cta-secondary:hover {
  color: #0B2578;
  border-color: #0B2578;
  text-decoration: none;
}

/* Premium Visual Container - Responsive */
body.frontend .hero-visual-premium {
  position: relative;
  height: clamp(250px, 40vw, 500px);
  display: flex;
  align-items: center;
  justify-content: center;
}

body.frontend .chart-container-premium {
  background: white;
  border-radius: 20px;
  padding: clamp(1rem, 3vw, 20px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
  border-top: 3px solid transparent;
  background-image: linear-gradient(white, white), var(--brand-blue);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  max-width: 100%;
}

body.frontend .chart-container-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-blue);
}

body.frontend .chart-image-premium {
  width: 100%;
  height: auto;
  border-radius: 14px;
  overflow: hidden;
  display: block;
}

/* Floating Performance Labels - Responsive */
body.frontend .floating-label {
  position: absolute;
  background: white;
  padding: clamp(0.75rem, 2vw, 12px) clamp(1rem, 2.5vw, 16px);
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  font-weight: 600;
  font-size: clamp(0.75rem, 2vw, 14px);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
  z-index: 10;
}

@media (max-width: 768px) {
  body.frontend .floating-label {
    position: static;
    margin-bottom: 1rem;
    transform: none;
  }
  
  body.frontend .floating-label-1,
  body.frontend .floating-label-2,
  body.frontend .floating-label-3 {
    position: static;
    margin: 0.5rem 0;
  }
}

body.frontend .floating-label:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

body.frontend .floating-value {
  font-size: clamp(1rem, 3vw, 18px);
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 2px;
}

body.frontend .floating-label-text {
  font-size: clamp(0.625rem, 2vw, 12px);
  color: #64748B;
  font-weight: 500;
}

body.frontend .floating-label-1 {
  top: 20px;
  right: -20px;
}

body.frontend .floating-label-2 {
  top: 50%;
  right: -40px;
  transform: translateY(-50%);
}

body.frontend .floating-label-3 {
  bottom: 20px;
  right: -30px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  body.frontend .hero-section-premium {
    padding: 60px 0;
  }
  
  body.frontend .hero-grid-premium {
    grid-template-columns: 1fr;
    gap: 40px;
    min-height: auto;
  }
  
  body.frontend .hero-headline-premium {
    font-size: 36px;
  }
  
  body.frontend .hero-subtext-premium {
    font-size: 16px;
    max-width: 100%;
  }
  
  body.frontend .hero-features-premium {
    margin-bottom: 32px;
  }
  
  body.frontend .hero-cta-premium {
    flex-direction: column;
    align-items: stretch;
  }
  
  body.frontend .btn-cta-primary,
  body.frontend .btn-cta-secondary {
    text-align: center;
    justify-content: center;
  }
  
  body.frontend .hero-visual-premium {
    height: 300px;
  }
  
  body.frontend .floating-label {
    position: static;
    margin-bottom: 16px;
    transform: none;
  }
  
  body.frontend .floating-label-1,
  body.frontend .floating-label-2,
  body.frontend .floating-label-3 {
    position: static;
    margin: 8px 0;
  }
}

/* Animated Gradient Text */
body.frontend .hero-gradient-text-animated {
  color: #0B2578;
  font-weight: 800;
  line-height: 1;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Premium CTA Buttons */
body.frontend .hero-cta-group-premium {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

body.frontend .btn-cta-primary-premium {
  background: #0B2578;
  color: white;
  border-radius: 12px;
  padding: 14px 28px;
  border: none;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.2);
  line-height: 1;
}

body.frontend .btn-cta-primary-premium:hover {
  background: #0B2578;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
  color: white;
  text-decoration: none;
}

body.frontend .btn-cta-secondary-premium {
  color: var(--brand-blue);
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #007BFF, #00C853) border-box;
  border-radius: 12px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
  line-height: 1;
}

body.frontend .btn-cta-secondary-premium:hover {
  background: #0B2578;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
  text-decoration: none;
}

/* Premium Feature Cards Section - Responsive */
body.frontend .feature-cards-section {
  padding: clamp(3rem, 8vw, 80px) 0;
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.02) 0%, rgba(0, 200, 83, 0.02) 100%);
}

body.frontend .feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: clamp(1rem, 3vw, 24px);
  max-width: 100%;
  margin: 0 auto;
}

@media (min-width: 768px) {
  body.frontend .feature-cards-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
  }
}

body.frontend .feature-card-premium {
  background: white;
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(108, 92, 231, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

body.frontend .feature-card-premium:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(108, 92, 231, 0.15);
}

body.frontend .feature-icon-container {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #6C5CE7, #E84393);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: white;
  font-size: 20px;
}

body.frontend .feature-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 8px;
  line-height: 1;
}

body.frontend .feature-description {
  font-size: 14px;
  color: #64748B;
  line-height: 1;
  margin: 0;
}

/* Premium Glow Effect */
body.frontend .hero-section {
  position: relative;
  overflow: hidden;
}

body.frontend .hero-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  body.frontend .hero-cta-group-premium {
    flex-direction: column;
    align-items: stretch;
  }
  
  body.frontend .btn-cta-primary-premium,
  body.frontend .btn-cta-secondary-premium {
    text-align: center;
    justify-content: center;
  }
  
  body.frontend .feature-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  body.frontend .feature-cards-section {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  body.frontend .feature-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* Hero Gradient Text - Match Site Theme */
body.frontend .hero-gradient-text {
  color: #0B2578;
  font-weight: 800;
  line-height: 1;
  background: none;
  background-image: none;
  -webkit-text-fill-color: #0B2578;
}

/* Frontend Cards */
body.frontend .front-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(108, 92, 231, 0.1);
}

body.frontend .front-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(108, 92, 231, 0.15);
}

/* Brand Buttons - Match Site Theme */
body.frontend .btn-brand {
  background: #16A34A;
  color: white;
  border-radius: 12px;
  padding: 0.75rem 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  min-width: 160px;
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1;
}

body.frontend .btn-brand:hover {
  background: #15803D;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(22, 163, 74, 0.3);
}

body.frontend .btn-primary {
  background: var(--brand-blue);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 10px 20px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  line-height: 1;
}

body.frontend .btn-primary:hover {
  background: #3d5ec9;
  transform: translateY(-2px);
  color: white;
  text-decoration: none;
}

body.frontend .btn-outline {
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  border-radius: 12px;
  padding: 10px 20px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  line-height: 1;
}

body.frontend .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  color: white;
  text-decoration: none;
}

/* Package Cards Specific */
body.frontend .package-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

body.frontend .package-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--brand-blue);
}

body.frontend .package-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(80, 118, 238, 0.2);
  border-color: var(--brand-blue);
}

body.frontend .package-price {
  color: var(--brand-blue);
  font-size: 2.5rem;
  font-weight: 800;
  margin: 16px 0;
}

body.frontend .package-cta {
  background: var(--brand-blue);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 20px;
}

body.frontend .package-cta:hover {
  background: #3d5ec9;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(80, 118, 238, 0.4);
}

/* Section Headers - Half Blue Half Green */
body.frontend .section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  display: inline-block;
  line-height: 1;
}

body.frontend .section-title .blue-half {
  color: #0B2578;
}

body.frontend .section-title .green-half {
  color: #1A9464;
}

body.frontend .section-subtitle {
  font-size: 1.125rem;
  color: #0B2578;
  margin-bottom: 3rem;
  line-height: 1;
}

/* Feature Cards */
body.frontend .feature-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid rgba(0, 123, 255, 0.1);
}

body.frontend .feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 123, 255, 0.15);
  border-color: var(--brand-blue);
}

body.frontend .feature-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 24px;
}

/* Signals Page */
body.frontend .signal-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  border-left: 4px solid var(--brand-blue);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

body.frontend .signal-card:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 30px rgba(0, 123, 255, 0.15);
}

body.frontend .signal-badge {
  background: var(--gradient-primary);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

/* Auto Trade Page */
body.frontend .auto-trade-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

body.frontend .auto-trade-card:hover {
  border-color: var(--brand-blue);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 123, 255, 0.2);
}

body.frontend .status-active {
  color: var(--brand-blue);
  font-weight: 600;
}

body.frontend .status-inactive {
  color: var(--text-muted, #64748B);
}

/* Contact Form */
body.frontend .contact-form {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

body.frontend .form-group {
  margin-bottom: 24px;
}

body.frontend .form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color, #E2E8F0);
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  line-height: 1;
}

body.frontend .form-control:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  body.frontend .section-title {
    font-size: 2rem;
  }
  
  body.frontend .package-price {
    font-size: 2rem;
  }
  
  body.frontend .front-card,
  body.frontend .package-card,
  body.frontend .contact-form {
    padding: 20px;
  }
}
