<!DOCTYPE html>
<html lang="ko">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>브랜드 검토 결과 | 제이미성형외과</title>
  <style>
    @import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

    :root {
      --jamie-green: #79A233;
      --jamie-light-green: #AFCC6D;
      --jamie-main: #6d7856;
      --jamie-black: #000000;
      --jamie-white: #FFFFFF;
      --jamie-gray: #f5f5f5;
      --status-pass: #22c55e;
      --status-warn: #f59e0b;
      --status-fail: #ef4444;
    }

    * { margin: 0; padding: 0; box-sizing: border-box; }

    body {
      font-family: 'Pretendard', sans-serif;
      background: var(--jamie-gray);
      padding: 40px 20px;
      min-height: 100vh;
    }

    .container {
      max-width: 800px;
      margin: 0 auto;
      background: var(--jamie-white);
      border-radius: 16px;
      box-shadow: 0 4px 24px rgba(0,0,0,0.1);
      overflow: hidden;
    }

    /* Header */
    .header {
      background: var(--jamie-black);
      color: var(--jamie-white);
      padding: 32px;
      text-align: center;
    }

    .header-logo {
      width: 48px;
      height: 48px;
      background: var(--jamie-green);
      border-radius: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
      font-weight: bold;
      margin-bottom: 16px;
    }

    .header h1 {
      font-size: 24px;
      margin-bottom: 8px;
    }

    .header .subtitle {
      color: var(--jamie-main);
      font-size: 14px;
    }

    /* Score Section */
    .score-section {
      padding: 32px;
      text-align: center;
      border-bottom: 1px solid var(--jamie-gray);
    }

    .score-circle {
      width: 140px;
      height: 140px;
      border-radius: 50%;
      display: inline-flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      margin-bottom: 16px;
    }

    .score-pass { background: linear-gradient(135deg, var(--status-pass), #16a34a); }
    .score-warn { background: linear-gradient(135deg, var(--status-warn), #d97706); }
    .score-fail { background: linear-gradient(135deg, var(--status-fail), #dc2626); }

    .score-number {
      font-size: 48px;
      font-weight: 700;
      color: var(--jamie-white);
    }

    .score-label {
      font-size: 14px;
      color: rgba(255,255,255,0.8);
    }

    .score-text {
      font-size: 18px;
      font-weight: 600;
      color: var(--jamie-black);
    }

    /* Criteria Grid */
    .criteria-section {
      padding: 32px;
    }

    .section-title {
      font-size: 18px;
      font-weight: 700;
      margin-bottom: 20px;
      color: var(--jamie-black);
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .section-title::before {
      content: '';
      width: 4px;
      height: 20px;
      background: var(--jamie-green);
      border-radius: 2px;
    }

    .criteria-grid {
      display: grid;
      gap: 12px;
    }

    .criteria-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 16px;
      background: var(--jamie-gray);
      border-radius: 8px;
    }

    .criteria-name {
      font-weight: 500;
    }

    .criteria-status {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .status-icon {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      color: var(--jamie-white);
    }

    .status-pass { background: var(--status-pass); }
    .status-warn { background: var(--status-warn); }
    .status-fail { background: var(--status-fail); }

    /* Issues Section */
    .issues-section {
      padding: 0 32px 32px;
    }

    .issue-card {
      background: #fef2f2;
      border-left: 4px solid var(--status-fail);
      padding: 16px;
      border-radius: 0 8px 8px 0;
      margin-bottom: 12px;
    }

    .issue-card.warning {
      background: #fffbeb;
      border-left-color: var(--status-warn);
    }

    .issue-title {
      font-weight: 600;
      margin-bottom: 4px;
      font-size: 14px;
    }

    .issue-original {
      background: rgba(0,0,0,0.05);
      padding: 8px 12px;
      border-radius: 4px;
      font-size: 14px;
      margin: 8px 0;
      color: #666;
    }

    .issue-suggestion {
      font-size: 14px;
      color: var(--jamie-green);
    }

    .issue-suggestion strong {
      color: var(--jamie-black);
    }

    /* Recommendations */
    .recommendations-section {
      padding: 0 32px 32px;
    }

    .recommendation-list {
      list-style: none;
    }

    .recommendation-list li {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      padding: 12px 0;
      border-bottom: 1px solid var(--jamie-gray);
    }

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

    .rec-icon {
      width: 24px;
      height: 24px;
      background: var(--jamie-light-green);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      color: var(--jamie-green);
      font-size: 12px;
    }

    /* Footer */
    .footer {
      background: var(--jamie-gray);
      padding: 24px 32px;
      text-align: center;
      font-size: 12px;
      color: var(--jamie-main);
    }

    .footer strong {
      color: var(--jamie-black);
    }

    /* Print */
    @media print {
      body { background: white; padding: 0; }
      .container { box-shadow: none; }
    }
  </style>
</head>
<body>
  <div class="container">
    <!-- Header -->
    <div class="header">
      <div class="header-logo">J</div>
      <h1>브랜드 검토 결과</h1>
      <p class="subtitle">Brand Compliance Review | {{DATE}}</p>
    </div>

    <!-- Score -->
    <div class="score-section">
      <div class="score-circle {{SCORE_CLASS}}">
        <span class="score-number">{{SCORE}}</span>
        <span class="score-label">/ 100</span>
      </div>
      <p class="score-text">{{SCORE_MESSAGE}}</p>
    </div>

    <!-- Criteria -->
    <div class="criteria-section">
      <h2 class="section-title">검토 항목</h2>
      <div class="criteria-grid">
        {{CRITERIA_ITEMS}}
      </div>
    </div>

    <!-- Issues -->
    <div class="issues-section">
      <h2 class="section-title">수정 필요 사항</h2>
      {{ISSUES}}
    </div>

    <!-- Recommendations -->
    <div class="recommendations-section">
      <h2 class="section-title">권장 사항</h2>
      <ul class="recommendation-list">
        {{RECOMMENDATIONS}}
      </ul>
    </div>

    <!-- Footer -->
    <div class="footer">
      <strong>제이미성형외과</strong> Brand Guardian<br>
      본 검토는 브랜드 가이드라인 v1.0 기준으로 수행되었습니다.
    </div>
  </div>
</body>
</html>
