/*
Theme Name: Cropper Blog
Theme URI: https://cropper.video
Author: After Video Inc.
Author URI: https://cropper.video
Description: Custom WordPress theme matching cropper.video — dark, Inter, orange accent.
Version: 1.0.0
License: Proprietary
Text Domain: cropper-blog
*/

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #080808;
  --surface:  #111113;
  --panel:    #18181b;
  --border:   #2a2a2e;
  --orange:   #c8873a;
  --orange-h: #e09a4a;
  --text:     #f0ede8;
  --muted:    #8a8a94;
  --subtle:   #28282d;
  --radius:   12px;
  --font:     'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-h); }

img { max-width: 100%; display: block; }

/* ── Ticker ── */
.ticker-wrap {
  width: 100%;
  background: var(--orange);
  overflow: hidden;
  padding: 8px 0;
  position: relative;
  z-index: 100;
}
.ticker {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
  will-change: transform;
}
.ticker span {
  display: inline-block;
  padding: 0 28px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #080808;
}
.ticker span::after {
  content: '·';
  margin-left: 28px;
  opacity: 0.4;
}
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Nav ── */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 32px;
  height: 64px;
  background: rgba(8,8,8,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo em { color: var(--orange); font-style: normal; }
.nav-logo img { width: 32px; height: 32px; border-radius: 7px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  flex-wrap: wrap;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--orange); }
.nav-cta {
  background: var(--orange) !important;
  color: #080808 !important;
  padding: 8px 18px !important;
  border-radius: 20px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  transition: background 0.15s !important;
}
.nav-cta:hover { background: var(--orange-h) !important; }

/* ── Page header ── */
.page-header {
  padding: 80px 32px 48px;
  max-width: 860px;
  margin: 0 auto;
}
.page-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}
.page-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text);
}
.page-title em { color: var(--orange); font-style: normal; }
.page-desc {
  margin-top: 16px;
  font-size: 16px;
  color: var(--muted);
  max-width: 560px;
}

/* ── Post grid ── */
.posts-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* ── Post card ── */
.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}
.post-card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--subtle);
}
.post-card-thumb-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-card-thumb-placeholder span {
  font-size: 32px;
  opacity: 0.2;
}
.post-card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-card-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}
.post-card-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 10px;
}
.post-card-title a { color: inherit; text-decoration: none; }
.post-card-title a:hover { color: var(--orange); }
.post-card-excerpt {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-size: 11px;
  color: var(--muted);
}
.post-card-meta .sep { opacity: 0.3; }
.post-card-read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--orange);
  text-decoration: none;
}
.post-card-read:hover { color: var(--orange-h); }

/* ── Single post ── */
.single-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px 100px;
}
.single-header {
  padding: 64px 0 40px;
}
.single-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}
.single-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 20px;
}
.single-meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.single-meta .sep { opacity: 0.3; }
.single-thumb {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 48px;
  border: 1px solid var(--border);
}

/* ── Post content typography ── */
.post-content {
  font-size: 16px;
  line-height: 1.8;
  color: #ccc8c2;
}
.post-content h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 48px 0 16px;
}
.post-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 36px 0 12px;
}
.post-content p { margin-bottom: 24px; }
.post-content a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.post-content ul, .post-content ol {
  padding-left: 24px;
  margin-bottom: 24px;
}
.post-content li { margin-bottom: 8px; }
.post-content blockquote {
  border-left: 3px solid var(--orange);
  padding: 16px 24px;
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 32px 0;
  font-style: italic;
  color: var(--text);
}
.post-content img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 32px 0;
}
.post-content code {
  background: var(--subtle);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 13px;
  font-family: 'SF Mono', 'Fira Code', monospace;
}
.post-content pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  overflow-x: auto;
  margin: 32px 0;
}
.post-content pre code {
  background: none;
  border: none;
  padding: 0;
}
.post-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

/* ── Comments ── */
.comments-section {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.comments-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 32px;
}
.comment-list { list-style: none; }
.comment-body-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.comment-author-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.comment-date {
  font-size: 11px;
  color: var(--muted);
  margin-left: 8px;
}
.comment-text {
  font-size: 14px;
  color: #ccc8c2;
  margin-top: 8px;
  line-height: 1.6;
}
.comment-reply-link {
  font-size: 11px;
  color: var(--orange);
  margin-top: 8px;
  display: inline-block;
}
.children {
  list-style: none;
  padding-left: 24px;
}

/* ── Comment form ── */
.comment-respond {
  margin-top: 48px;
}
.comment-reply-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
}
.comment-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  font-family: var(--font);
  margin-bottom: 16px;
  outline: none;
  transition: border-color 0.15s;
}
.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--orange);
}
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form input[type="submit"] {
  background: var(--orange);
  color: #080808;
  border: none;
  border-radius: 24px;
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.15s;
}
.comment-form input[type="submit"]:hover { background: var(--orange-h); }

/* ── Pagination ── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 32px 80px;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  transition: all 0.15s;
}
.pagination a:hover { border-color: var(--orange); color: var(--orange); }
.pagination span.current { background: var(--orange); color: #080808; border-color: var(--orange); }

/* ── CTA banner ── */
.blog-cta {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 32px;
  text-align: center;
  margin: 64px 0 0;
}
.blog-cta h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 12px;
}
.blog-cta h2 em { color: var(--orange); font-style: normal; }
.blog-cta p { font-size: 15px; color: var(--muted); margin-bottom: 24px; }
.btn-gold {
  display: inline-block;
  background: var(--orange);
  color: #080808;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: 24px;
  text-decoration: none;
  margin: 4px;
  transition: background 0.15s;
}
.btn-gold:hover { background: var(--orange-h); color: #080808; }
.btn-outline {
  display: inline-block;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: 24px;
  text-decoration: none;
  margin: 4px;
  transition: border-color 0.15s;
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }

/* ── Footer ── */
footer {
  padding: 48px 32px 40px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  text-decoration: none;
}
.footer-logo em { color: var(--orange); font-style: normal; }
.footer-logo img { width: 28px; height: 28px; border-radius: 6px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: center;
}
.footer-links a {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); }
.footer-copy {
  font-size: 11px;
  color: var(--border);
  letter-spacing: 0.04em;
}

/* ── Search form ── */
.search-form {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto 48px;
}
.search-form input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text);
  font-family: var(--font);
  outline: none;
}
.search-form input:focus { border-color: var(--orange); }
.search-form button {
  background: var(--orange);
  color: #080808;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 13px;
  font-family: var(--font);
  cursor: pointer;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .top-nav { padding: 0 20px; gap: 16px; }
  .nav-links { gap: 14px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .posts-grid { padding: 0 20px 60px; grid-template-columns: 1fr; }
  .page-header { padding: 48px 20px 32px; }
  .single-wrap { padding: 0 20px 80px; }
  .blog-cta { padding: 48px 20px; }
  footer { padding: 40px 20px 32px; }
}
