﻿/* ==========================================================================
   RECLAME LUMINOASE - SINGLE POST & RICH CONTENT STYLES
   (Advanced styling for Tables, Lists, Bold, Links, Quotes, Code & Layout)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. SINGLE POST LAYOUT & BREADCRUMBS
   -------------------------------------------------------------------------- */
.rl-single-wrapper,
.rl-page-wrapper {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
  background-color: #ffffff;
}

.rl-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--rl-text-muted);
  margin-bottom: 2rem;
}

.rl-breadcrumbs a {
  color: var(--rl-text-muted);
}

.rl-breadcrumbs a:hover {
  color: var(--rl-primary);
}

.rl-breadcrumb-sep {
  color: #cbd5e1;
}

.rl-breadcrumb-current {
  color: var(--rl-text-main);
  font-weight: 600;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   2. ARTICLE HEADER & META
   -------------------------------------------------------------------------- */
.rl-article-header {
  margin-bottom: 2.25rem;
}

.rl-article-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.rl-category-badge {
  display: inline-block;
  background-color: var(--rl-primary-light);
  color: var(--rl-primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--rl-radius-full);
  transition: all var(--rl-transition-fast);
}

.rl-category-badge:hover {
  background-color: var(--rl-primary);
  color: #ffffff;
}

.rl-article-title {
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.22;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

.rl-article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--rl-text-muted);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rl-border);
}

.rl-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.rl-meta-item svg {
  color: var(--rl-primary);
}

.rl-meta-sep {
  color: #cbd5e1;
}

.rl-article-featured-image {
  margin-bottom: 2.5rem;
  border-radius: var(--rl-radius-lg);
  overflow: hidden;
  box-shadow: var(--rl-shadow-md);
}

.rl-article-featured-image img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.rl-caption {
  font-size: 0.8125rem;
  color: var(--rl-text-muted);
  text-align: center;
  padding: 0.6rem 1rem;
  background-color: var(--rl-bg-light);
}

/* --------------------------------------------------------------------------
   3. RICH ENTRY CONTENT - GENERAL TYPOGRAPHY
   -------------------------------------------------------------------------- */
.rl-entry-content {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #27303f;
  word-wrap: break-word;
}

.rl-entry-content > * + * {
  margin-top: 1.5rem;
}

.rl-entry-content h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--rl-bg-subtle);
}

.rl-entry-content h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
}

.rl-entry-content h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

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

/* --------------------------------------------------------------------------
   4. BOLD TEXT STYLING (<strong>, <b>)
   -------------------------------------------------------------------------- */
.rl-entry-content strong,
.rl-entry-content b {
  font-weight: 700;
  color: #09111e;
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   5. LINKS STYLING (<a>)
   -------------------------------------------------------------------------- */
.rl-entry-content a {
  color: var(--rl-primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(13, 110, 253, 0.35);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: all var(--rl-transition-fast);
}

.rl-entry-content a:hover {
  color: var(--rl-primary-dark);
  text-decoration-color: var(--rl-primary-dark);
  background-color: var(--rl-primary-light);
  border-radius: 2px;
}

.rl-entry-content a:focus-visible {
  outline: 2px solid var(--rl-primary);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   6. TABLES STYLING (<table>) - COMPREHENSIVE & RESPONSIVE
   -------------------------------------------------------------------------- */
.rl-entry-content .rl-table-responsive,
.rl-entry-content table {
  margin: 2rem 0;
}

.rl-entry-content .rl-table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--rl-radius-md);
  border: 1px solid var(--rl-border);
  box-shadow: var(--rl-shadow-sm);
  background: #ffffff;
}

.rl-entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  text-align: left;
  line-height: 1.5;
}

.rl-entry-content thead th {
  background-color: #0f172a;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 1rem 1.25rem;
  border-bottom: 2px solid #1e293b;
  white-space: nowrap;
}

.rl-entry-content tbody td,
.rl-entry-content tbody th {
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid var(--rl-border);
  color: #334155;
  vertical-align: middle;
}

.rl-entry-content tbody tr:nth-child(even) {
  background-color: #f8fafc;
}

.rl-entry-content tbody tr:hover {
  background-color: #f1f5f9;
}

.rl-entry-content tbody tr:last-child td {
  border-bottom: none;
}

.rl-entry-content tfoot td {
  font-weight: 700;
  background-color: var(--rl-bg-subtle);
  padding: 0.95rem 1.25rem;
  color: #0f172a;
}

/* --------------------------------------------------------------------------
   7. LISTS STYLING (<ul>, <ol>) - CUSTOM BULLETS & ORDERED BADGES
   -------------------------------------------------------------------------- */
.rl-entry-content ul,
.rl-entry-content ol {
  margin: 1.5rem 0;
  padding-left: 0;
  list-style: none;
}

/* Unordered Lists (<ul>) */
.rl-entry-content ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.rl-entry-content ul > li {
  position: relative;
  padding-left: 1.75rem;
  color: #334155;
}

.rl-entry-content ul > li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rl-primary) 0%, #38bdf8 100%);
  box-shadow: 0 0 6px rgba(13, 110, 253, 0.4);
}

