/* ─── Base ─────────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }

body { font-family: 'Manrope', sans-serif; }

/* ─── Hero Gradient ──────────────────────────────────────────────────────────
   Uses CSS custom property --hero-bg so PHP can inject the URL via inline style.
   ─────────────────────────────────────────────────────────────────────────── */
.ef-hero-gradient {
    background: linear-gradient(rgba(18,18,18,0.6), rgba(18,18,18,0.9)),
                var(--hero-bg);
    background-size: cover;
    background-position: center;
}

/* ─── Custom Scrollbar ───────────────────────────────────────────────────── */
::-webkit-scrollbar              { width: 6px; }
::-webkit-scrollbar-track        { background: #121212; }
::-webkit-scrollbar-thumb        { background: #2d2d2d; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover  { background: #f9f906; }

/* ─── Material Symbols ───────────────────────────────────────────────────── */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ─── Footer WP Nav Menu ─────────────────────────────────────────────────── */
footer .menu           { padding: 0; margin: 0; }
footer .menu li        { list-style: none; }
footer .menu li a      { color: #9ca3af; font-size: 0.875rem; transition: color .2s; }
footer .menu li a:hover { color: #f9f906; }

/* ─── Prose (page/post content, Classic Editor) ──────────────────────────── */
.prose-invert a        { color: #f9f906; }
.prose-invert strong   { color: #fff; }
.prose-invert h1,
.prose-invert h2,
.prose-invert h3,
.prose-invert h4       { color: #fff; }

.prose-invert h1 { font-size: clamp(2rem, 5vw, 48px); font-weight: 800; }
.prose-invert h2 { font-size: clamp(1.5rem, 4vw, 32px); font-weight: 600; }
.prose-invert h3 { font-size: clamp(1.25rem, 3vw, 26px); font-weight: 600; }
.prose-invert h4, .prose-invert h5, .prose-invert h6 { font-size: 1.125rem; font-weight: 600; }

/* Paragraphs */
.prose p,
.prose-invert p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #d1d5db;
}
.prose p:last-child,
.prose-invert p:last-child { margin-bottom: 0; }

/* Unordered lists */
.prose ul,
.prose-invert ul {
    list-style: disc;
    list-style-position: outside;
    padding-left: 1.5rem;
    margin: 1rem 0;
}
.prose ul li,
.prose-invert ul li {
    margin-bottom: 0.5rem;
    color: #d1d5db;
}
.prose ul li::marker,
.prose-invert ul li::marker {
    color: #f9f906;
    font-size: 1.1em;
}

/* Ordered lists */
.prose ol,
.prose-invert ol {
    list-style: decimal;
    list-style-position: outside;
    padding-left: 1.75rem;
    margin: 1rem 0;
}
.prose ol li,
.prose-invert ol li {
    margin-bottom: 0.5rem;
    color: #d1d5db;
}
.prose ol li::marker,
.prose-invert ol li::marker {
    color: #f9f906;
    font-weight: 600;
    font-size: 0.95em;
}

/* Nested lists */
.prose li > ul,
.prose li > ol,
.prose-invert li > ul,
.prose-invert li > ol {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Tables: wrapper for horizontal scroll */
.prose .wp-block-table,
.prose table,
.prose-invert .wp-block-table,
.prose-invert table {
    width: 100%;
    margin: 1.5rem 0;
}
.prose .table-scroll-wrapper,
.prose-invert .table-scroll-wrapper {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
    border: 1px solid #2d2d2d;
}
.prose .table-scroll-wrapper table,
.prose-invert .table-scroll-wrapper table {
    margin: 0;
    min-width: 100%;
    border-collapse: collapse;
    background: #1e1e1e;
}
.prose .table-scroll-wrapper thead th,
.prose-invert .table-scroll-wrapper thead th {
    background: linear-gradient(180deg, #2d2d2d, #252525);
    color: #f9f906;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #2d2d2d;
    white-space: nowrap;
}
.prose .table-scroll-wrapper tbody td,
.prose-invert .table-scroll-wrapper tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #2d2d2d;
    font-size: 0.875rem;
    color: #d1d5db;
}
.prose .table-scroll-wrapper tbody tr:hover,
.prose-invert .table-scroll-wrapper tbody tr:hover {
    background: rgba(249, 249, 6, 0.06);
}
.prose .table-scroll-wrapper tbody tr:last-child td,
.prose-invert .table-scroll-wrapper tbody tr:last-child td {
    border-bottom: none;
}

/* Standalone table (when not in wrapper — e.g. pasted from editor) */
.prose > table,
.prose-invert > table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}
.prose blockquote,
.prose-invert blockquote {
    border-left: 4px solid #f9f906;
    padding: 0.75rem 1rem;
    background: rgba(249, 249, 6, 0.06);
    margin: 1rem 0;
    color: #e5e7eb;
    font-style: italic;
}
.prose pre,
.prose-invert pre {
    background: #1e1e1e;
    border: 1px solid #2d2d2d;
    border-radius: 0.25rem;
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #d1d5db;
}
.prose code,
.prose-invert code {
    background: #1e1e1e;
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    font-size: 0.9em;
    color: #f9f906;
}
.prose pre code,
.prose-invert pre code {
    background: none;
    padding: 0;
    color: inherit;
}
.prose hr,
.prose-invert hr {
    border: 0;
    border-top: 1px solid #2d2d2d;
    margin: 1.5rem 0;
}
.prose img,
.prose-invert img {
    max-width: 100%;
    height: auto;
    border-radius: 0.25rem;
}
.prose .alignleft,
.prose-invert .alignleft { float: left; margin: 0 1rem 1rem 0; }
.prose .alignright,
.prose-invert .alignright { float: right; margin: 0 0 1rem 1rem; }
.prose .aligncenter,
.prose-invert .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.prose .wp-caption,
.prose-invert .wp-caption {
    border: 1px solid #2d2d2d;
    padding: 0.5rem;
    text-align: center;
    margin: 1rem 0;
}
.prose .wp-caption-text,
.prose-invert .wp-caption-text {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

/* ─── Shortcodes (button, faq, float_image) ─────────────────────────────────── */
.ef-custom-btn-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}
.ef-custom-btn, .aff-redirect {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #f9f906;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    color: #121212 !important;
    transition: all 0.2s;
}

.aff-redirect {
    display: block;    
    width: max-content;
    color: #121212;
    margin: 1rem auto; 
}

.ef-custom-btn:hover, .aff-redirect:hover {
    box-shadow: 0 0 20px rgba(249, 249, 6, 0.4);
}

.ef-custom-faq-container {
    margin: 2rem 0;
}
.ef-faq-item {
    border: 1px solid #2d2d2d;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s, background 0.2s;
    background: #1e1e1e;
}
.ef-faq-item:hover {
    border-color: rgba(249, 249, 6, 0.5);
}
.ef-faq-question {
    list-style: none;
    padding: 1rem 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #e5e7eb;
    user-select: none;
    transition: color 0.2s;
}
.ef-faq-question::-webkit-details-marker { display: none; }
.ef-faq-question::before {
    content: '\276F';
    font-size: 0.7rem;
    color: #f9f906;
    transition: transform 0.2s;
}
.ef-faq-item[open] {
    border-color: #f9f906;
    background: #252525;
    box-shadow: 0 4px 16px rgba(249, 249, 6, 0.08);
}
.ef-faq-item[open] .ef-faq-question {
    color: #f9f906;
    padding-bottom: 0.5rem;
}
.ef-faq-item[open] .ef-faq-question::before {
    transform: rotate(90deg) scale(1.2);
}
.ef-faq-answer-inner {
    padding: 0 1.25rem 1.25rem 2.5rem;
    color: #d1d5db;
    line-height: 1.7;
    font-size: 0.95rem;
}
.ef-faq-answer-inner p { margin: 0 0 0.5rem 0; }
.ef-faq-answer-inner p:last-child { margin-bottom: 0; }

.ef-float-image {
    display: flex;
    flex-direction: row;
    background: #1e1e1e;
    border: 1px solid #2d2d2d;
    border-radius: 0.5rem;
    overflow: hidden;
    gap: 1rem;
    padding: 0.5rem;
}
.ef-float-image.ef-float-image--no-image .ef-float-image-content {
    width: 100%;
}
.ef-float-image-image {
    flex-shrink: 0;
    border-radius: 0.375rem;
    overflow: hidden;
}
.ef-float-image-image img {
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 0.375rem;
}
.ef-float-image-content {
    flex: 1;
    min-width: 0;
    color: #d1d5db;
    line-height: 1.7;
}
.ef-float-image-content ul,
.ef-float-image-content ol {
    margin: 0;
}
.ef-float-image-content p { margin: 0 0 0.5rem 0; }
.ef-float-image-content p:last-child { margin-bottom: 0; }

@media (max-width: 800px) {
    .ef-float-image {
        flex-direction: column !important;
        padding: 0.75rem;
    }
    .ef-float-image.ef-float-image--image-right {
        flex-direction: column !important;
    }
    .ef-float-image-image {
        width: 100%;
        max-width: none;
    }
}

/* ─── Pros / Cons ────────────────────────────────────────────────────────── */
.ef-pros-cons {
    margin: 1.5rem 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.ef-pros-cons-column {
    padding: 1rem 1.125rem;
    border-radius: 0.5rem;
    background: #1e1e1e;
    border: 1px solid #2d2d2d;
}
.ef-pros-cons-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.625rem;
    font-size: 0.95rem;
    color: #e5e7eb;
}
.ef-pros-cons-title span {
    font-size: 1.15rem;
    line-height: 1;
}
.ef-pros-cons-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ef-pros-cons-list li {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    font-size: 0.875rem;
    color: #d1d5db;
    padding: 0.375rem 0;
}
.ef-pros-cons-icon {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ef-pros-cons-icon--pro {
    background: rgba(249, 249, 6, 0.15);
    color: #f9f906;
}
.ef-pros-cons-icon--con {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}
@media (max-width: 640px) {
    .ef-pros-cons {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ─── Pagination ─────────────────────────────────────────────────────────── */
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.25rem;
    border: 1px solid #2d2d2d;
    color: #9ca3af;
    font-size: 0.875rem;
    transition: all .2s;
}
.page-numbers:hover,
.page-numbers.current {
    background: #f9f906;
    border-color: #f9f906;
    color: #121212;
    font-weight: 700;
}

.custom-logo {
    width: 100%;
    max-width: 160px;
}

/* ─── Promo Block ────────────────────────────────────────────────────── */

.ef-promo {
  margin: 2rem 0;
}

.ef-promo__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: #1e1e1e;
  border: 1px solid #2d2d2d;
  border-radius: 0.5rem;
}

.ef-promo__title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  color: #fff;
}

.ef-promo__subtitle {
  margin: 0;
  color: #d1d5db;
  line-height: 1.6;
}

.ef-promo__controls {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-end;
}

.ef-promo__code-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ef-promo__code {
  padding: 0.55rem 1.1rem;
  background: #121212;
  border: 1px solid #2d2d2d;
  border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: #f9f906;
}

/* Copy icon button */
.ef-promo__copy {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px dashed #2d2d2d;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

/* icon */
.ef-promo__copy::before {
  content: "⧉";
  font-size: 0.85rem;
  color: #9ca3af;
}

.ef-promo__copy:hover {
  border-color: #f9f906;
}

.ef-promo__copy:hover::before {
  color: #f9f906;
}

/* copied state */
.ef-promo__copy.is-copied {
  background: rgba(249, 249, 6, 0.15);
  border-color: #f9f906;
}

.ef-promo__copy.is-copied::before {
  content: "✓";
  color: #f9f906;
}

/* Mobile */
@media (max-width: 640px) {
  .ef-promo__grid {
    grid-template-columns: 1fr;
  }

  .ef-promo__controls {
    align-items: flex-start;
  }
}
