/* ================================================
   SocialGrowth Theme - Ultra Modern CSS
   ================================================ */

:root {
  --sg-primary: #6C5CE7;
  --sg-primary-dark: #5A4BD1;
  --sg-primary-light: #A29BFE;
  --sg-secondary: #00CEC9;
  --sg-accent: #FD79A8;
  --sg-dark: #0D1117;
  --sg-dark-soft: #161B22;
  --sg-text: #1A1A2E;
  --sg-text-light: #6B7280;
  --sg-bg: #F8FAFC;
  --sg-bg-card: #FFFFFF;
  --sg-border: #E5E7EB;
  --sg-gradient: linear-gradient(135deg, #6C5CE7 0%, #A29BFE 50%, #00CEC9 100%);
  --sg-gradient-hero: linear-gradient(135deg, #0D1117 0%, #1A1A2E 50%, #2D1B69 100%);
  --sg-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --sg-shadow: 0 4px 24px rgba(0,0,0,0.08);
  --sg-shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --sg-shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --sg-radius: 16px;
  --sg-radius-sm: 10px;
  --sg-radius-full: 50px;
  --sg-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ Base ============ */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  background-color: var(--sg-bg);
  color: var(--sg-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============ Header ============ */
.sg-header {
  padding: 0;
  border: none;
  background: transparent;
  transition: var(--sg-transition);
  z-index: 1050;
}

.sg-header.shrink {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.08);
}

.sg-header .navbar {
  padding: 12px 0;
}

.sg-header .navbar-brand img {
  height: 38px;
  transition: var(--sg-transition);
}

.sg-header .navbar .navbar-nav .nav-link {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 14px;
  padding: 8px 0;
  margin: 0 14px;
  position: relative;
  transition: var(--sg-transition);
}

.sg-header .navbar .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--sg-secondary);
  border-radius: 2px;
  transition: var(--sg-transition);
}

.sg-header .navbar .navbar-nav .nav-link:hover::after,
.sg-header .navbar .navbar-nav .active .nav-link::after {
  width: 100%;
}

.sg-header .navbar .navbar-nav .nav-link:hover,
.sg-header .navbar .navbar-nav .active .nav-link {
  color: #fff;
}

.sg-header.shrink .navbar .navbar-nav .nav-link {
  color: var(--sg-text);
}

.sg-header.shrink .navbar .navbar-nav .nav-link:hover,
.sg-header.shrink .navbar .navbar-nav .active .nav-link {
  color: var(--sg-primary);
}

.sg-header.shrink .navbar .navbar-nav .nav-link::after {
  background: var(--sg-primary);
}

.sg-header .navbar-toggler {
  font-size: 24px;
  color: #fff;
  border: none;
  padding: 4px 8px;
}

.sg-header.shrink .navbar-toggler {
  color: var(--sg-text);
}

.sg-header .btn-login {
  color: rgba(255,255,255,0.9) !important;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 16px;
  transition: var(--sg-transition);
}

.sg-header.shrink .btn-login {
  color: var(--sg-text) !important;
}

.sg-header .btn-login:hover {
  color: #fff !important;
}

/* ============ Buttons ============ */
.btn-sg-primary {
  background: var(--sg-gradient);
  color: #fff !important;
  border: none;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 28px;
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.35);
  transition: var(--sg-transition);
}

.btn-sg-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(108, 92, 231, 0.45);
  color: #fff !important;
}

.btn-sg-outline {
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,0.3);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 28px;
  transition: var(--sg-transition);
}

.btn-sg-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  color: #fff !important;
  transform: translateY(-2px);
}

.btn-sg-white {
  background: #fff;
  color: var(--sg-primary) !important;
  border: none;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 32px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: var(--sg-transition);
}

.btn-sg-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.btn-pill {
  border-radius: var(--sg-radius-full) !important;
}

/* ============ Hero Section ============ */
.sg-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 120px 0 80px;
  background: var(--sg-gradient-hero);
  display: flex;
  align-items: center;
}

.sg-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.sg-gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
}

.sg-orb-1 {
  width: 600px;
  height: 600px;
  background: var(--sg-primary);
  top: -200px;
  right: -100px;
  animation: sgFloat 8s ease-in-out infinite;
}

.sg-orb-2 {
  width: 400px;
  height: 400px;
  background: var(--sg-secondary);
  bottom: -100px;
  left: -100px;
  animation: sgFloat 10s ease-in-out infinite reverse;
}

.sg-orb-3 {
  width: 300px;
  height: 300px;
  background: var(--sg-accent);
  top: 50%;
  left: 40%;
  animation: sgFloat 12s ease-in-out infinite;
}

@keyframes sgFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.min-vh-80 {
  min-height: 80vh;
}

