/*
 * SK Finance — theme entry.
 * Page-specific layouts, content styles, and WP overrides.
 * Tokens, base, and components are enqueued separately via wp_enqueue_style.
 */

/* ════════════════════════════════════════════════════════════════════════════
   SINGLE BLOG POST — Reading progress bar
   ════════════════════════════════════════════════════════════════════════════ */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--grad-gold);
  z-index: 200;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

/* ════════════════════════════════════════════════════════════════════════════
   SINGLE BLOG POST — Hero
   ════════════════════════════════════════════════════════════════════════════ */

.article-hero {
  padding: 56px 0 0;
  background: var(--grad-hero);
}

.article-hero-inner {
  max-width: 800px;
  margin-inline: auto;
  padding: 0 var(--gutter);
  text-align: center;
}

.article-category-link {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-decoration: none;
  padding: 5px 14px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 100px;
  margin-bottom: var(--sp-6);
  transition: all var(--t-fast) var(--ease);
}
.article-category-link:hover {
  background: var(--gold-glow);
  border-color: var(--gold);
}

.article-hero-inner h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-6);
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-6);
  flex-wrap: wrap;
  margin-bottom: var(--sp-8);
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 13px;
  color: var(--text-muted);
}
.article-meta-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.article-meta-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border-strong);
}

/* ════════════════════════════════════════════════════════════════════════════
   SINGLE BLOG POST — Cover image (full-width cinematic)
   ════════════════════════════════════════════════════════════════════════════ */

.article-cover {
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  position: relative;
  background: var(--surface-2);
}
@media (max-width: 768px) {
  .article-cover {
    aspect-ratio: 16 / 9;
  }
}
.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11, 10, 8, 0.15) 0%,
    transparent 40%,
    transparent 70%,
    rgba(11, 10, 8, 0.6) 100%
  );
}

/* ════════════════════════════════════════════════════════════════════════════
   SINGLE BLOG POST — Article body
   ════════════════════════════════════════════════════════════════════════════ */

.article-body {
  padding: var(--sp-16) 0 var(--sp-24);
}

.article-body-inner {
  max-width: 740px;
  margin-inline: auto;
  padding: 0 var(--gutter);
}

/* Post content typography */
.post-content {
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.85;
}
.post-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3vw, 34px);
  margin: var(--sp-12) 0 var(--sp-4);
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.post-content h3 {
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 600;
  margin: var(--sp-8) 0 var(--sp-3);
  color: var(--text-primary);
}
.post-content p {
  margin-bottom: 1.6em;
}
.post-content a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post-content ul,
.post-content ol {
  padding-left: var(--sp-6);
  margin-bottom: 1.6em;
}
.post-content li {
  margin-bottom: var(--sp-3);
}
.post-content blockquote {
  border-left: 3px solid var(--gold);
  padding: var(--sp-6) var(--sp-8);
  margin: var(--sp-10) 0;
  background: var(--surface-2);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--text-primary);
  position: relative;
}
.post-content blockquote::before {
  content: '\201C';
  position: absolute;
  top: -8px;
  left: var(--sp-6);
  font-size: 72px;
  color: var(--gold);
  opacity: 0.3;
  font-family: 'Playfair Display', serif;
  line-height: 1;
}
.post-content blockquote p {
  color: var(--text-primary);
  margin: 0;
}
.post-content code {
  font-family: 'Courier New', monospace;
  font-size: 0.88em;
  background: var(--surface-3);
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--gold);
}
.post-content pre {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--sp-6);
  overflow-x: auto;
  margin-bottom: 1.6em;
}
.post-content pre code {
  background: none;
  padding: 0;
  color: var(--text-primary);
}
.post-content figure {
  margin: var(--sp-10) 0;
}
.post-content figure img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.post-content figcaption {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-top: var(--sp-3);
}
.post-content hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-strong), transparent);
  margin: var(--sp-12) 0;
}

/* Inline images within content */
.post-content img {
  max-width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin: var(--sp-6) 0;
}

/* Post footer divider */
.article-footer-divider {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin: var(--sp-12) 0 var(--sp-8);
}
.article-footer-divider::before,
.article-footer-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.article-footer-divider-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold-glow);
  border: 1px solid rgba(212, 175, 55, 0.25);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.article-footer-divider-icon svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
}

/* Post tags */
.post-tags {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-bottom: var(--sp-8);
}
.post-tag {
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--t-fast) var(--ease);
  letter-spacing: 0.03em;
}
.post-tag:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-glow);
}

/* Author bio card */
.author-bio {
  display: flex;
  gap: var(--sp-6);
  align-items: center;
  padding: var(--sp-6) var(--sp-8);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}
.author-bio::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--grad-gold);
}
.author-bio-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--border-strong);
}
.author-bio-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  border: none;
  border-radius: 0;
}
.author-bio-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: var(--sp-1);
}
.author-bio-role {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: var(--sp-2);
}
.author-bio-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Back to blog link */
.back-to-blog {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: var(--sp-6);
  transition: color var(--t-fast) var(--ease);
}
.back-to-blog:hover {
  color: var(--gold);
}
.back-to-blog svg {
  width: 14px;
  height: 14px;
  transition: transform var(--t-fast) var(--ease);
}
.back-to-blog:hover svg {
  transform: translateX(-3px);
}

/* ════════════════════════════════════════════════════════════════════════════
   SINGLE BLOG POST — Related articles
   ════════════════════════════════════════════════════════════════════════════ */

.related-posts-section {
  padding: var(--sp-16) 0;
  background: var(--surface-1);
  border-top: 1px solid var(--border);
}

