/**
 * Landing Pages Enhanced Styles
 * Reference: modern real estate site with dark sections, rounded corners, accent bars
 * Our colors: #3759ff primary, dark navy for dark sections
 * NO TEXT CHANGES - styling only
 */

:root {
  --landing-dark: #1a1f36;
  --landing-dark-soft: #232a45;
  --landing-accent: #3759ff;
  --landing-accent-rgb: 55, 89, 255;
}

/* ========== Dark Sections (reference: RoadMap, Featured Listing style) ========== */
#landingMarketSnapshot {
  background: var(--landing-dark) !important;
  color: #fff;
  padding: 5rem 0 6rem !important;
}

#landingMarketSnapshot .badge {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Section title decoration - ensure visibility on dark bg */
#landingMarketSnapshot .section-title-img,
#landingReviews .section-title-img {
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

#landingMarketSnapshot h3,
#landingMarketSnapshot .text-body,
#landingMarketSnapshot p {
  color: rgba(255, 255, 255, 0.95) !important;
}

#landingMarketSnapshot .card {
  background: #fff !important;
  border-radius: 2rem !important;
  border: none !important;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.25) !important;
}

/* Cards in dark sections keep default text colors */
#landingMarketSnapshot .card h5,
#landingMarketSnapshot .card p {
  color: #5d596c !important;
}

#landingMarketSnapshot a.btn-primary {
  background: var(--landing-accent) !important;
  color: #fff !important;
}

#landingMarketSnapshot a.btn-outline-primary {
  border-color: var(--landing-accent) !important;
  color: var(--landing-accent) !important;
}

#landingMarketSnapshot a.btn-outline-primary:hover {
  background: var(--landing-accent) !important;
  color: #fff !important;
}

/* Solutions icon rings (reference: circular image with accent border) */
.solution-icon-ring {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 3px solid var(--landing-accent);
  background: rgba(55, 89, 255, 0.06);
}

.solution-icon-ring--orange {
  border-color: #ff6b35;
  background: rgba(255, 107, 53, 0.06);
}

.solution-icon-ring--muted {
  border-color: rgba(93, 89, 108, 0.4);
  background: rgba(93, 89, 108, 0.06);
}

/* Reviews section (reference: Testimonial) */
#landingReviews.landing-reviews {
  background: var(--landing-dark-soft) !important;
  color: #fff;
}

#landingReviews .badge {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
}

#landingReviews h3,
#landingReviews p {
  color: rgba(255, 255, 255, 0.95) !important;
}

#landingReviews .card {
  border-radius: 1.5rem !important;
  border: none !important;
  box-shadow: 0 15px 40px -15px rgba(0, 0, 0, 0.2) !important;
}

#landingReviews .reviews-btn {
  border-radius: 1rem !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  color: #fff !important;
}

#landingReviews .reviews-btn:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

/* ========== CTA Bar (reference: Ready To Get Started) ========== */
#landingCTA.landing-cta {
  background: var(--landing-accent) !important;
  border-radius: 2.5rem 2.5rem 0 0;
  padding: 3rem 0 !important;
  margin-top: 2rem;
  box-shadow: 0 -15px 50px -20px rgba(var(--landing-accent-rgb), 0.35);
}

#landingCTA .row {
  flex-wrap: nowrap;
}

@media (max-width: 767px) {
  #landingCTA .row {
    flex-direction: column;
    align-items: center;
  }

  #landingCTA .col-auto {
    width: 100%;
  }
}

#landingCTA.landing-cta::before {
  opacity: 0.3;
}

#landingCTA .text-primary,
#landingCTA h6.h2 {
  color: #fff !important;
}

#landingCTA p {
  color: rgba(255, 255, 255, 0.9) !important;
}

#landingCTA .btn-primary {
  background: #fff !important;
  color: var(--landing-accent) !important;
  border: none !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

#landingCTA .btn-primary:hover {
  background: rgba(255, 255, 255, 0.95) !important;
  color: var(--landing-accent) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* ========== Footer (reference: dark with rounded top) ========== */
.landing-footer .footer-top {
  background: var(--landing-dark) !important;
  border-radius: 3rem 3rem 0 0;
  padding: 4rem 0 !important;
}

.landing-footer .footer-top::before {
  background: radial-gradient(circle at 20% 50%, rgba(var(--landing-accent-rgb), 0.2) 0%, transparent 60%) !important;
}

.landing-footer .footer-title {
  color: #fff !important;
}

.landing-footer .footer-link,
.landing-footer .footer-text {
  color: rgba(255, 255, 255, 0.85) !important;
}

.landing-footer .footer-link:hover {
  color: #fff !important;
}

/* Footer social icons (reference: green circles with white icons) */
.footer-social-link {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--landing-accent);
  color: #fff !important;
  transition: all 0.3s ease;
}

.footer-social-link:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff !important;
}

/* ========== Global: Hero & Typography ========== */
.scrollspy-example .landing-hero,
.section-py.landing-hero {
  box-shadow: 0 25px 50px -12px rgba(55, 89, 255, 0.12);
  position: relative;
}

.landing-hero .hero-text-box {
  position: relative;
  z-index: 2;
}

.landing-hero .hero-title {
  letter-spacing: -0.02em;
}

.landing-hero .hero-sub-title {
  font-weight: 500;
  letter-spacing: 0.01em;
}

.landing-hero .btn-primary,
.landing-hero-btn .btn-primary {
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(55, 89, 255, 0.35);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Navbar CTA button (reference: Find Now) */
.landing-navbar .btn-primary {
  border-radius: 1rem !important;
  padding: 0.5rem 1.25rem !important;
}

.landing-hero .btn-primary:hover,
.landing-hero-btn .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(55, 89, 255, 0.45);
}

