/* Tabbar - static search button */
.app-tabbar { user-select: none; }
.app-tabbar .search-expand {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  overflow: hidden;
}
.app-tabbar .search-expand .placeholder { opacity: 0; max-width: 0; }

/* Features tabbed layout - simplified clean styling */
.features-tabbed-layout { display: grid; grid-template-columns: minmax(360px, 520px) 1fr; gap: 2rem; align-items: start; max-width: 1200px; margin: 0 auto; padding: 0 2rem; transform: translateZ(0); -webkit-transform: translateZ(0); }
.features-tabs { display: flex; flex-direction: column; gap: 0.5rem; transform: translateZ(0); -webkit-transform: translateZ(0); }
.features-tab { cursor: pointer; text-align: left; display: flex; align-items: center; gap: 10px; padding: 0.75rem 0; min-height: auto; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; border: none !important; font-weight: 600; font-size: 1.4rem; line-height: 1.1; color: rgba(255, 255, 255, 0.7); justify-content: flex-start; transition: color 0.2s ease; will-change: color; }
.features-tab strong { display: block; font-weight: 700; margin-bottom: 2px; }
.features-tab.active { color: white; background: transparent !important; }
.features-panes { width: 100%; }
.features-panes .feature-pane { display: none; }
.features-panes .feature-pane.active { display: block; }
@media (max-width: 992px) { .features-tabbed-layout { grid-template-columns: 1fr; } .features-tabs { position: static; } }

/* Tab content with vertical lines */
.features-tab .tab-content { position: relative; z-index: 1; font-size: inherit; display: flex; align-items: center; gap: 1rem; background: transparent !important; text-align: left; justify-content: space-between; width: 100%; }
.features-tab .tab-content::before { content: ''; width: 4px; height: 50px; background: rgba(255, 255, 255, 0.7) !important; border-radius: 2px; transition: background 0.2s ease; flex-shrink: 0; will-change: background; }
.features-tab.active .tab-content::before { background: #6580FE !important; }
.features-tabs .features-tab div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; background: transparent !important; }
.features-tab strong { text-align: left; flex: 1; }

/* Chevron styling */
.tab-chevron {
  color: rgba(255, 255, 255, 0.6);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: auto;
}

.features-tab.active .tab-chevron {
  color: #6580FE;
}

.features-tab.expanded .tab-chevron {
  transform: rotate(180deg);
  color: #6580FE;
}

.features-tab:hover .tab-chevron {
  color: rgba(255, 255, 255, 0.9);
}

/* Expandable tab containers and descriptions */
.features-tab-container { 
  margin-bottom: 0.5rem; 
  transition: all 0.3s ease;
}

.tab-description {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
  padding: 0;
  margin-top: 0;
  text-align: left;
}

.tab-description.active {
  max-height: 200px;
  opacity: 1;
  padding: 1rem 0 1.5rem 0;
}

.tab-description ul {
  list-style: none;
  padding: 0;
  margin: 0;
  padding-left: 0;
}

.tab-description li {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  font-weight: 400;
  position: relative;
  padding-left: 1.25rem;
  text-align: left;
}

.tab-description li::before {
  content: '•';
  color: #6580FE;
  font-weight: bold;
  position: absolute;
  left: 2px;
  top: 0;
}

.tab-description li:last-child {
  margin-bottom: 0;
}

/* Remove all outlines and interactions */
.features-tab { outline: none !important; -webkit-tap-highlight-color: transparent; }
.features-tab:focus { outline: none !important; background: transparent !important; }
.features-tab:focus-visible { outline: none !important; background: transparent !important; }
.features-tab:active { outline: none !important; background: transparent !important; }
.features-tab:hover { background: transparent !important; }
.features-tab::-moz-focus-inner { border: 0; }

/* Force remove any remaining backgrounds except the vertical lines */
.features-tab > * { background: transparent !important; }
.features-tab strong { background: transparent !important; }

/* Blog cards hover effects with glass effect */
.blog-post-card:hover {
  border: 1px solid #707AF4 !important;
  background: rgba(0, 0, 0, 0.6) !important;
}

.read-more-link:hover {
  color: #707AF4 !important;
}

.read-more-link:hover svg {
  transform: translateX(3px);
}

/* Disable hover effects for placeholder boxes */
.blog-post-placeholder {
  cursor: default !important;
}

.blog-post-placeholder:hover {
  transform: none !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  background: rgba(0, 0, 0, 0.4) !important;
}

