/* Best Savings Rate Finder Specific Styles */

/* Main container */
.calculator-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #181c40 0%, #2a3052 100%);
  color: #d8bd7d;
  text-align: center;
  padding: 2rem 1rem;
  margin-bottom: 2rem;
  border-radius: 8px;
}

[data-theme="light"] .hero {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.95;
  margin: 0;
}

/* Card sections */
.card {
  background: var(--bg-primary);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
}

[data-theme="dark"] .card {
  border: 3px solid var(--accent-primary);
}

.card h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-size: 1.8rem;
}

.card h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-size: 1.3rem;
}

.card p {
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* Introduction Section */
.intro-section {
  background: var(--bg-primary);
}

.benefits-list {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
  line-height: 1.8;
}

.benefits-list li {
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.benefits-list strong {
  color: var(--accent-primary);
}

.info-text {
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid var(--accent-primary);
  margin: 1.5rem 0;
  color: var(--text-primary);
}

/* Credit Banner */
.credit-banner {
  background: linear-gradient(135deg, #181c40 0%, #2a3052 100%);
  border: 2px solid var(--accent-primary);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 2rem;
  text-align: center;
}

[data-theme="light"] .credit-banner {
  background: linear-gradient(135deg, #e8f4f8 0%, #d4e9f2 100%);
  border-color: #3498db;
}

.credit-banner p {
  margin: 0;
  font-size: 1rem;
  color: #ffffff;
}

[data-theme="light"] .credit-banner p {
  color: #2c3e50;
}

.credit-banner strong {
  color: var(--accent-primary);
}

[data-theme="light"] .credit-banner strong {
  color: #2980b9;
}

.credit-banner a {
  color: var(--accent-primary);
  text-decoration: underline;
  font-weight: 600;
}

[data-theme="light"] .credit-banner a {
  color: #2980b9;
}

.credit-banner a:hover {
  color: var(--accent-hover);
}

/* Leaderboard Section */
.leaderboard-section {
  background: var(--bg-primary);
}

.iframe-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 75%; /* 4:3 aspect ratio */
  margin: 1.5rem 0;
  border-radius: 8px;
  overflow: hidden;
  border: 3px solid var(--accent-primary);
}

[data-theme="light"] .iframe-container {
  border: 2px solid #ddd;
}

.leaderboard-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Tips Box */
.tips-box {
  background: linear-gradient(135deg, #181c40 0%, #2a3052 100%);
  border: 2px solid var(--accent-primary);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 2rem;
}

[data-theme="light"] .tips-box {
  background: #f8f9fa;
  border-color: #3498db;
}

.tips-box h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--accent-primary);
  font-size: 1.3rem;
}

[data-theme="light"] .tips-box h3 {
  color: #2980b9;
}

.tips-box ol {
  margin: 0;
  padding-left: 1.5rem;
  color: #ffffff;
}

[data-theme="light"] .tips-box ol {
  color: #2c3e50;
}

.tips-box li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.tips-box strong {
  color: var(--accent-primary);
}

[data-theme="light"] .tips-box strong {
  color: #2980b9;
}

/* About Section */
.about-section {
  background: var(--bg-primary);
}

[data-theme="light"] .about-section {
  background: #f8f9fa;
}

.about-section ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.about-section li {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.about-section a {
  color: var(--accent-primary);
  text-decoration: underline;
  font-weight: 500;
}

[data-theme="light"] .about-section a {
  color: #2980b9;
}

.about-section a:hover {
  color: var(--accent-hover);
}

.disclaimer-list {
  background: var(--bg-secondary);
  padding: 1rem 1rem 1rem 2.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--accent-primary);
  margin: 1rem 0;
}

.disclaimer-list li {
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 992px) {
  .calculator-container {
    padding: 1.5rem 1rem;
  }

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

  .hero p {
    font-size: 1rem;
  }

  .iframe-container {
    padding-bottom: 80%; /* Slightly taller on tablets */
  }
}

@media (max-width: 768px) {
  .calculator-container {
    padding: 1rem 0.5rem;
  }

  .card {
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
  }

  .card h2 {
    font-size: 1.5rem;
  }

  .card h3 {
    font-size: 1.2rem;
  }

  .hero {
    padding: 1.5rem 1rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .iframe-container {
    padding-bottom: 100%; /* Taller on mobile */
  }

  .credit-banner,
  .tips-box {
    padding: 1rem;
  }

  .benefits-list,
  .about-section ul,
  .tips-box ol {
    padding-left: 1.25rem;
  }
}

@media (max-width: 480px) {
  .card {
    padding: 1rem 0.75rem;
  }

  .card h2 {
    font-size: 1.3rem;
  }

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

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .iframe-container {
    padding-bottom: 120%; /* Even taller on small mobile */
  }

  .credit-banner p,
  .tips-box li {
    font-size: 0.9rem;
  }
}