@layer base, layout, components, utilities, pages;

/**
 * Single Content - Shared Styles
 * Clean editorial design for all single post type content
 */

@layer pages {

  /* --------------------------------------------------------------------------
     Design Tokens
     -------------------------------------------------------------------------- */
  :root {
    --sc-max-width: 1080px;
    --sc-content-width: 100%;
    --sc-color-text: #1a1a1a;
    --sc-color-text-secondary: #525252;
    --sc-color-border: #e5e7eb;
    --sc-color-bg: #fafafa;
    --sc-color-surface: #fff;
    --sc-color-accent: #0f172a;
    --sc-font-display: 'Outfit', system-ui, sans-serif;
    --sc-font-body: 'Zen Kaku Gothic New', system-ui, sans-serif;
  }

  /* --------------------------------------------------------------------------
     Single Content Container
     -------------------------------------------------------------------------- */
  .single-content {
    background: var(--sc-color-bg);
    padding: 56px 0 80px;
  }

  .single-content__inner {
    max-width: var(--sc-max-width);
    margin: 0 auto;
    padding: 0 40px;
  }

  /* --------------------------------------------------------------------------
     Entry Content - Typography
     -------------------------------------------------------------------------- */
  .single-content .entry-content {
    font-family: var(--sc-font-body);
    font-size: 16px;
    line-height: 1.9;
    color: var(--sc-color-text-secondary);
  }

  .single-content .entry-content > *:first-child {
    margin-top: 0;
  }

  .single-content .entry-content > *:last-child {
    margin-bottom: 0;
  }

  /* Headings */
  .single-content .entry-content h2 {
    font-family: var(--sc-font-body);
    font-size: 22px;
    font-weight: 600;
    color: var(--sc-color-text);
    margin: 56px 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--sc-color-border);
    letter-spacing: -0.01em;
  }

  .single-content .entry-content h2:first-child {
    margin-top: 0;
  }

  .single-content .entry-content h3 {
    font-family: var(--sc-font-body);
    font-size: 18px;
    font-weight: 600;
    color: var(--sc-color-text);
    margin: 40px 0 16px;
    letter-spacing: -0.01em;
  }

  .single-content .entry-content h4 {
    font-family: var(--sc-font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--sc-color-text);
    margin: 32px 0 12px;
  }

  /* Paragraphs */
  .single-content .entry-content p {
    margin: 0 0 1.5em;
  }

  /* Lists */
  .single-content .entry-content ul,
  .single-content .entry-content ol {
    margin: 1.5em 0;
    padding-left: 1.25em;
  }

  .single-content .entry-content li {
    margin-bottom: 0.5em;
    line-height: 1.8;
  }

  .single-content .entry-content li:last-child {
    margin-bottom: 0;
  }

  /* Images */
  .single-content .entry-content img {
    max-width: 100%;
    height: auto;
    margin: 32px 0;
    border-radius: 4px;
  }

  .single-content .entry-content figure {
    margin: 32px 0;
  }

  .single-content .entry-content figcaption {
    font-size: 13px;
    color: #6b7280;
    margin-top: 8px;
    text-align: center;
  }

  /* Blockquotes */
  .single-content .entry-content blockquote {
    margin: 32px 0;
    padding: 24px 28px;
    background: var(--sc-color-surface);
    border-left: 3px solid var(--sc-color-accent);
    font-style: normal;
  }

  .single-content .entry-content blockquote p:last-child {
    margin-bottom: 0;
  }

  /* Tables */
  .single-content .entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    font-size: 15px;
  }

  .single-content .entry-content th,
  .single-content .entry-content td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--sc-color-border);
  }

  .single-content .entry-content th {
    font-weight: 600;
    color: var(--sc-color-text);
    background: #f9fafb;
  }

  .single-content .entry-content tr:last-child td {
    border-bottom: none;
  }

  /* Code */
  .single-content .entry-content code {
    font-family: 'SF Mono', Consolas, monospace;
    font-size: 0.875em;
    padding: 2px 6px;
    background: #f3f4f6;
    border-radius: 3px;
  }

  .single-content .entry-content pre {
    margin: 32px 0;
    padding: 20px 24px;
    background: #1f2937;
    border-radius: 6px;
    overflow-x: auto;
  }

  .single-content .entry-content pre code {
    background: none;
    padding: 0;
    color: #e5e7eb;
    font-size: 14px;
    line-height: 1.6;
  }

  /* Links */
  .single-content .entry-content a {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s ease;
  }

  .single-content .entry-content a:hover {
    color: #1d4ed8;
  }

  /* --------------------------------------------------------------------------
     Specs Section (Case, Equipment, etc.)
     -------------------------------------------------------------------------- */
  .single-specs {
    background: var(--sc-color-bg);
    padding: 56px 0 0;
  }

  .single-specs__inner {
    max-width: var(--sc-max-width);
    margin: 0 auto;
    padding: 0 40px;
  }

  .single-specs__block {
    background: var(--sc-color-surface);
    border: 1px solid var(--sc-color-border);
    border-radius: 4px;
    padding: 32px 40px;
  }

  .single-specs__heading {
    font-family: var(--sc-font-body);
    font-size: 18px;
    font-weight: 600;
    color: var(--sc-color-text);
    margin: 0 0 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--sc-color-border);
  }

  .single-specs__table {
    width: 100%;
    border-collapse: collapse;
  }

  .single-specs__table th,
  .single-specs__table td {
    padding: 14px 0;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #f3f4f6;
    font-family: var(--sc-font-body);
    font-size: 15px;
  }

  .single-specs__table tr:last-child th,
  .single-specs__table tr:last-child td {
    border-bottom: none;
  }

  .single-specs__table th {
    width: 140px;
    font-weight: 500;
    color: #6b7280;
    padding-right: 24px;
  }

  .single-specs__table td {
    color: var(--sc-color-text);
    font-weight: 500;
  }

  .single-specs__table td p {
    margin: 0;
  }

  .single-specs__table td p + p {
    margin-top: 8px;
  }

  /* --------------------------------------------------------------------------
     Responsive: Tablet
     -------------------------------------------------------------------------- */
  @media (max-width: 900px) {
    .single-content {
      padding: 48px 0 64px;
    }

    .single-content__inner {
      padding: 0 28px;
    }

    .single-specs {
      padding: 48px 0 0;
    }

    .single-specs__inner {
      padding: 0 28px;
    }

    .single-specs__block {
      padding: 28px 32px;
    }
  }

  /* --------------------------------------------------------------------------
     Responsive: Mobile
     -------------------------------------------------------------------------- */
  @media (max-width: 600px) {
    .single-content {
      padding: 40px 0 56px;
    }

    .single-content__inner {
      padding: 0 20px;
    }

    .single-content .entry-content {
      font-size: 15px;
    }

    .single-content .entry-content h2 {
      font-size: 19px;
      margin-top: 40px;
    }

    .single-content .entry-content h3 {
      font-size: 17px;
      margin-top: 32px;
    }

    .single-content .entry-content img {
      margin: 24px 0;
      border-radius: 2px;
    }

    .single-specs {
      padding: 40px 0 0;
    }

    .single-specs__inner {
      padding: 0 20px;
    }

    .single-specs__block {
      padding: 24px;
      border-radius: 2px;
    }

    .single-specs__heading {
      font-size: 16px;
      margin-bottom: 20px;
    }

    .single-specs__table th,
    .single-specs__table td {
      padding: 12px 0;
      font-size: 14px;
    }

    .single-specs__table th {
      width: 100px;
    }
  }
}