/* Responsive blog grid */
@media (max-width: 768px) {
  .blog-posts-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Mobile responsive styles for "Why choose Foldy?" section */
@media (max-width: 992px) {
  .features h2 {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    padding: 0 1rem;
  }
  
  .features-tabbed-layout {
    padding: 0 1rem;
    gap: 2rem;
  }
  
  .features-tab {
    font-size: 1.2rem;
    padding: 0.75rem 0;
  }
  
  #features-pane img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 12px;
  }
  
  #features-pane {
    padding-left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  #features-pane > div {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .features {
    padding: 3rem 0 1.5rem 0;
  }
  
  .features h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
  }
  
  .features-tabbed-layout {
    grid-template-columns: 1fr;
    padding: 0 1rem;
    gap: 1.5rem;
  }
  
  .features-tab {
    font-size: 1.1rem;
    padding: 0.6rem 0;
    min-height: auto;
  }
  
  .features-tab strong {
    font-size: 1.1rem;
    line-height: 1.3;
    white-space: normal;
  }
  
  .features-tab .tab-content::before {
    height: 40px;
    width: 3px;
  }
  
  .tab-chevron {
    width: 18px;
    height: 18px;
  }
  
  .tab-description {
    padding-left: 0.5rem;
  }
  
  .tab-description li {
    font-size: 0.95rem;
    padding-left: 1rem;
  }
  
  #features-pane {
    padding: 0;
    min-height: 300px;
  }
  
  #features-pane img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 12px;
  }
  
  #features-pane > div {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .features {
    padding: 2rem 0 1rem 0;
  }
  
  .features h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
  }
  
  .features-tabbed-layout {
    padding: 0 0.75rem;
    gap: 1rem;
  }
  
  .features-tab {
    font-size: 1rem;
    padding: 0.5rem 0;
  }
  
  .features-tab strong {
    font-size: 1rem;
  }
  
  .features-tab .tab-content::before {
    height: 35px;
  }
  
  .tab-description.active {
    padding: 0.75rem 0 1rem 0;
  }
  
  .tab-description li {
    font-size: 0.9rem;
  }
  
  #features-pane {
    min-height: 250px;
  }
}

/* Blog section grid pattern - same as features section */
.blog-preview > .features-bg-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
      -webkit-linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
      -webkit-linear-gradient(left, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-image:
      linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 0 0, 0 0;
}

/* Header styling for dark sections - Complete override */
.header.in-black-section {
  outline: 1px solid rgba(255, 255, 255, 0.5) !important;
  background: rgba(0, 0, 0, 0.15) !important;
}

/* Logo text white in dark sections */
.header.in-black-section .logo {
  color: #ffffff !important;
}

/* Navigation links white in dark sections */
.header.in-black-section .nav-links a:not(.cta-button) {
  color: #ffffff !important;
  background: transparent !important;
  text-shadow: 
    -1px -1px 0 rgba(0, 0, 0, 0.15),
    1px -1px 0 rgba(0, 0, 0, 0.15),
    -1px 1px 0 rgba(0, 0, 0, 0.15),
    1px 1px 0 rgba(0, 0, 0, 0.15) !important;
}

.header.in-black-section .nav-links a:not(.cta-button):hover {
  color: #6580FE !important;
  background: transparent !important;
}

/* White CTA button in dark sections */
.header.in-black-section .nav-links .cta-button {
  background: white !important;
  color: #000000 !important;
  box-shadow: 
    0 4px 12px rgba(255, 255, 255, 0.2),
    0 8px 24px rgba(255, 255, 255, 0.1) !important;
}

.header.in-black-section .nav-links .cta-button:hover {
  background: #f0f0f0 !important;
  color: #000000 !important;
  transform: translateY(-2px) !important;
  box-shadow: 
    0 6px 16px rgba(255, 255, 255, 0.25),
    0 12px 32px rgba(255, 255, 255, 0.15) !important;
}

/* Join Beta section with positioned gradients */
.join-beta-gradients {
  position: relative;
  overflow: hidden;
}

/* Yellow gradient on the left */
.join-beta-gradients::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -30%;
  width: 60vw;
  height: 60vw;
  background: linear-gradient(
    125deg,
    rgba(255, 188, 62, 0.3) 0%,
    rgba(255, 231, 186, 0.6) 100%
  );
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.7;
  transform: rotate(-20deg);
  z-index: 0;
}

/* Green to blue gradient in the right corner */
.join-beta-gradients::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -30%;
  width: 80vw;
  height: 80vw;
  background: linear-gradient(
    90deg,
    rgba(9, 255, 0, 1) 0%,
    rgba(101, 128, 254, 1) 100%
  );
  border-radius: 50%;
  filter: blur(200px);
  opacity: 0.4;
  transform: rotate(0deg);
  z-index: 0;
}


