/**
 * Legal Keys - Additional CSS
 * WordPress core elements, entry content, comments, pagination
 */

/* ===========================
   ENTRY CONTENT (WP Editor)
   =========================== */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  font-family: var(--font-display);
  color: var(--color-white);
  margin: 1.8em 0 0.6em;
  line-height: 1.25;
}

.entry-content h2 { font-size: 1.9rem; }
.entry-content h3 { font-size: 1.5rem; }
.entry-content h4 { font-size: 1.2rem; }

.entry-content p {
  margin-bottom: 1.4em;
  color: rgba(255,255,255,0.78);
  font-size: 1.025rem;
  line-height: 1.85;
}

.entry-content ul,
.entry-content ol {
  margin: 1em 0 1.4em 1.5em;
  color: rgba(255,255,255,0.75);
}

.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }

.entry-content li {
  margin-bottom: 0.5em;
  font-size: 1rem;
  line-height: 1.75;
}

.entry-content a {
  color: var(--color-gold);
  border-bottom: 1px solid rgba(201,168,76,0.3);
  transition: border-color var(--transition-fast);
}

.entry-content a:hover {
  border-color: var(--color-gold);
}

.entry-content blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--color-white);
  border-left: 3px solid var(--color-gold);
  padding: 16px 24px;
  margin: 2em 0;
  background: rgba(201,168,76,0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.entry-content strong { color: var(--color-white); font-weight: 600; }
.entry-content em { color: rgba(255,255,255,0.85); }

.entry-content img {
  border-radius: var(--radius-md);
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5em 0;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.9rem;
}

.entry-content th,
.entry-content td {
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  text-align: left;
}

.entry-content th {
  background: rgba(201,168,76,0.1);
  color: var(--color-gold);
  font-weight: 600;
}

.entry-content tr:nth-child(even) td {
  background: rgba(255,255,255,0.02);
}

.entry-content code {
  font-family: 'Courier New', monospace;
  background: rgba(201,168,76,0.1);
  color: var(--color-gold-light);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
}

.entry-content pre {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 20px;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.7;
  margin: 1.5em 0;
}

.entry-content hr {
  border: none;
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 2em 0;
}

/* ===========================
   PAGINATION
   =========================== */
.navigation.pagination {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition-fast);
}

.nav-links .page-numbers:hover,
.nav-links .page-numbers.current {
  background: var(--color-gold-pale);
  border-color: rgba(201,168,76,0.4);
  color: var(--color-gold);
}

.nav-links .page-numbers.dots {
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.3);
}

/* ===========================
   COMMENTS
   =========================== */
.comments-area {
  margin-top: 60px;
  padding-top: 50px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.comments-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--color-white);
  margin-bottom: 30px;
}

.comment-list {
  list-style: none;
}

.comment {
  margin-bottom: 24px;
}

.comment-body {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.comment-author .fn {
  font-weight: 600;
  color: var(--color-white);
  font-size: 0.95rem;
}

.comment-metadata {
  font-size: 0.8rem;
  color: var(--color-gray);
}

.comment-content p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.75;
  margin-bottom: 0;
}

.comment-reply-link {
  font-size: 0.8rem;
  color: var(--color-gold);
  margin-top: 10px;
  display: inline-block;
  transition: color var(--transition-fast);
}

.comment-form label {
  display: block;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 6px;
  font-weight: 500;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: rgba(201,168,76,0.4);
}

.comment-form textarea { min-height: 140px; resize: vertical; }

.comment-form .submit {
  background: var(--gradient-gold);
  color: var(--color-black);
  border: none;
  padding: 13px 32px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  margin-top: 10px;
}

.comment-form .submit:hover {
  box-shadow: var(--shadow-gold-sm);
  transform: translateY(-2px);
}

.comment-respond {
  margin-top: 50px;
}

.comment-reply-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-white);
  margin-bottom: 24px;
}

/* ===========================
   TAGS
   =========================== */
.tags-links a {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  transition: var(--transition-fast);
}

.tags-links a:hover {
  border-color: rgba(201,168,76,0.4);
  color: var(--color-gold);
  background: var(--color-gold-pale);
}

/* ===========================
   GUTENBERG BLOCKS
   =========================== */
.wp-block-separator {
  border: none;
  height: 2px;
  background: var(--gradient-gold);
  border-radius: var(--radius-full);
  max-width: 60px;
  margin: 2em auto;
}

.wp-block-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--color-white);
  border-left: 3px solid var(--color-gold);
  padding: 16px 24px;
  margin: 2em 0;
  background: rgba(201,168,76,0.05);
}

.wp-block-button__link {
  background: var(--gradient-gold);
  color: var(--color-black);
  border-radius: var(--radius-full);
  padding: 14px 32px;
  font-weight: 600;
  border: none;
}

/* ===========================
   WIDGET STYLES
   =========================== */
.widget-title {
  font-family: var(--font-accent);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  color: var(--color-gold);
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(201,168,76,0.2);
}

/* ===========================
   PRINT STYLES
   =========================== */
@media print {
  .site-header,
  .site-footer,
  .whatsapp-float,
  #preloader,
  .cursor,
  .cursor-follower,
  #scroll-progress {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }
}

/* ===========================
   ACCESSIBILITY
   =========================== */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--color-gold);
  color: var(--color-black);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 999999;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 20px;
}

/* ===========================
   SELECTION
   =========================== */
::selection {
  background: rgba(201, 168, 76, 0.3);
  color: var(--color-white);
}

/* ===========================
   SCROLLBAR
   =========================== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--color-dark-2); }
::-webkit-scrollbar-thumb {
  background: rgba(201,168,76,0.4);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--color-gold); }

/* ===========================
   LOADING STATES
   =========================== */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===========================
   ADMIN BAR OFFSET
   =========================== */
body.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}
