/*
Theme Name: IndoLekoh News
Theme URI: https://indolekohnews.com
Author: IndoLekoh Media
Author URI: https://indolekohnews.com
Description: Tema editorial berita profesional dan majalah jurnalistik independen dengan estetika modern, mode gelap, ticker berita kilat, strip pasar finansial, audio text-to-speech reader, dan markah buku lokal.
Version: 2.8.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: indolekohnews
Tags: news, magazine, blog, editorial, dark-mode, custom-logo, featured-images, translation-ready, accessibility-ready
*/

/* ==============================================================================
   WORDPRESS CORE ALIGNMENT & GUTENBERG CLASSES
   ============================================================================== */
.alignnone {
  margin: 1.5em 0;
}
.aligncenter, div.aligncenter {
  display: block;
  margin: 1.5em auto;
  text-align: center;
}
.alignright {
  float: right;
  margin: 0.5em 0 1.5em 1.5em;
}
.alignleft {
  float: left;
  margin: 0.5em 1.5em 1.5em 0;
}
a img.alignright {
  float: right;
  margin: 0.5em 0 1.5em 1.5em;
}
a img.alignnone {
  margin: 1.5em 0;
}
a img.alignleft {
  float: left;
  margin: 0.5em 1.5em 1.5em 0;
}
a img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  background: var(--bg-secondary, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-md, 8px);
  max-width: 100%;
  padding: 0.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.wp-caption.alignnone {
  margin: 0.5em 0 1.5em;
}
.wp-caption.alignleft {
  margin: 0.5em 1.5em 1.5em 0;
}
.wp-caption.alignright {
  margin: 0.5em 0 1.5em 1.5em;
}
.wp-caption img {
  border: 0 none;
  height: auto;
  margin: 0;
  max-width: 100%;
  padding: 0;
  width: auto;
  border-radius: 4px;
}
.wp-caption p.wp-caption-text {
  font-size: 0.825rem;
  line-height: 1.4;
  color: var(--text-muted, #64748b);
  margin: 0.5rem 0 0.25rem;
  font-style: italic;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* Post Sticky Highlight */
.sticky {
  position: relative;
}
.sticky::after {
  content: "Unggulan";
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent-primary, #dc2626);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 5;
}

/* Pagination Styling — Premium */
.editorial-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 3.5rem 0 2rem;
  flex-wrap: wrap;
}

.editorial-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.85rem;
  border-radius: var(--radius-md, 8px);
  border: 1px solid var(--border-color, #e2e8f0);
  background: var(--bg-card, #ffffff);
  color: var(--text-primary, #090d16);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.editorial-pagination .page-numbers:hover {
  border-color: var(--accent-primary, #dc2626);
  color: var(--accent-primary, #dc2626);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

.editorial-pagination .page-numbers.current {
  background: linear-gradient(135deg, #dc2626, #ea580c);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3);
}

.editorial-pagination .page-numbers.dots {
  background: transparent;
  border: none;
  color: var(--text-muted, #64748b);
  box-shadow: none;
  transform: none;
}

/* WordPress Comments System Custom Styles */
.editorial-comments-area {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-color, #e2e8f0);
}

.editorial-comments-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.editorial-comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 3rem;
}

.editorial-comment-list .comment {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-subtle, #f1f5f9);
}

.editorial-comment-list .comment .comment-body {
  display: flex;
  gap: 1.25rem;
}

.editorial-comment-list .comment-author-avatar img {
  border-radius: 50%;
  border: 2px solid var(--border-color, #e2e8f0);
}

.editorial-comment-list .comment-content {
  flex: 1;
}

.editorial-comment-list .comment-meta {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.editorial-comment-list .comment-author-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.editorial-comment-list .comment-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.editorial-comment-list .comment-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.editorial-comment-list .reply {
  margin-top: 0.5rem;
}

.editorial-comment-list .reply a {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-primary);
  text-decoration: none;
}

.editorial-comment-respond {
  background: var(--bg-secondary, #f8fafc);
  padding: 2rem;
  border-radius: var(--radius-lg, 14px);
  border: 1px solid var(--border-color, #e2e8f0);
  box-shadow: var(--shadow-sm, 0 1px 2px 0 rgba(0, 0, 0, 0.05));
}

.editorial-comment-respond .comment-reply-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.editorial-comment-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.editorial-comment-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  display: block;
}

.editorial-comment-form input[type="text"],
.editorial-comment-form input[type="email"],
.editorial-comment-form input[type="url"],
.editorial-comment-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md, 8px);
  border: 1px solid var(--border-strong, #cbd5e1);
  background: var(--bg-card, #ffffff);
  color: var(--text-primary, #090d16);
  font-family: var(--font-sans);
  font-size: 0.925rem;
  transition: border-color 0.2s;
}

.editorial-comment-form input:focus,
.editorial-comment-form textarea:focus {
  outline: none;
  border-color: var(--accent-primary, #dc2626);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.editorial-comment-form .form-submit input[type="submit"] {
  background: linear-gradient(135deg, #dc2626, #ea580c);
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full, 9999px);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.editorial-comment-form .form-submit input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
}

/* ==============================================================================
   WORDPRESS DYNAMIC NAVIGATION & MOBILE RESPONSIVENESS
   ============================================================================== */
.nav-links li {
  display: inline-flex;
}

.nav-links li a,
.nav-links a {
  display: inline-block;
  padding: 0.75rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.15s ease;
}

.nav-links li a:hover,
.nav-links li.current-menu-item > a,
.nav-links li.current_page_item > a,
.nav-links li.current-cat > a {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}

/* Mobile Screens Adjustments */
@media (max-width: 768px) {
  .top-bar-left {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.75rem;
  }
  .weather-badge, .edition-pill {
    font-size: 0.72rem;
  }
  .brand-row {
    padding: 0.75rem 0;
  }
  .brand-logo {
    font-size: 1.75rem !important;
  }
  .brand-tagline {
    font-size: 0.8rem;
    line-height: 1.3;
  }
  .nav-search-trigger .kbd-shortcut {
    display: none;
  }
  .nav-search-trigger span {
    display: none;
  }
  .nav-search-trigger {
    padding: 0.4rem 0.6rem;
  }
  .article-author-photo {
    width: 2.5rem;
    height: 2.5rem;
  }
  .article-meta-panel {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .article-reader-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .editorial-comment-respond {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .brand-tagline {
    display: none;
  }
  .lead-title {
    font-size: 1.45rem !important;
  }
  .section-title {
    font-size: 1.35rem;
  }
  .article-headline {
    font-size: 1.75rem !important;
    line-height: 1.25;
  }
  .reader-toolbar {
    padding: 0.85rem;
  }
  .reader-utility-controls {
    width: 100%;
    justify-content: space-between;
  }
}

