/* Silver Linings - Homepage Styles */

/* NerdWallet-Style Hero Section */
.hero-nerdwallet {
  background: linear-gradient(135deg, var(--navy-primary) 0%, #1a3a5a 100%);
  padding: 4rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero-nerdwallet::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(212,175,55,0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(212,175,55,0.05) 0%, transparent 50%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-left {
  color: white;
}

.hero-main-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: white;
}

.hero-description {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: rgba(255,255,255,0.9);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-right {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-phone-container {
  position: relative;
  width: 500px;
  height: 700px;
}

.phone-mockup {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}

.phone-mockup-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Info Bubbles */
.info-bubble {
  position: absolute;
  background: var(--navy-primary);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  z-index: 2;
  animation: float 3s ease-in-out infinite;
}

.bubble-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  line-height: 1.3;
}

.bubble-chart {
  font-size: 2rem;
  margin: 0.5rem 0;
  text-align: center;
}

.bubble-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-accent);
  text-align: center;
}

.bubble-subtitle {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.8);
  text-align: center;
}

.bubble-icon {
  font-size: 2rem;
  color: var(--gold-accent);
  text-align: center;
  margin-top: 0.5rem;
}

/* Bubble Positions */
.bubble-top-left {
  top: 80px;
  left: -160px;
  animation-delay: 0s;
}

.bubble-bottom-left {
  bottom: 180px;
  left: -100px;
  animation-delay: 0.5s;
}

.bubble-top-right {
  top: 120px;
  right: -170px;
  animation-delay: 1s;
}

.bubble-bottom-right {
  bottom: 140px;
  right: -160px;
  animation-delay: 1.5s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Accordion Feature Section */
.feature-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.accordion-item {
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-item:hover {
  border-color: var(--gold-accent);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.accordion-item.active {
  border-color: var(--navy-primary);
  box-shadow: 0 8px 24px rgba(10,31,68,0.15);
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  cursor: pointer;
  background: white;
  transition: background 0.2s;
}

.accordion-header:hover {
  background: var(--bg-light);
}

.accordion-title-group h3 {
  font-size: 1.5rem;
  margin: 0 0 0.25rem 0;
  color: var(--navy-primary);
  font-weight: 600;
}

.accordion-title-group p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.accordion-toggle {
  font-size: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--navy-primary);
  background: white;
  color: var(--navy-primary);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.accordion-toggle:hover {
  background: var(--navy-primary);
  color: white;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-item.active .accordion-content {
  max-height: 1000px;
}

.feature-detail {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  padding: 0 2rem 2rem 2rem;
  align-items: center;
}

.feature-detail-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-detail-text p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

.feature-detail-visual {
  display: flex;
  justify-content: center;
}

/* News Section */
.news-section {
  position: relative;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
}

.view-all-link {
  color: var(--navy-primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}

.view-all-link:hover {
  color: var(--gold-accent);
}

.news-carousel {
  position: relative;
  overflow: hidden;
}

.news-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 1rem;
}

.news-track::-webkit-scrollbar {
  display: none;
}

.news-card {
  flex: 0 0 300px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.news-featured {
  flex: 0 0 600px;
}

.news-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.news-featured .news-image {
  height: 280px;
}

.news-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.news-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.news-author {
  font-weight: 600;
  color: var(--navy-primary);
}

.news-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-primary);
  margin: 0;
  line-height: 1.3;
}

.news-featured .news-title {
  font-size: 1.75rem;
}

.news-excerpt {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  font-size: 2rem;
  color: var(--navy-primary);
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: var(--navy-primary);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: -24px;
}

.carousel-next {
  right: -24px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: all 0.2s;
}

.carousel-dot.active {
  background: var(--navy-primary);
  width: 24px;
  border-radius: 4px;
}

/* Old Hero Section */
.hero {
  background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-light) 100%);
  color: white;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><circle cx="100" cy="100" r="50" fill="rgba(212,175,55,0.1)"/><circle cx="900" cy="400" r="80" fill="rgba(212,175,55,0.05)"/><circle cx="1100" cy="150" r="60" fill="rgba(212,175,55,0.08)"/></svg>') no-repeat center;
  opacity: 0.5;
}

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

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--gold-accent);
  font-weight: 500;
}

/* Value Propositions */
.value-props {
  background-color: var(--bg-light);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.value-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.value-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.value-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--navy-primary);
}

