/* ========================================
   Benefit Page - Clean & Professional
   ======================================== */

.benefit-page {
  padding: 0 0 60px;
}

/* ========================================
   Banner Section
   ======================================== */
.benefit-banner {
  margin: 0 calc(-1 * var(--spacing-lg)) 24px;
  aspect-ratio: 1005 / 480;
  overflow: hidden;
  border-radius: 0 0 16px 16px;
}

.benefit-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========================================
   Header
   ======================================== */
.benefit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
  margin-bottom: 24px;
}

.merchant-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.merchant-logo {
  width: 86px;
  height: 56px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.merchant-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px 8px;
}

.merchant-text h1 {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  margin: 0 0 2px 0;
  line-height: 1.3;
}

.merchant-text .category {
  font-size: 12px;
  color: #888;
}

.btn-go {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  background: var(--color-primary);
  color: #222;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn-go:hover,
.btn-go:focus-visible {
  opacity: 0.85;
}

.btn-go:focus-visible {
  outline: 2px solid #222;
  outline-offset: 2px;
}

/* ========================================
   Reward Section
   ======================================== */
.reward-section {
  margin-bottom: 32px;
}

.reward-box {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.reward-label {
  font-size: 13px;
  color: #666;
}

.reward-value {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.reward-value .number {
  font-size: 36px;
  font-weight: 800;
  color: #F1574D;
  line-height: 1;
  letter-spacing: -1px;
}

.reward-value .unit {
  font-size: 20px;
  font-weight: 700;
  color: #F1574D;
}

.reward-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: #888;
  line-height: 1.5;
}

/* ========================================
   Process Section
   ======================================== */
.process-section {
  margin-bottom: 32px;
}

.process-section h2 {
  font-size: 15px;
  font-weight: 700;
  color: #222;
  margin: 0 0 16px 0;
}

.process-flow {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 12px;
}

.process-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.process-num {
  width: 32px;
  height: 32px;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #666;
}

.process-item:last-child .process-num {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #222;
}

.process-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.process-text strong {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.process-text span {
  font-size: 11px;
  color: #888;
  line-height: 1.4;
}

.process-line {
  width: 24px;
  height: 2px;
  background: #ddd;
  margin-top: 15px;
  flex-shrink: 0;
}

/* ========================================
   Notice Section
   ======================================== */
.notice-section {
  margin-bottom: 24px;
}

.notice-section h2 {
  font-size: 15px;
  font-weight: 700;
  color: #222;
  margin: 0 0 12px 0;
}

.notice-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.notice-list li {
  position: relative;
  padding: 10px 0 10px 14px;
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  border-bottom: 1px solid #f0f0f0;
}

.notice-list li:last-child {
  border-bottom: none;
}

.notice-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 4px;
  height: 4px;
  background: #bbb;
  border-radius: 50%;
}

/* Callout Warning Box (적립 제외 조건) */
.callout-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.callout-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  background: #fff7ed;
  border-radius: 8px;
  font-size: 13px;
  color: #c2410c;
  line-height: 1.6;
}

.callout-item svg {
  flex-shrink: 0;
  color: #f59e0b;
  margin-top: 2px;
}

/* HTML Content */
.notice-content {
  font-size: 13px;
  color: #555;
  line-height: 1.7;
}

.notice-content > ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.notice-content > ul > li {
  position: relative;
  padding: 10px 0 10px 14px;
  border-bottom: 1px solid #f0f0f0;
}

.notice-content > ul > li:last-child {
  border-bottom: none;
}

.notice-content > ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 4px;
  height: 4px;
  background: #bbb;
  border-radius: 50%;
}

.notice-content hr {
  border: none;
  border-top: 1px solid #f0f0f0;
  margin: 0;
}

/* Nested list styles */
.notice-content ul ul {
  padding-left: 20px;
  margin: 5px 0 0 0;
}

.notice-content ul ul li {
  padding: 4px 0;
  border-bottom: none;
}

.notice-content ul ul li::before {
  display: none;
}

.notice-content strong {
  color: #333;
  font-weight: 600;
}

.notice-content h3,
.notice-content h4 {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin: 20px 0 8px 0;
}

