/*
Theme Name: FreezeDry Guide Theme
Theme URI: https://freezedryguide.stofarm.com
Description: Premium freeze-dry guide theme
Author: FreezeDry Guide
Version: 1.0
Template: twentytwentyfive
Text Domain: freezedry-theme
*/

:root {
  --fd-primary: #1a3a5c;
  --fd-primary-light: #2c5f8a;
  --fd-accent: #3d8ecf;
  --fd-accent-light: #5ba8e6;
  --fd-bg: #f8fafb;
  --fd-bg-card: #ffffff;
  --fd-text: #1e293b;
  --fd-text-light: #64748b;
  --fd-text-muted: #94a3b8;
  --fd-border: #e2e8f0;
  --fd-border-light: #f1f5f9;
  --fd-success: #10b981;
  --fd-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --fd-shadow: 0 4px 16px rgba(26,58,92,0.08);
  --fd-shadow-lg: 0 8px 32px rgba(26,58,92,0.12);
  --fd-radius: 12px;
  --fd-radius-sm: 8px;
  --fd-radius-lg: 16px;
  --fd-font-heading: "Pretendard", "Noto Sans KR", -apple-system, sans-serif;
  --fd-font-body: "Pretendard", "Noto Sans KR", -apple-system, sans-serif;
  --fd-content-width: 780px;
  --fd-wide-width: 1200px;
  --fd-transition: 200ms ease;
}

* { box-sizing: border-box; }

body {
  font-family: var(--fd-font-body);
  color: var(--fd-text);
  background: var(--fd-bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* WordPress chrome removal */
.wp-site-blocks > .wp-block-template-part:first-child,
.wp-site-blocks > header,
.site-header,
.wp-block-template-part[data-slug="header"],
#masthead { display: none !important; }

.wp-site-blocks > .wp-block-template-part:last-child,
.wp-site-blocks > footer,
.site-footer,
.wp-block-template-part[data-slug="footer"],
#colophon { display: none !important; }

.wp-block-post-comments-form,
.comments-area,
.wp-block-comments { display: none !important; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--fd-font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--fd-primary);
  letter-spacing: -0.02em;
}

.entry-content h2,
.wp-block-post-content h2 {
  font-size: 1.65rem;
  margin: 56px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--fd-accent);
  position: relative;
}

.entry-content h3,
.wp-block-post-content h3 {
  font-size: 1.3rem;
  margin: 40px 0 16px;
  color: var(--fd-primary-light);
  padding-left: 14px;
  border-left: 3px solid var(--fd-accent);
}

/* Content */
.entry-content,
.wp-block-post-content {
  font-size: 17px;
  line-height: 1.8;
  max-width: var(--fd-content-width);
  margin: 0 auto;
  padding: 0 24px;
}

.entry-content p { margin-bottom: 1.5em; }

.entry-content img,
.wp-block-post-content img {
  border-radius: var(--fd-radius);
  max-width: 100%;
  height: auto;
}

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

/* Tables */
.entry-content table,
.wp-block-post-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--fd-radius);
  overflow: hidden;
  margin: 24px 0;
  box-shadow: var(--fd-shadow-sm);
  font-size: 0.92em;
}

.entry-content table thead th {
  background: var(--fd-primary);
  color: #fff;
  font-weight: 600;
  padding: 14px 16px;
  text-align: left;
  border: none;
}

.entry-content table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--fd-border-light);
  background: #fff;
}

.entry-content table tbody tr:last-child td { border-bottom: none; }
.entry-content table tbody tr:hover td { background: #f0f7ff; }

/* Blockquotes */
.entry-content blockquote {
  background: linear-gradient(135deg, #f0f7ff 0%, #f8fafb 100%);
  border-left: 4px solid var(--fd-accent);
  border-radius: 0 var(--fd-radius) var(--fd-radius) 0;
  padding: 24px 28px;
  margin: 32px 0;
  font-style: normal;
  color: var(--fd-primary);
}

/* Lists */
.entry-content ul { padding-left: 0; list-style: none; }
.entry-content ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
}
.entry-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fd-accent);
}

.entry-content ol { padding-left: 24px; }
.entry-content ol li { margin-bottom: 8px; }

/* Legal notices */
.legal-notice {
  font-size: 0.85em !important;
  color: #777 !important;
  background: #f8f9fa !important;
  border-left: 3px solid #cbd5e1 !important;
  padding: 10px 14px !important;
  margin-top: 2em !important;
  border-radius: 0 6px 6px 0 !important;
}

.ai-notice {
  font-size: 0.85em !important;
  color: #888 !important;
  margin-top: 2em !important;
}

/* Responsive */
@media (max-width: 768px) {
  .entry-content, .wp-block-post-content {
    font-size: 16px;
    padding: 0 16px;
  }
  .entry-content h2 { font-size: 1.4rem; margin-top: 40px; }
  .entry-content h3 { font-size: 1.15rem; margin-top: 32px; }
  .entry-content table { font-size: 0.85em; display: block; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