/* Ordered Lists (<ol>) */
.rl-entry-content ol {
  counter-reset: rl-post-counter;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rl-entry-content ol > li {
  position: relative;
  padding-left: 2.25rem;
  counter-increment: rl-post-counter;
  color: #334155;
}

.rl-entry-content ol > li::before {
  content: counter(rl-post-counter);
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--rl-primary-light);
  color: var(--rl-primary);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Nested Lists */
.rl-entry-content ul ul,
.rl-entry-content ol ol,
.rl-entry-content ul ol,
.rl-entry-content ol ul {
  margin: 0.5rem 0 0.5rem 1.25rem;
}

.rl-entry-content ul ul > li::before {
  background: #94a3b8;
  border-radius: 0;
  transform: rotate(45deg);
  width: 6px;
  height: 6px;
}

/* --------------------------------------------------------------------------
   8. BLOCKQUOTES & CALLOUTS
   -------------------------------------------------------------------------- */
.rl-entry-content blockquote {
  position: relative;
  margin: 2rem 0;
  padding: 1.5rem 1.75rem 1.5rem 2rem;
  background-color: var(--rl-bg-light);
  border-left: 4px solid var(--rl-primary);
  border-radius: 0 var(--rl-radius-md) var(--rl-radius-md) 0;
  font-size: 1.15rem;
  font-style: italic;
  color: #1e293b;
  line-height: 1.6;
}

.rl-entry-content blockquote cite {
  display: block;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 700;
  color: var(--rl-primary);
  margin-top: 0.75rem;
}

/* --------------------------------------------------------------------------
   9. CODE BLOCKS & PREFORMATTED TEXT
   -------------------------------------------------------------------------- */
.rl-entry-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.875em;
  background-color: var(--rl-bg-subtle);
  color: #e11d48;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  border: 1px solid var(--rl-border);
}

.rl-entry-content pre {
  background-color: #0b1320;
  color: #f8fafc;
  padding: 1.25rem 1.5rem;
  border-radius: var(--rl-radius-md);
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 2rem 0;
  border: 1px solid var(--rl-dark-border);
}

.rl-entry-content pre code {
  background: none;
  color: inherit;
  padding: 0;
  border: none;
  font-size: inherit;
}

/* --------------------------------------------------------------------------
   10. ARTICLE FOOTER (TAGS & SHARE BUTTONS)
   -------------------------------------------------------------------------- */
.rl-article-footer {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rl-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.rl-article-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rl-tags-label,
.rl-share-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
}

.rl-tag-item {
  font-size: 0.8125rem;
  color: var(--rl-text-muted);
  background-color: var(--rl-bg-subtle);
  padding: 0.25rem 0.65rem;
  border-radius: var(--rl-radius-sm);
  transition: all var(--rl-transition-fast);
}

.rl-tag-item:hover {
  background-color: var(--rl-primary-light);
  color: var(--rl-primary);
}

.rl-article-share {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rl-share-buttons {
  display: flex;
  gap: 0.5rem;
}

.rl-share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: transform var(--rl-transition-fast);
}

.rl-share-fb {
  background-color: #1877f2;
}

.rl-share-in {
  background-color: #0a66c2;
}

.rl-share-btn:hover {
  transform: translateY(-2px);
}

/* Post Navigation */
.post-navigation {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rl-border);
}

.post-navigation .nav-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.post-navigation .nav-previous a,
.post-navigation .nav-next a {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem;
  border: 1px solid var(--rl-border);
  border-radius: var(--rl-radius-md);
  background-color: var(--rl-bg-light);
  transition: all var(--rl-transition);
}

.post-navigation a:hover {
  border-color: var(--rl-primary);
  background-color: #ffffff;
  box-shadow: var(--rl-shadow-sm);
}

.rl-nav-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--rl-primary);
  letter-spacing: 0.05em;
}

.rl-nav-post-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0f172a;
}

@media (max-width: 640px) {
  .rl-article-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .post-navigation .nav-links {
    grid-template-columns: 1fr;
  }
}

/* RANK MATH BREADCRUMBS & BLOCKS */
.rl-breadcrumbs-wrap,
.rank-math-breadcrumb {
  font-size: 0.8125rem;
  color: #64748b;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.rank-math-breadcrumb a {
  color: #64748b !important;
  text-decoration: none;
  font-weight: 500;
}

.rank-math-breadcrumb a:hover {
  color: var(--rl-primary) !important;
}

.rank-math-breadcrumb .separator {
  margin: 0 0.5rem;
  color: #cbd5e1;
}

.rank-math-breadcrumb .last {
  color: #1e293b;
  font-weight: 600;
}

.rank-math-toc-block,
#rank-math-toc {
  background-color: var(--rl-bg-light);
  border: 1px solid var(--rl-border);
  border-radius: var(--rl-radius-md);
  padding: 1.5rem 1.75rem;
  margin: 2.25rem 0;
  box-shadow: var(--rl-shadow-sm);
}

.rank-math-toc-block h2,
#rank-math-toc h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 0;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--rl-primary);
  padding-bottom: 0.4rem;
  display: inline-block;
}

.rank-math-toc-block nav ul,
#rank-math-toc ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rank-math-toc-block nav ul li,
#rank-math-toc ul li {
  position: relative;
  padding-left: 1.25rem;
}

.rank-math-toc-block nav ul li::before,
#rank-math-toc ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--rl-primary);
  font-weight: 700;
}

.rank-math-faq-item {
  background: #ffffff;
  border: 1px solid var(--rl-border);
  border-radius: var(--rl-radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--rl-shadow-sm);
}

.rank-math-question {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.rank-math-answer {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
}