.notice-content h3:first-child,
.notice-content h4:first-child {
  margin-top: 0;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}

/* ========================================
   Related Merchants Section
   ======================================== */
.related-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #eee;
}

.related-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.related-header h2 {
  font-size: 16px;
  font-weight: 700;
  color: #222;
  margin: 0;
}

.related-header .view-all {
  font-size: 13px;
  color: #666;
  text-decoration: none;
}

.related-header .view-all:hover,
.related-header .view-all:focus-visible {
  color: #222;
  text-decoration: underline;
}

.related-header .view-all:focus-visible {
  outline: 2px solid #fcba03;
  outline-offset: 2px;
}

.related-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 0 12px;
}

.related-scroll::-webkit-scrollbar {
  display: none;
}

.related-scroll.dragging {
  user-select: none;
}

.related-card {
  flex-shrink: 0;
  width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  background: #f9f9f9;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s;
}

.related-card:hover,
.related-card:focus-visible {
  background: #f0f0f0;
}

.related-card:focus-visible {
  outline: 2px solid #fcba03;
  outline-offset: 2px;
}

.related-logo {
  width: 88px;
  height: 56px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.related-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.related-name {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  text-align: center;
  line-height: 1.3;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-rate {
  font-size: 14px;
  color: #888;
}

.related-rate strong {
  color: #F1574D;
  font-weight: 700;
}

.btn-app {
  width: 100%;
  padding: 16px;
  background: #222;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-app:hover,
.btn-app:focus-visible {
  background: #333;
}

.btn-app:focus-visible {
  outline: 2px solid #fcba03;
  outline-offset: 2px;
}

/* ========================================
   Empty State
   ======================================== */
.benefit-empty {
  text-align: center;
  padding: 80px 20px;
}

.empty-icon {
  color: #ccc;
  margin-bottom: 20px;
}

.benefit-empty h2 {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin: 0 0 8px 0;
}

.benefit-empty p {
  font-size: 14px;
  color: #888;
  margin: 0 0 24px 0;
}

.btn-back {
  display: inline-block;
  padding: 12px 24px;
  background: var(--color-primary);
  color: #222;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn-back:hover,
.btn-back:focus-visible {
  opacity: 0.85;
}

.btn-back:focus-visible {
  outline: 2px solid #222;
  outline-offset: 2px;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 480px) {
  .benefit-page {
    padding: 0 0 40px;
  }

  .benefit-banner {
    margin: 0 calc(-1 * var(--spacing-md)) 20px;
    border-radius: 0 0 12px 12px;
  }

  .benefit-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .btn-go {
    width: 100%;
    justify-content: center;
  }

  .merchant-logo {
    width: 72px;
    height: 47px;
  }

  .merchant-text h1 {
    font-size: 16px;
  }

  .reward-value .number {
    font-size: 32px;
  }

  .reward-value .unit {
    font-size: 18px;
  }

  .process-flow {
    gap: 4px;
    padding: 12px 8px;
  }

  .process-item {
    gap: 6px;
  }

  .process-num {
    width: 26px;
    height: 26px;
    font-size: 11px;
  }

  .process-line {
    width: 8px;
    margin-top: 12px;
  }

  .process-text strong {
    font-size: 12px;
  }

  .process-text span {
    font-size: 11px;
  }

  .callout-item {
    padding: 8px 12px;
    font-size: 12px;
  }

  .notice-section h2 {
    font-size: 14px;
  }

  .notice-list li,
  .notice-content > ul > li {
    font-size: 12px;
    padding-left: 12px;
  }

  .notice-list li::before,
  .notice-content > ul > li::before {
    width: 3px;
    height: 3px;
    top: 18px;
  }

  .notice-content ul ul li {
    font-size: 12px;
  }

  .benefit-page {
    padding-bottom: 80px;
  }

  .related-section {
    margin-top: 32px;
    padding-top: 24px;
  }

  .related-header h2 {
    font-size: 15px;
  }

  .related-scroll {
    gap: 12px;
  }

  .related-card {
    width: 100px;
    padding: 14px 10px;
  }

  .related-logo {
    width: 64px;
    height: 42px;
  }

  .related-name {
    font-size: 11px;
  }

  .related-rate {
    font-size: 13px;
  }
}
