/* Compiled from themes/pantacor/assets/scss/pages/_home.scss */

/* Variables */
/* $blue: #00A9E8; */
/* $gray-900: #2A2F38; */
/* $primary: $blue; */

.page-home .hero-section {
  background: #2A2F38;
  padding: 5rem 2rem 5rem 2rem;
  position: relative;
  overflow: hidden;
}

.page-home .main-content {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.page-home .hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-home .hero-title {
  color: white;
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-home .hero-subtitle {
  color: #60a5fa;
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.page-home .hero-description {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.page-home .hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.page-home .hero-btn-primary {
  background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
  border: none;
  color: white;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(13, 110, 253, 0.4);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.page-home .hero-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.5);
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
}

.page-home .hero-btn-secondary {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: white;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.page-home .hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  color: white;
  transform: translateY(-3px);
}

.page-home .hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding-top: 1rem;
}

.page-home .hero-stat {
  text-align: center;
}

.page-home .hero-stat .hero-stat-value {
  display: block;
  color: white;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

.page-home .hero-stat .hero-stat-label {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Responsive hero */
@media (max-width: 768px) {
  .page-home .hero-section {
    padding: 3rem 1.5rem 4rem 1.5rem;
  }

  .page-home .hero-title {
    font-size: 2.5rem;
  }

  .page-home .hero-subtitle {
    font-size: 1.15rem;
  }

  .page-home .hero-description {
    font-size: 1.05rem;
  }

  .page-home .hero-stats {
    gap: 2rem;
  }

  .page-home .hero-stat .hero-stat-value {
    font-size: 1.5rem;
  }

  .page-home .hero-stat .hero-stat-label {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .page-home .hero-section {
    padding: 2.5rem 1rem 3.5rem 1rem;
  }

  .page-home .hero-title {
    font-size: 2rem;
  }

  .page-home .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .page-home .hero-cta .btn {
    width: 100%;
    max-width: 280px;
  }

  .page-home .hero-stats {
    gap: 1.5rem;
  }
}

.page-home .feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
  margin-bottom: 0;
}

@media (max-width: 991px) {
  .page-home .feature-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .page-home .feature-cards-grid {
    grid-template-columns: 1fr;
  }
}

.page-home .four-ways-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.page-home .four-ways-grid .feature-card {
  min-height: 340px;
}

@media (max-width: 1199px) {
  .page-home .four-ways-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-home .four-ways-grid .feature-card {
    min-height: 300px;
  }
}

@media (max-width: 575px) {
  .page-home .four-ways-grid {
    grid-template-columns: 1fr;
  }
  .page-home .four-ways-grid .feature-card {
    min-height: auto;
  }
}

.page-home .feature-card {
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem;
  border-radius: 12px;
  background: white;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  height: 100%;
  min-height: 280px;
}

.page-home .feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0d6efd, #0dcaf0);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.page-home .feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: #0d6efd;
}

.page-home .feature-card:hover::before {
  transform: scaleX(1);
}

.page-home .feature-card:hover h6 {
  color: #0d6efd;
}

.page-home .feature-card h6 {
  transition: color 0.3s ease;
  margin-bottom: 0.75rem;
  margin-top: 0.5rem;
  color: #2c3e50;
  font-size: 1.1rem;
  font-weight: 600;
}

.page-home .feature-card p {
  color: #6c757d;
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.page-home .feature-card p:last-of-type {
  margin-top: auto;
  margin-bottom: 0;
}

.page-home .feature-card .icon-container {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.page-home .feature-card .icon-container img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.page-home .feature-card .card-link {
  margin-top: auto;
  padding-top: 1rem;
}

.page-home .feature-card .card-link a {
  color: #0d6efd;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
  position: relative;
}

.page-home .feature-card .card-link a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #0d6efd;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.page-home .feature-card .card-link a:hover::after {
  transform: scaleX(1);
}

.page-home .feature-card .card-meta {
  font-size: 0.8rem !important;
  color: #94a3b8 !important;
  margin-top: 0.5rem;
  margin-bottom: 0 !important;
}

.page-home .lead {
  font-size: 1.15rem;
  color: #495057;
  line-height: 1.7;
}

/* Standardized Section Styling */
.page-home .section-home {
  padding: 4rem 0;
  margin-bottom: 2rem;
}

.page-home .section-home h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.page-home .section-home .lead {
  font-size: 1.15rem;
  color: #6c757d;
  line-height: 1.7;
  margin-bottom: 3rem;
  max-width: 800px;
}

.page-home section:last-of-type {
  margin-bottom: 0;
}

.page-home section ul {
  list-style: none;
  padding-left: 1.5rem;
}

.page-home section ul li {
  position: relative;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.page-home section ul li:before {
  content: "▸";
  position: absolute;
  left: -1.5rem;
  color: #0d6efd;
  font-weight: bold;
}

.page-home section ul li a {
  color: #0d6efd;
  text-decoration: none;
  font-weight: 500;
}

.page-home section ul li a:hover {
  text-decoration: underline;
}

.page-home .section-badge {
  display: inline-block;
  background: #0d6efd;
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.page-home .section-header-box {
  background: linear-gradient(135deg, #f0f4ff 0%, #f8fbff 100%);
  padding: 2.5rem 2rem;
  padding-top: 3rem;
  border-radius: 12px;
  border-left: 5px solid #0d6efd;
  margin: 0 0 0 0;
  position: relative;
}

.page-home .section-header-box h2 {
  margin-bottom: 1rem;
}

/* Section with header box doesn't need the border since it has its own styling */
.page-home .section-home:has(.section-header-box) {
  border-top: none;
  padding-top: 4rem;
}

.page-home .section-header-box .section-badge {
  position: absolute;
  top: -12px;
  left: 20px;
}

.page-home .section-header-box h3 {
  color: #2c3e50;
  font-weight: 700;
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  margin-top: 0;
}

.page-home .section-header-box p {
  color: #6c757d;
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
}

.page-home .info-callout {
  background: #f0f7ff;
  border-left: 4px solid #0d6efd;
  padding: 1.25rem 1.5rem;
  border-radius: 6px;
  margin: 2rem 0;
}

.page-home .info-callout p {
  margin: 0;
  color: #495057;
}

.page-home .info-callout p strong {
  color: #2c3e50;
}

.page-home .info-callout p a {
  color: #0d6efd;
  font-weight: 500;
  text-decoration: none;
}

.page-home .info-callout p a:hover {
  text-decoration: underline;
}

.page-home .getting-started-box {
  background: linear-gradient(135deg, #f8f9fa 0%, #e7f5ff 100%);
  padding: 3rem;
  border-radius: 12px;
  border-left: 4px solid #0d6efd;
  margin-top: 0;
}

/* Section with getting-started-box doesn't need the border */
.page-home .section-home.getting-started-box {
  border-top: none;
  margin-top: 3rem;
}

.page-home .getting-started-box h2 {
  margin-bottom: 1rem;
}

.page-home .getting-started-box > p:first-of-type {
  margin-bottom: 2rem;
  color: #6c757d;
}

.page-home .getting-started-box ul {
  margin-bottom: 2rem;
}

.page-home .getting-started-box ul li {
  margin-bottom: 1rem;
  padding-left: 0.5rem;
}

.page-home .getting-started-box h4 {
  color: #2c3e50;
  font-weight: 600;
  margin-bottom: 1rem;
}

.page-home .getting-started-box p {
  color: #6c757d;
  line-height: 1.7;
}

.page-home .getting-started-box ul {
  margin-bottom: 1.5rem;
}

.page-home .code-block {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid #334155;
  position: relative;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

.page-home .code-block div {
  white-space: pre-wrap;
  word-break: break-word;
}

.page-home .code-block:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-home .download-section {
  margin-top: 3rem;
}

.page-home .download-section h4 {
  color: #2c3e50;
  font-weight: 600;
  margin-bottom: 1rem;
}

.page-home .download-section p {
  color: #6c757d;
  line-height: 1.7;
}

/* General button styling */
.page-home .btn.btn-primary {
  background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
  border: none;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 0.75rem 1.5rem;
}

.page-home .btn.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
  background: linear-gradient(135deg, #0b5ed7 0%, #0a58ca 100%);
  color: white;
}

.page-home .btn.btn-outline-secondary {
  border: 2px solid #6c757d;
  color: #6c757d;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 0.75rem 1.5rem;
}

.page-home .btn.btn-outline-secondary:hover {
  background-color: #6c757d;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.2);
}

/* Animations */
.page-home [style*="background: #f0f7ff"] {
  animation: slideInLeft 0.5s ease;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Footer - same color as hero (#2A2F38) */
.footer {
  background: #2A2F38;
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 2rem;
}

.footer h5 {
  color: white;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: white;
  text-decoration: underline;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer hr {
  border-color: rgba(255, 255, 255, 0.2);
}

/* Hero section for non-home pages (downloads, etc.) */
.hero-section {
  background: #2A2F38;
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.hero-section h1 {
  color: white;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-section .lead {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
}

/* Downloads page specific styles */
.download-section {
  padding: 3rem 0;
}

.tools-section {
  padding: 3rem 0;
  background: #f8f9fa;
}

.tool-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  height: 100%;
  transition: all 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.tool-card .tool-icon {
  font-size: 2.5rem;
  color: #0d6efd;
  margin-bottom: 1rem;
}

.tool-card h5 {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.75rem;
}

.platform-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.platform-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.platform-card .platform-name {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.platform-card .device-info {
  margin-bottom: 1rem;
}

.platform-card .download-buttons {
  margin-top: auto;
}

.loading-spinner {
  text-align: center;
  padding: 3rem;
}

/* Download filters */
.download-filters {
  background: #f8f9fa;
  border-radius: 8px;
}

.download-filters .form-select {
  min-width: 180px;
}

/* Device list styles */
.device-list {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.device-list-header {
  background: #f8f9fa;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.device-row {
  transition: background-color 0.2s ease;
}

.device-row:hover {
  background-color: #f8f9fa;
}

.device-row:last-child {
  border-bottom: none !important;
}

.device-name {
  font-size: 1.05rem;
}

.device-machine {
  font-size: 0.85rem;
}

.downloads-col {
  min-width: 280px;
}

.device-row .btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.device-row .btn-info {
  background-color: #17a2b8;
  border-color: #17a2b8;
  color: white;
}

.device-row .btn-info:hover {
  background-color: #138496;
  border-color: #117a8b;
}

@media (max-width: 768px) {
  .device-row {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .downloads-col {
    min-width: auto;
    width: 100%;
    margin-top: 1rem;
    text-align: left !important;
  }

  .download-filters .row {
    flex-direction: column;
    gap: 0.75rem;
  }

  .download-filters .col-auto {
    width: 100%;
  }

  .download-filters .form-select {
    width: 100%;
  }
}

/* Additional spacing refinements for professional look */
.page-home .section-home:first-of-type {
  padding-top: 0;
}

.page-home .section-home .row {
  align-items: center;
}

.page-home .section-home img.max-width-mobile {
  max-width: 100%;
  height: auto;
}

/* Better visual separation between sections */
.page-home .section-home + .section-home {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 5rem;
  margin-top: 1rem;
}

/* Responsive spacing adjustments */
@media (max-width: 991px) {
  .page-home .main-content {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  
  .page-home .section-home {
    padding: 3rem 0;
  }
  
  .page-home .section-home + .section-home {
    padding-top: 4rem;
  }
  
  .page-home .feature-cards-grid {
    gap: 1.5rem;
  }
  
  .page-home .four-ways-grid {
    gap: 1.5rem;
  }
}

@media (max-width: 575px) {
  .page-home .main-content {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  
  .page-home .section-home {
    padding: 2rem 0;
  }
  
  .page-home .section-home + .section-home {
    padding-top: 3rem;
  }
  
  .page-home .section-home h2 {
    font-size: 1.75rem;
  }
  
  .page-home .getting-started-box {
    padding: 2rem 1.5rem;
  }
  
  .page-home .section-header-box {
    padding: 2rem 1.5rem;
  }
}