.value-card p {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Feature Showcase */
.feature-showcase {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.feature-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature-item-reverse {
  direction: rtl;
}

.feature-item-reverse > * {
  direction: ltr;
}

.feature-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-badge {
  display: inline-block;
  background: var(--gold-accent);
  color: var(--navy-primary);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  width: fit-content;
}

.feature-content h3 {
  font-size: 2rem;
  margin: 0;
}

.feature-content p {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 0;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
}

.feature-list li {
  font-size: 1.05rem;
  color: var(--text-dark);
}

.feature-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Feature Mockup */
.feature-mockup {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.mockup-header {
  background: var(--navy-primary);
  padding: 1rem;
  display: flex;
  gap: 0.5rem;
}

.mockup-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold-accent);
  opacity: 0.5;
}

.mockup-dot:first-child {
  background: var(--danger-red);
  opacity: 1;
}

.mockup-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mockup-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: var(--bg-light);
  border-radius: 6px;
}

.mockup-label {
  font-weight: 600;
  color: var(--navy-primary);
}

.mockup-value {
  font-weight: 700;
  color: var(--gold-accent);
}

.mockup-badge {
  background: var(--success-green);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.mockup-slider {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mockup-slider span {
  font-weight: 600;
  color: var(--navy-primary);
  font-size: 0.9rem;
}

.mockup-bar {
  height: 8px;
  border-radius: 4px;
  transition: width 0.3s;
}

.mockup-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

.mockup-stat:last-of-type {
  border-bottom: none;
}

.mockup-stat .mockup-label {
  color: var(--text-muted);
  font-weight: 500;
}

.mockup-stat .mockup-value {
  font-size: 1.5rem;
}

.mockup-chart {
  text-align: center;
  font-size: 4rem;
  padding: 1rem 0;
}

.mockup-article {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: 6px;
  font-size: 0.9rem;
}

.mockup-article .mockup-badge {
  background: var(--navy-primary);
}

/* Social Proof */
.social-proof {
  background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-light) 100%);
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  text-align: center;
}

.stat-item {
  padding: 2rem;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--gold-accent);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}

/* CTA Section */
.cta-section {
  background: white;
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hero-phone-container {
    width: 400px;
    height: 600px;
  }

  .bubble-top-left {
    top: 60px;
    left: -140px;
  }

  .bubble-bottom-left {
    bottom: 150px;
    left: -150px;
  }

  .bubble-top-right {
    top: 100px;
    right: -140px;
  }

  .bubble-bottom-right {
    bottom: 120px;
    right: -140px;
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-phone-container {
    margin: 0 auto;
    width: 380px;
    height: 560px;
  }

  .bubble-top-left,
  .bubble-bottom-left {
    left: -130px;
  }

  .bubble-top-right,
  .bubble-bottom-right {
    right: -130px;
  }

  .feature-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .feature-item {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .feature-item-reverse {
    direction: ltr;
  }

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

  .carousel-prev {
    left: 0;
  }

  .carousel-next {
    right: 0;
  }

  .news-featured {
    flex: 0 0 500px;
  }
}

@media (max-width: 768px) {
  .hero-nerdwallet {
    padding: 3rem 0 4rem;
  }

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

  .hero-description {
    font-size: 1.125rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-phone-container {
    width: 320px;
    height: 480px;
  }

  .info-bubble {
    padding: 0.75rem 1rem;
  }

  .bubble-title {
    font-size: 0.8rem;
  }

  .bubble-top-left {
    top: 40px;
    left: -110px;
  }

  .bubble-bottom-left {
    bottom: 120px;
    left: -110px;
  }

  .bubble-top-right {
    top: 80px;
    right: -110px;
  }

  .bubble-bottom-right {
    bottom: 100px;
    right: -110px;
  }

  .accordion-header {
    padding: 1.25rem 1.5rem;
  }

  .accordion-title-group h3 {
    font-size: 1.25rem;
  }

  .accordion-title-group p {
    font-size: 0.875rem;
  }

  .feature-detail {
    padding: 0 1.5rem 1.5rem 1.5rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .news-featured {
    flex: 0 0 280px;
  }

  .news-card {
    flex: 0 0 260px;
  }

  .news-title {
    font-size: 1.1rem;
  }

  .news-featured .news-title {
    font-size: 1.4rem;
  }

  .news-featured .news-image {
    height: 200px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .hero {
    padding: 4rem 0;
  }

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

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .feature-content h3 {
    font-size: 1.5rem;
  }

  .feature-content p {
    font-size: 1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-phone-container {
    width: 260px;
    height: 380px;
  }

  .info-bubble {
    padding: 0.6rem 0.85rem;
  }

  .bubble-title {
    font-size: 0.75rem;
  }

  .bubble-top-left,
  .bubble-bottom-left {
    left: -95px;
  }

  .bubble-top-right,
  .bubble-bottom-right {
    right: -95px;
  }

  .bubble-chart {
    font-size: 1.5rem;
  }

  .bubble-value {
    font-size: 1rem;
  }
}
