/**
 * RuleDox Home Page - Dark Theme Styles
 * Adapted from Bootsland template with RuleDox brand colors
 * 
 * Brand Colors:
 * - --rdx-color-blue: #0047AB (primary)
 * - --rdx-color-obsidian: #121417 (dark bg)
 * - Dark body: #060927 (from template)
 */

:root {
  --home-dark-bg: #060927;
  --home-dark-card-bg: rgba(255, 255, 255, 0.05);
  --home-primary: #0047AB;
  --home-primary-light: #3373c4;
  --home-text-light: rgba(255, 255, 255, 0.7);
  --home-text-muted: rgba(255, 255, 255, 0.5);
}

/* Dark page wrapper */
.home-dark {
  background-color: var(--home-dark-bg);
  color: #fff;
}

/* Hero Section */
.home-hero-dark {
  background: linear-gradient(135deg, #1360ef 0%, #0d4bc4 100%);
  padding: calc(6rem + 120px) 0 calc(4rem + 120px);
  position: relative;
}

.home-hero-dark .hero-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  font-size: 0.875rem;
  color: #fff;
  margin-bottom: 1.5rem;
}

.home-hero-dark h1 {
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 1.5rem;
}

.home-hero-dark .hero-accent {
  color: #fcd34d;
  font-weight: 500;
}

.home-hero-dark .hero-subtitle {
  font-size: 1.3em;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  max-width: 700px;
  margin: 0 auto 1rem;
}

/* Wave divider */
.home-wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.home-wave-divider svg {
  display: block;
  width: calc(100% + 1.3px);
  height: 100px;
}

.home-wave-divider .shape-fill {
  fill: var(--home-dark-bg);
}

/* Dark Section Base */
.home-section-dark {
  background-color: var(--home-dark-bg);
  padding: 5rem 0;
}

.home-section-dark h2 {
  color: #fff;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.home-section-dark p {
  color: var(--home-text-light);
}

.home-section-dark .text-muted {
  color: var(--home-text-muted) !important;
}

.problem-icon-muted {
  opacity: 0.75;
}

/* Dark Cards */
.home-card-dark {
  background: var(--home-dark-card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-card-dark:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.home-card-dark h3, .home-card-dark h5 {
  color: #fff;
}

/* Feature Icons */
.home-feature-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.home-feature-icon.blue {
  background: rgba(0, 71, 171, 0.2);
  color: var(--home-primary-light);
}

/* Counter Stats */
.home-counter {
  background: var(--home-dark-card-bg);
  border-radius: 1rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.home-counter .count-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--home-primary-light);
}

.home-counter .count-label {
  color: var(--home-text-muted);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Testimonials */
.home-testimonial-card {
  background: transparent;
  border: 1px solid var(--home-primary);
  border-radius: 1rem;
  padding: 1.5rem;
}

.home-testimonial-card.border-success {
  border-color: #10b981;
}

.home-testimonial-card.border-warning {
  border-color: #f59e0b;
}

.home-testimonial-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

/* FAQ Accordion - Dark */
.home-accordion-dark .accordion-item {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  overflow: hidden;
}

.home-accordion-dark .accordion-button {
  background: transparent;
  color: #fff;
  font-weight: 500;
  padding: 1.25rem;
  border: none;
}

.home-accordion-dark .accordion-button:not(.collapsed) {
  background: rgba(0, 71, 171, 0.2);
}

.home-accordion-dark .accordion-button::after {
  filter: invert(1);
}

.home-accordion-dark .accordion-body {
  color: var(--home-text-light);
  padding: 0 1.25rem 1.25rem;
}

/* Pricing Cards - Dark */
.home-pricing-card {
  background: transparent;
  border-radius: 1rem;
  padding: 3rem 1.5rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.home-pricing-card:hover {
  transform: translateY(-10px);
}

.home-pricing-card.featured {
  background: var(--home-primary);
  box-shadow: 0 25px 50px rgba(0, 71, 171, 0.4);
}

.home-pricing-card .price {
  font-size: 3.5rem;
  font-weight: 700;
  color: #fff;
}

.home-pricing-card .price-period {
  color: var(--home-text-muted);
}

.home-pricing-card .feature-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.home-pricing-card .feature-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.home-pricing-card .feature-list li:last-child {
  border-bottom: none;
}

/* Buttons */
.btn-home-primary {
  background: var(--home-primary);
  color: #fff;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center;
  gap: 0.5rem !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  transition: all 0.3s ease;
  border: none;
  min-width: max-content;
}

.btn-home-primary:hover {
  background: var(--home-primary-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 71, 171, 0.3);
}

.btn-home-outline {
  background: var(--home-dark-bg);
  color: #fff;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: none;
}

.btn-home-outline:hover {
  background: #0a0d2e;
  color: #fff;
}

.btn-home-ghost {
  background: transparent;
  color: #fff;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  transition: all 0.3s ease;
  border: none;
}

.btn-home-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-home-demo {
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-home-demo:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-home-dark {
  background: #1a1a2e;
  color: #fff;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: none;
}

.btn-home-dark:hover {
  background: #2a2a4e;
  color: #fff;
}

/* Footer Dark */
.home-footer-dark {
  background: linear-gradient(135deg, #1360ef 0%, #0d4bc4 100%);
  padding-top: 0;
  padding-bottom: 2rem;
  position: relative;
}

.home-footer-dark .footer-wave {
  width: 100%;
  height: 150px;
  overflow: hidden;
  line-height: 0;
}

.home-footer-dark .footer-wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

.home-footer-dark .footer-wave .shape-fill {
  fill: var(--home-dark-bg);
}

.home-footer-dark h5 {
  color: #fff;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.home-footer-dark a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.home-footer-dark a:hover {
  color: #fff;
}

/* Badge styles */
.badge-home-light {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Check icon for features */
.check-icon-primary {
  color: var(--home-primary-light);
}

/* Responsive */
@media (max-width: 768px) {
  .home-hero-dark {
    padding: 4rem 0 3rem;
  }
  
  .home-hero-dark h1 {
    font-size: 1.75rem;
  }
  
  .home-section-dark {
    padding: 3rem 0;
  }
}
