/* stockpicker.css */

/*
 * This file contains the styles specific to the Stock Picker feature.
 * It ensures the Stock Picker content is well-formatted and visually consistent.
 */

/* Light mode is the default */
#stock-picker-container {
    background-color: #f0f2f5;
    margin-top: 0;
    padding-top: 0;
    margin-left: 260px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: margin-left 0.3s ease;
}

/* Adjust for collapsed sidebar */
.sidebar.collapsed ~ #stock-picker-container {
    margin-left: 60px;
}

/* Dark mode override */
html.dark-mode #stock-picker-container {
    background-color: #0f1419;
}

.premium-header {
  text-align: center;
  margin-bottom: 2rem;
  margin-top: 0;
  padding-top: 0;
  width: 100%;
}

.premium-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-weight: bold;
  font-size: 0.9rem;
  display: inline-block;
  margin-bottom: 0.5rem;
  margin-top: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.premium-header h1 {
  font-size: 3.5rem;
  font-weight: bold;
  color: #1a202c;
  margin-bottom: 0.5rem;
  margin-top: 0;
  text-align: center;
}

html.dark-mode .premium-header h1 {
  color: #e4e6eb;
}

.premium-header h2 {
  font-size: 3.5rem;
  font-weight: bold;
  color: #1a202c;
  margin-bottom: 0.5rem;
  margin-top: 0;
  text-align: center;
}

html.dark-mode .premium-header h2 {
  color: #e4e6eb;
}

.premium-subtitle {
  font-size: 1.2rem;
  color: #718096;
  max-width: 600px;
  margin: 0 auto;
}

html.dark-mode .premium-subtitle {
  color: #9ca3af;
}

.premium-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 300px));
  gap: 1.5rem;
  margin-bottom: 3rem;
  justify-content: center;
  width: 100%;
}

.feature-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border: 1px solid #e2e8f0;
  transition: transform 0.2s, box-shadow 0.2s;
}

html.dark-mode .feature-card {
  background: #1a1f2e;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  border: 1px solid #2d3748;
}

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

html.dark-mode .feature-card:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.6);
}

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

.feature-card h3 {
  font-size: 1.3rem;
  color: #1a202c;
  margin-bottom: 1rem;
  font-weight: 400;
}

html.dark-mode .feature-card h3 {
  color: #e4e6eb;
}

.feature-card p {
  color: #718096;
  line-height: 1.6;
}

html.dark-mode .feature-card p {
  color: #9ca3af;
}

.demo-section {
  margin-bottom: 3rem;
  width: 100%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

.demo-section h2 {
  text-align: center;
  font-size: 2rem;
  color: #1a202c;
  margin-bottom: 2rem;
}

html.dark-mode .demo-section h2 {
  color: #e4e6eb;
}

.demo-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border: 1px solid #e2e8f0;
  max-width: 650px;
  margin: 0 auto 1.5rem auto;
}

html.dark-mode .demo-card {
  background: #1a1f2e;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  border: 1px solid #2d3748;
}

.demo-card:last-child {
  margin-bottom: 0;
}

.demo-card.locked {
  position: relative;
  overflow: hidden;
}

.paywall-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

html.dark-mode .paywall-overlay {
  background: rgba(26, 31, 46, 0.95);
}

.paywall-content {
  text-align: center;
  padding: 2rem;
  padding-bottom: 3.5rem;
}