.sg-badge-pill {
  display: inline-block;
  background: rgba(108, 92, 231, 0.15);
  color: var(--sg-primary-light);
  padding: 6px 18px;
  border-radius: var(--sg-radius-full);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(108, 92, 231, 0.25);
}

.sg-hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.sg-text-gradient {
  background: linear-gradient(135deg, var(--sg-secondary), var(--sg-primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sg-hero-desc {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  margin-bottom: 30px;
  max-width: 520px;
}

.sg-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.sg-hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
}

.sg-stat-item strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.sg-stat-item span {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

.sg-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
}

/* Hero Visual */
.sg-hero-visual {
  position: relative;
  padding: 40px;
}

.sg-dashboard-preview {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border-radius: var(--sg-radius);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--sg-shadow-xl);
}

.sg-preview-header {
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sg-preview-dots span {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}

.sg-preview-dots span:nth-child(1) { background: #FF6B6B; }
.sg-preview-dots span:nth-child(2) { background: #FFD93D; }
.sg-preview-dots span:nth-child(3) { background: #6BCB77; }

.sg-preview-body {
  padding: 30px 20px;
}

.sg-preview-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 200px;
  gap: 12px;
}

.sg-bar {
  flex: 1;
  border-radius: 8px 8px 0 0;
  background: var(--sg-gradient);
  opacity: 0.6;
  animation: sgGrow 2s ease-out forwards;
  transform-origin: bottom;
}

@keyframes sgGrow {
  from { transform: scaleY(0); opacity: 0; }
  to { transform: scaleY(1); opacity: 0.6; }
}

.sg-bar:nth-child(even) {
  background: linear-gradient(180deg, var(--sg-secondary) 0%, rgba(0,206,201,0.3) 100%);
}

.sg-float-card {
  position: absolute;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  z-index: 2;
  animation: sgBounce 3s ease-in-out infinite;
  white-space: nowrap;
}

.sg-float-card i {
  font-size: 18px;
}

.sg-float-1 { top: 20px; right: 20px; animation-delay: 0s; }
.sg-float-1 i { color: #E1306C; }
.sg-float-2 { bottom: 80px; left: 0; animation-delay: 1s; }
.sg-float-2 i { color: #FF0000; }
.sg-float-3 { top: 40%; left: -20px; animation-delay: 2s; }
.sg-float-3 i { color: var(--sg-accent); }

@keyframes sgBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ============ Section Styling ============ */
.sg-section-badge {
  display: inline-block;
  background: rgba(108, 92, 231, 0.1);
  color: var(--sg-primary);
  padding: 6px 18px;
  border-radius: var(--sg-radius-full);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.sg-section-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--sg-text);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.sg-section-desc {
  font-size: 16px;
  color: var(--sg-text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ============ Features ============ */
.sg-features {
  padding: 100px 0;
  background: var(--sg-bg);
}

.sg-feature-card {
  background: var(--sg-bg-card);
  border-radius: var(--sg-radius);
  padding: 32px;
  border: 1px solid var(--sg-border);
  transition: var(--sg-transition);
  height: 100%;
}

.sg-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sg-shadow-lg);
  border-color: var(--sg-primary-light);
}

.sg-feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(108, 92, 231, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--sg-transition);
}

.sg-feature-icon i {
  font-size: 24px;
  color: var(--sg-primary);
}

.sg-feature-card:hover .sg-feature-icon {
  background: var(--sg-primary);
}

.sg-feature-card:hover .sg-feature-icon i {
  color: #fff;
}

.sg-feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--sg-text);
}

.sg-feature-card p {
  font-size: 14px;
  color: var(--sg-text-light);
  line-height: 1.6;
  margin: 0;
}

/* ============ How It Works ============ */
.sg-how-it-works {
  padding: 100px 0;
  background: #fff;
}

.sg-step-card {
  background: var(--sg-bg);
  border-radius: var(--sg-radius);
  padding: 32px;
  text-align: center;
  border: 1px solid var(--sg-border);
  transition: var(--sg-transition);
  height: 100%;
}

.sg-step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sg-shadow);
}

.sg-step-number {
  font-size: 42px;
  font-weight: 900;
  background: var(--sg-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.sg-step-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.sg-step-card p {
  font-size: 14px;
  color: var(--sg-text-light);
  line-height: 1.6;
  margin: 0;
}

/* ============ Reviews ============ */
.sg-reviews {
  padding: 100px 0;
  background: var(--sg-bg);
}

.sg-review-card {
  background: var(--sg-bg-card);
  border-radius: var(--sg-radius);
  padding: 28px;
  border: 1px solid var(--sg-border);
  transition: var(--sg-transition);
  height: 100%;
}

.sg-review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sg-shadow);
}

.sg-review-stars {
  margin-bottom: 16px;
}

.sg-review-stars i {
  color: #FFD93D;
  font-size: 16px;
}

.sg-review-text {
  font-size: 14px;
  color: var(--sg-text);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.sg-review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sg-review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sg-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.sg-review-author strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.sg-review-author span {
  font-size: 12px;
  color: var(--sg-text-light);
}

/* ============ CTA Section ============ */
.sg-cta {
  padding: 100px 0;
  background: #fff;
}

.sg-cta-box {
  background: var(--sg-gradient-hero);
  border-radius: 24px;
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
}

.sg-cta-box::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: var(--sg-primary);
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
  top: -100px;
  right: -100px;
}

.sg-cta-box h2 {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  position: relative;
}

.sg-cta-box p {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 28px;
  position: relative;
}

/* ============ Auth Pages ============ */
.sg-auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--sg-bg);
}

