/**
 * purchase.css - クレジット購入ページ専用スタイル
 */

.main-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

/* ========================================
   Page Header
======================================== */
.page-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--mhw-brown-light);
}

.page-header h1 {
  color: var(--mhw-orange);
  margin: 0 0 1rem 0;
  font-size: 2.5rem;
}

.page-description {
  color: var(--mhw-text-muted);
  margin: 0;
  line-height: 1.8;
  font-size: 1rem;
}

/* ========================================
   Current Credits Section
======================================== */
.current-credits-section {
  margin-bottom: 3rem;
  display: flex;
  justify-content: center;
}

.current-credits-card {
  background: linear-gradient(135deg, var(--mhw-brown) 0%, var(--mhw-brown-dark) 100%);
  border: 2px solid var(--mhw-orange);
  border-radius: 12px;
  padding: 2rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 12px rgba(233, 69, 96, 0.2);
}

.current-label {
  color: var(--mhw-text-muted);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.current-credits-display {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.current-number {
  font-size: 3.5rem;
  font-weight: bold;
  color: var(--mhw-orange);
  line-height: 1;
}

.current-unit {
  color: var(--mhw-text);
  font-size: 1.2rem;
}

/* ========================================
   Pricing Section
======================================== */
.pricing-section {
  margin-bottom: 4rem;
}

.pricing-section h2 {
  color: var(--mhw-orange);
  text-align: center;
  margin: 0 0 2rem 0;
  font-size: 2rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* Plan Card */
.plan-card {
  background: var(--mhw-brown);
  border: 2px solid var(--mhw-brown-light);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
}

.plan-card:hover:not(.disabled) {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(233, 69, 96, 0.3);
  border-color: var(--mhw-orange);
}

.plan-card.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.plan-card.recommended {
  border-color: var(--mhw-orange);
  border-width: 3px;
  box-shadow: 0 8px 16px rgba(233, 69, 96, 0.2);
}

.plan-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(135deg, var(--mhw-orange) 0%, var(--mhw-gold) 100%);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(233, 69, 96, 0.4);
}

.plan-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--mhw-brown-light);
}

.plan-name {
  color: var(--mhw-text);
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
}

.plan-price {
  color: var(--mhw-orange);
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.plan-description {
  color: var(--mhw-text-muted);
  margin: 0;
  font-size: 0.9rem;
}

.plan-features {
  flex: 1;
  margin-bottom: 2rem;
}

.plan-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.plan-features li {
  color: var(--mhw-text);
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
}

.plan-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--mhw-orange);
  font-weight: bold;
}

.btn-plan-purchase {
  width: 100%;
  padding: 1rem;
  background: var(--mhw-orange);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-plan-purchase:hover:not(.disabled) {
  background: var(--mhw-gold);
  transform: scale(1.05);
}

.btn-plan-purchase.disabled {
  background: rgba(255, 255, 255, 0.1);
  color: #888;
  cursor: not-allowed;
}

/* ========================================
   FAQ Section
======================================== */
.faq-section {
  margin-bottom: 4rem;
}

.faq-section h2 {
  color: var(--mhw-orange);
  text-align: center;
  margin: 0 0 2rem 0;
  font-size: 2rem;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--mhw-brown);
  border: 2px solid var(--mhw-brown-light);
  border-radius: 8px;
  padding: 1.5rem;
}

.faq-question {
  color: var(--mhw-orange);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.faq-answer {
  color: var(--mhw-text-muted);
  line-height: 1.8;
}

/* ========================================
   Security Notice
======================================== */
.security-notice {
  background: rgba(15, 52, 96, 0.3);
  border: 2px solid var(--mhw-brown-light);
  border-radius: 8px;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.notice-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.notice-content h3 {
  color: var(--mhw-orange);
  margin: 0 0 0.5rem 0;
  font-size: 1.3rem;
}

.notice-content p {
  color: var(--mhw-text-muted);
  margin: 0;
  line-height: 1.8;
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 768px) {
  .main-container {
    padding: 0 1rem;
  }

  .page-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .current-credits-card {
    padding: 1.5rem 2rem;
  }

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

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

  .plan-card {
    padding: 1.5rem;
  }

  .plan-price {
    font-size: 2.5rem;
  }

  .security-notice {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

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

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

  .page-description {
    font-size: 0.9rem;
  }

  .current-credits-card {
    padding: 1rem 1.5rem;
    width: 100%;
  }

  .current-number {
    font-size: 2rem;
  }

  .pricing-section h2,
  .faq-section h2 {
    font-size: 1.5rem;
  }

  .plan-name {
    font-size: 1.3rem;
  }

  .plan-price {
    font-size: 2rem;
  }

  .faq-item {
    padding: 1rem;
  }

  .faq-question {
    font-size: 1rem;
  }

  .faq-answer {
    font-size: 0.9rem;
  }
}