.landing-hero .btn-outline-primary {
  border-radius: 1rem;
  border-width: 2px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.landing-hero .btn-outline-primary:hover {
  transform: translateY(-2px);
}

/* ========== Features Section (/, account pages) ========== */
.landing-features .badge.bg-label-primary,
#Features .badge.bg-label-primary {
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  border-radius: 50px;
  letter-spacing: 0.03em;
}

.features-icon-box {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1.25rem;
  border-radius: 1.5rem;
}

.features-icon-box:hover {
  transform: translateY(-6px);
  background: rgba(55, 89, 255, 0.06);
  box-shadow: 0 12px 40px -15px rgba(55, 89, 255, 0.1);
}

.features-icon-box .card,
#features .card {
  border-radius: 1.5rem !important;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

/* Pricing cards - more rounded (reference style) */
#Pricing .card {
  border-radius: 1.5rem !important;
}


.features-icon-box .card:hover,
#features .card:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.12) !important;
}

/* ========== Blog Index Page ========== */
.section-py.landing-hero .hero-title.display-6 {
  letter-spacing: -0.025em;
}

/* Blog featured card (blue gradient) */
.col-lg-8 > a .card.mb-4 {
  border-radius: 24px !important;
  box-shadow: 0 20px 50px -15px rgba(55, 89, 255, 0.3) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.col-lg-8 > a:hover .card.mb-4,
.col-lg-8 > a:focus-within .card.mb-4 {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -20px rgba(55, 89, 255, 0.4) !important;
}

/* Blog grid cards */
#articlesGrid .card,
.blog-card .card {
  border-radius: 24px !important;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: 1px solid rgba(0, 0, 0, 0.04) !important;
}

#articlesGrid .card:hover,
.blog-card:hover .card {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -15px rgba(0, 0, 0, 0.12) !important;
}

#articlesGrid .card-body > div[style*="height: 200px"],
#articlesGrid .card-body > div[style*="overflow: hidden"] {
  overflow: hidden;
}

#articlesGrid .card-body > div img,
.blog-card .card-body > div img {
  transition: transform 0.5s ease;
}

#articlesGrid .card:hover .card-body > div img,
.blog-card:hover .card .card-body > div img {
  transform: scale(1.05);
}

/* Blog sidebar */
.col-lg-4 .card.shadow-sm {
  border-radius: 24px !important;
  box-shadow: 0 10px 40px -15px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid rgba(0, 0, 0, 0.04) !important;
}

/* Blog category items (livewire) */
.category-item {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.category-item:hover {
  transform: translateX(4px) !important;
}

/* Blog content section background */
.section-py[style*="linear-gradient(to right, #f8f7ff"] {
  padding: 3rem 0 4rem !important;
}

/* ========== Blog Post Page (single article) ========== */
.breadcrumb-container .breadcrumb {
  padding: 0.75rem 0;
  font-size: 0.9rem;
}

.breadcrumb-container .breadcrumb-item a {
  transition: color 0.2s ease;
}

.container.flex-grow-1 .card.g-3 {
  border-radius: 24px !important;
  overflow: hidden;
  box-shadow: 0 15px 50px -20px rgba(0, 0, 0, 0.1) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.blog-main-image-container {
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.15);
}

.blog-main-image {
  transition: transform 0.5s ease;
}

.blog-main-image-container:hover .blog-main-image {
  transform: scale(1.02);
}

.container.flex-grow-1 .card.academy-content {
  border-radius: 16px !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: none !important;
}

/* Author block */
.user-name .avatar-wrapper .avatar {
  box-shadow: 0 4px 15px rgba(55, 89, 255, 0.25);
}

/* Related articles */
.related-article-card {
  border-radius: 20px !important;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.related-article-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.15) !important;
}

.related-article-image-square {
  transition: overflow 0.3s;
}

.related-article-card:hover .related-article-image-square img {
  transform: scale(1.08) !important;
}

/* Related section header */
.card.mt-4 .card-header h2 {
  letter-spacing: -0.01em;
}

/* ========== Account Pages (private, developer, corporate) ========== */
#landingHero .landing-hero {
  border-radius: 0 0 4rem 4rem;
}

#features .card,
#Features .card {
  border-radius: 24px !important;
}

.scrollspy-example section {
  scroll-margin-top: 100px;
}

/* Card icon wrappers - smoother gradients */
.d-inline-flex.align-items-center.justify-content-center[style*="linear-gradient"] {
  transition: transform 0.35s ease;
}

.features-icon-box:hover .d-inline-flex[style*="linear-gradient"],
#features .col-lg-4:hover .d-inline-flex[style*="linear-gradient"] {
  transform: rotate(-5deg) scale(1.05);
}

/* ========== Pagination (blog) ========== */
.pagination-custom .page-link {
  border-radius: 12px !important;
}

/* ========== Input & Search (blog sidebar) ========== */
.input-group .form-control {
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group .form-control:focus {
  box-shadow: 0 0 0 3px rgba(55, 89, 255, 0.15);
}

/* ========== Badge refinements ========== */
.badge.bg-label-primary,
.badge.bg-primary,
span.badge[style*="background: #3759ff"] {
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ========== Content area (#blog-content) ========== */
#blog-content {
  line-height: 1.8;
}

#blog-content p {
  margin-bottom: 1.25rem;
}

#blog-content h2, #blog-content h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

#blog-content ul, #blog-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

#blog-content li {
  margin-bottom: 0.5rem;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .landing-hero {
    border-radius: 0 0 2.5rem 2.5rem;
  }

  #articlesGrid .card,
  .blog-card .card {
    border-radius: 20px !important;
  }

  .container.flex-grow-1 .card.g-3 {
    border-radius: 20px !important;
  }

  .related-article-card {
    border-radius: 16px !important;
  }
}