.sg-auth-card {
  background: var(--sg-bg-card);
  border-radius: var(--sg-radius);
  box-shadow: var(--sg-shadow);
  width: 100%;
  max-width: 440px;
  overflow: hidden;
}

.sg-auth-card-wide {
  max-width: 560px;
}

.sg-auth-header {
  padding: 32px 32px 0;
}

.sg-auth-logo {
  height: 40px;
  margin-bottom: 20px;
}

.sg-auth-header h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.sg-auth-body {
  padding: 24px 32px;
}

.sg-auth-footer {
  padding: 16px 32px 24px;
  font-size: 14px;
}

.sg-auth-footer a {
  color: var(--sg-primary);
  font-weight: 600;
}

.sg-form-group {
  margin-bottom: 16px;
}

.sg-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--sg-text);
  margin-bottom: 6px;
}

.sg-input-icon {
  position: relative;
}

.sg-input-icon i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sg-text-light);
  font-size: 14px;
}

.sg-input-icon .form-control,
.sg-input-icon select.form-control {
  padding-left: 40px;
  height: 44px;
  border-radius: var(--sg-radius-sm);
  border: 1px solid var(--sg-border);
  font-size: 14px;
  transition: var(--sg-transition);
}

.sg-input-icon .form-control:focus {
  border-color: var(--sg-primary);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.sg-form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.sg-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
}

.sg-forgot-link {
  font-size: 13px;
  color: var(--sg-primary);
  font-weight: 500;
}

.sg-success-icon {
  font-size: 64px;
  color: #6BCB77;
}

/* ============ Page Header ============ */
.sg-page-header {
  background: var(--sg-gradient-hero);
  padding: 140px 0 60px;
  position: relative;
  overflow: hidden;
}

.sg-page-header::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: var(--sg-primary);
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.2;
  top: -200px;
  right: -100px;
}

.sg-page-title {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  position: relative;
}

.sg-breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
}

.sg-breadcrumb .breadcrumb-item,
.sg-breadcrumb .breadcrumb-item a {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
}

.sg-breadcrumb .breadcrumb-item.active {
  color: rgba(255,255,255,0.9);
}

.sg-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,0.4);
}

/* ============ Admin Section ============ */
.sg-admin-section {
  padding-top: 80px;
  min-height: 100vh;
}

.sg-seo-preview {
  background: #fff;
  border: 1px solid var(--sg-border);
  border-radius: 8px;
  padding: 16px;
  font-family: Arial, sans-serif;
}

.sg-seo-title {
  color: #1a0dab;
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sg-seo-url {
  color: #006621;
  font-size: 13px;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sg-seo-desc {
  color: #545454;
  font-size: 13px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sg-editor {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  min-height: 300px;
}

/* ============ Responsive ============ */
@media (max-width: 991.98px) {
  .sg-hero-title {
    font-size: 36px;
  }

  .sg-hero {
    padding: 100px 0 60px;
  }

  .sg-hero-visual {
    padding: 20px;
    margin-top: 40px;
  }

  .sg-float-card {
    display: none;
  }

  .sg-section-title {
    font-size: 28px;
  }

  .sg-features,
  .sg-how-it-works,
  .sg-reviews,
  .sg-cta {
    padding: 60px 0;
  }

  .sg-header .navbar-collapse {
    background: rgba(13, 17, 23, 0.98);
    backdrop-filter: blur(10px);
    border-radius: var(--sg-radius);
    padding: 16px;
    margin-top: 10px;
  }

  .sg-header.shrink .navbar-collapse {
    background: rgba(255,255,255,0.98);
  }

  .sg-header .navbar .navbar-nav .nav-link {
    margin: 4px 0;
    padding: 8px 12px;
  }
}

@media (max-width: 575.98px) {
  .sg-hero-title {
    font-size: 28px;
  }

  .sg-hero-stats {
    gap: 12px;
  }

  .sg-stat-item strong {
    font-size: 18px;
  }

  .sg-hero-actions {
    flex-direction: column;
  }

  .sg-hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .sg-auth-header {
    padding: 24px 20px 0;
  }

  .sg-auth-body {
    padding: 20px;
  }

  .sg-page-title {
    font-size: 28px;
  }
}