/* Legacy compat — kept for other templates that still reference these */
.single-post-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--sp-12);
  align-items: start;
}
@media (max-width: 1024px) {
  .single-post-layout {
    grid-template-columns: 1fr;
  }
}
.post-cover {
  aspect-ratio: 16 / 7;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--sp-8);
  background: var(--surface-2);
}
.post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ════════════════════════════════════════════════════════════════════════════
   ABOUT PAGE
   ════════════════════════════════════════════════════════════════════════════ */

.about-hero {
  padding: var(--section-pad-desktop) 0;
  background: var(--grad-hero);
}
.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--sp-16);
  align-items: center;
}
.about-portrait {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
  border: 1px solid var(--border-strong);
  overflow: hidden;
  position: relative;
}
.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(11,10,8,0.4));
  pointer-events: none;
}
.about-credentials {
  margin-top: var(--sp-8);
  padding: var(--sp-6);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.about-credentials dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-2) var(--sp-6);
  margin: 0;
}
.about-credentials dt {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding-top: 2px;
}
.about-credentials dd {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

@media (max-width: 1024px) {
  .about-hero-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }
  .about-portrait {
    max-width: 360px;
    margin-inline: auto;
  }
}


/* ════════════════════════════════════════════════════════════════════════════
   SERVICES PAGE (archive)
   ════════════════════════════════════════════════════════════════════════════ */

.service-archive-hero {
  padding: 80px 0;
  background: var(--grad-hero);
  text-align: center;
}

.single-service-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--sp-12);
  align-items: start;
}
@media (max-width: 1024px) {
  .single-service-layout {
    grid-template-columns: 1fr;
  }
}

.service-sticky-cta {
  position: sticky;
  top: calc(var(--header-h-scrolled) + var(--sp-6));
  padding: var(--sp-8);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.service-sticky-cta h3 {
  font-size: 22px;
  margin-bottom: var(--sp-4);
}
.service-sticky-cta p {
  font-size: 14px;
  margin-bottom: var(--sp-6);
}


/* ════════════════════════════════════════════════════════════════════════════
   CONTACT PAGE
   ════════════════════════════════════════════════════════════════════════════ */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: start;
}
@media (max-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-info-item {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-item:last-child {
  border-bottom: none;
}
.contact-info-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--gold-glow);
  display: grid;
  place-items: center;
  color: var(--gold);
  flex-shrink: 0;
}
.contact-info-icon svg {
  width: 18px;
  height: 18px;
}
.contact-info-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.contact-info-value {
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 500;
}
.contact-info-value a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}
.contact-info-value a:hover {
  color: var(--gold);
}
.contact-info-link {
  color: inherit;
  text-decoration: none;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.contact-info-link:hover,
.contact-info-link:focus-visible {
  border-color: var(--glass-border-hover);
  background: rgba(212, 175, 55, 0.04);
}

.map-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: var(--sp-8);
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: 300px;
}


/* ════════════════════════════════════════════════════════════════════════════
   SEARCH RESULTS
   ════════════════════════════════════════════════════════════════════════════ */

.search-hero {
  padding: 60px 0;
  background: var(--surface-1);
  border-bottom: 1px solid var(--border);
}
.search-hero h1 {
  font-size: clamp(24px, 4vw, 40px);
  margin-bottom: var(--sp-4);
}
.search-hero .search-summary {
  color: var(--text-muted);
  font-size: 15px;
}
.search-hero .search-summary strong {
  color: var(--gold);
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  margin-top: var(--sp-8);
}
.search-result-item {
  padding: var(--sp-6);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: border-color var(--t-fast) var(--ease);
}
.search-result-item:hover {
  border-color: var(--border-strong);
}
.search-result-item h2 {
  font-size: clamp(18px, 2.5vw, 22px);
  margin-bottom: var(--sp-2);
}
.search-result-item h2 a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}
.search-result-item h2 a:hover {
  color: var(--gold);
}
.search-result-item .result-type {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: var(--sp-2);
}
.search-result-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
}


/* ════════════════════════════════════════════════════════════════════════════
   GENERIC PAGE CONTENT
   ════════════════════════════════════════════════════════════════════════════ */

.page-hero {
  padding: 80px 0 60px;
  background: var(--grad-hero);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  margin-bottom: var(--sp-4);
}
.page-content-area {
  padding: var(--section-pad-desktop) 0;
}
.page-content-area .post-content {
  max-width: 800px;
}

/* Legal pages (privacy, cookies, GDPR) */
.legal-content {
  max-width: 800px;
  margin-inline: auto;
}
.legal-content h2 {
  font-size: clamp(20px, 3vw, 28px);
  margin: var(--sp-8) 0 var(--sp-4);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--border);
}
.legal-content h2:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}


/* ════════════════════════════════════════════════════════════════════════════
   COMMENTS
   ════════════════════════════════════════════════════════════════════════════ */

.comments-section {
  margin-top: var(--sp-12);
  padding-top: var(--sp-12);
  border-top: 1px solid var(--border);
}
.comments-title {
  font-size: clamp(20px, 3vw, 28px);
  margin-bottom: var(--sp-8);
}
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-8);
}
.comment {
  padding: var(--sp-6);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
  margin-bottom: var(--sp-4);
}
.comment-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.comment-header {
  display: flex;
  gap: var(--sp-3);
  align-items: center;
  margin-bottom: var(--sp-3);
}
.comment-author-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}
.comment-date {
  font-size: 12px;
  color: var(--text-muted);
}
.comment-text p {
  font-size: 14px;
  margin: 0;
}