.demo-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.demo-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.4rem 1.2rem;
  border-radius: 9999px;
  font-weight: bold;
  font-size: 0.75rem;
  margin-right: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.demo-header h4 {
  margin: 0;
  color: #1a202c;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

html.dark-mode .demo-header h4 {
  color: #e4e6eb;
}

.demo-stock {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.demo-stock img {
  border-radius: 8px;
  margin-right: 0.75rem;
}

.demo-stock-info h5 {
  margin: 0 0 0.5rem 0;
  color: #1a202c;
  font-size: 1.2rem;
  font-weight: 600;
}

html.dark-mode .demo-stock-info h5 {
  color: #e4e6eb;
}

.demo-recommendation {
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.recommendation-badge {
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-weight: bold;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.demo-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.metric {
  text-align: center;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
}

html.dark-mode .metric {
  background: #0f1419;
  border: 1px solid #2d3748;
}

.metric-label {
  display: block;
  font-size: 0.75rem;
  color: #718096;
  margin-bottom: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

html.dark-mode .metric-label {
  color: #9ca3af;
}

.metric-value {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a202c;
}

html.dark-mode .metric-value {
  color: #e4e6eb;
}

.metric-value.positive {
  color: #28a745;
  font-weight: 700;
}

.pricing-section {
  margin-bottom: 3rem;
  width: 100%;
}

.pricing-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border: 1px solid #e2e8f0;
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

html.dark-mode .pricing-card {
  background: #1a1f2e;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  border: 1px solid #2d3748;
}

.pricing-header {
  margin-bottom: 2rem;
}

.pricing-header h3 {
  font-size: 1.5rem;
  color: #1a202c;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

html.dark-mode .pricing-header h3 {
  color: #e4e6eb;
}

.pricing-toggle {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.pricing-option {
  padding: 0.6rem 1.5rem;
  border: 2px solid #e2e8f0;
  background: #f0f2f5;
  color: #718096;
  border-radius: 9999px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.95rem;
}

html.dark-mode .pricing-option {
  border: 2px solid #2d3748;
  background: #0f1419;
  color: #9ca3af;
}

.pricing-option:hover {
  border-color: #4c51bf;
  color: #4c51bf;
}

.pricing-option.active {
  background: #4c51bf;
  color: white;
  border-color: #4c51bf;
}

.price {
  font-size: 3rem;
  font-weight: 400;
  color: #4c51bf;
}

.price-period {
  font-size: 1rem;
  color: #718096;
  font-weight: normal;
}

html.dark-mode .price-period {
  color: #9ca3af;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  text-align: left;
}

.pricing-features li {
  padding: 0.5rem 0;
  color: #718096;
}

html.dark-mode .pricing-features li {
  color: #9ca3af;
}

.subscribe-button {
  background: #4c51bf;
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.2s;
  width: 100%;
}

.subscribe-button:hover {
  background: #3e449a;
}

.pricing-note {
  color: #718096;
  font-size: 0.9rem;
  margin-top: 1rem;
}

html.dark-mode .pricing-note {
  color: #9ca3af;
}

.testimonials-section {
  margin-bottom: 3rem;
  width: 100%;
}

.testimonials-section h2 {
  text-align: center;
  font-size: 2rem;
  color: #1a202c;
  margin-bottom: 2rem;
}

html.dark-mode .testimonials-section h2 {
  color: #e4e6eb;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial {
  background: #ffffff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border: 1px solid #e2e8f0;
}

html.dark-mode .testimonial {
  background: #1a1f2e;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  border: 1px solid #2d3748;
}

.testimonial p {
  color: #718096;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 1rem;
}

html.dark-mode .testimonial p {
  color: #9ca3af;
}

.testimonial-author {
  color: #718096;
  font-weight: bold;
  font-size: 0.9rem;
}

html.dark-mode .testimonial-author {
  color: #9ca3af;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  #stock-picker-container {
    padding: 0 0.5rem 3rem 0.5rem;
    margin-left: 0 !important;
  }

  .premium-header h1 {
    font-size: 1.8rem;
  }

  .premium-subtitle {
    font-size: 1rem;
    padding: 0 0.5rem;
  }

  .premium-features {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 0.5rem;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .feature-icon {
    font-size: 2.5rem;
  }

  .demo-section {
    padding: 0 0.5rem;
  }

  .demo-section h2 {
    font-size: 1.5rem;
  }

  .demo-card {
    padding: 2rem 1.5rem;
  }

  .demo-header {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .demo-badge {
    margin-right: 0;
  }

  .demo-header h4 {
    font-size: 1rem;
    text-align: center;
  }

  .demo-stock {
    flex-direction: column;
    align-items: center;
  }

  .demo-stock img {
    margin-bottom: 0.5rem;
    margin-right: 0;
  }

  .demo-stock-info {
    text-align: center;
  }

  .demo-stock-info h5 {
    font-size: 1rem;
  }

  .demo-recommendation {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
  }

  .demo-recommendation span {
    font-size: 0.85rem;
  }

  .demo-metrics {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    text-align: left;
  }

  .metric {
    text-align: left;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
  }

  html.dark-mode .metric {
    background: #0f1419;
    border: 1px solid #2d3748;
  }

  .metric-label {
    font-size: 0.7rem;
  }

  .metric-value {
    font-size: 1.1rem;
  }

  .pricing-section {
    padding: 0 0.5rem;
  }

  .pricing-card {
    padding: 2rem 1.5rem;
  }

  .price {
    font-size: 2.5rem;
  }

  .testimonials-section {
    padding: 0 0.5rem;
  }

  .testimonials-section h2 {
    font-size: 1.5rem;
  }

  .testimonials {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .testimonial {
    padding: 1.5rem;
  }

  .paywall-content {
    padding: 1rem;
  }

  .paywall-content h3 {
    font-size: 1.1rem;
  }

  .paywall-content p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .premium-header h1 {
    font-size: 1.5rem;
  }

  .premium-subtitle {
    font-size: 0.9rem;
  }

  .feature-card h3 {
    font-size: 1.1rem;
  }

  .demo-section h2,
  .testimonials-section h2 {
    font-size: 1.3rem;
  }

  .price {
    font-size: 2rem;
  }

  .pricing-features {
    font-size: 0.9rem;
  }
}
