/* ═══════════════════════════════════════════════════════
   GoRiddles v2 — Post Page + Block Redesigns
   ═══════════════════════════════════════════════════════ */

/* ─── Post Hero ─── */
.gr-author-dot {
    width: 28px; height: 28px; min-width: 28px; border-radius: 50%;
    background: #FD0055; display: inline-flex; align-items: center;
    justify-content: center; font-size: 11px; color: #fff;
    font-weight: 800; flex-shrink: 0;
}

.gr-post-hero { padding: 48px 24px 56px; }
.gr-post-hero__inner { max-width: 760px; margin: 0 auto; }

.gr-post-breadcrumb {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-size: 13px; font-weight: 500; color: #827C7C; margin-bottom: 24px;
}
.gr-post-breadcrumb a { color: #827C7C; text-decoration: none; transition: color 0.2s; }
.gr-post-breadcrumb a:hover { color: #FD0055; }
.gr-post-breadcrumb .sep { opacity: 0.4; }
.gr-post-breadcrumb > span:last-child {
    color: #3A3A3A; font-weight: 600;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}

.gr-post-cat-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 16px; background: #fff; border: 1.5px solid #ddd; border-radius: 50px;
    font-size: 12px; font-weight: 700; color: #3A3A3A; margin-bottom: 20px;
    text-decoration: none; transition: border-color 0.2s;
}
.gr-post-cat-badge:hover { border-color: #FD0055; color: #FD0055; }
.gr-post-cat-badge img { width: 20px; height: 20px; }

.gr-post-hero h1 {
    font-size: clamp(32px, 4.5vw, 48px); font-weight: 900;
    letter-spacing: -2px; line-height: 1.12; margin-bottom: 20px;
}

.gr-post-meta {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    font-size: 13px; color: #827C7C; font-weight: 500;
}
.gr-post-meta__author {
    display: flex; align-items: center; gap: 8px;
    text-decoration: none; color: #827C7C; transition: color 0.2s;
}
.gr-post-meta__author:hover { color: #FD0055; }
.gr-post-meta__author .gr-author-dot {
    width: 28px !important; height: 28px !important; min-width: 28px;
    font-size: 11px !important; border-radius: 50% !important;
    background: #FD0055 !important; color: #fff !important;
    display: inline-flex !important; align-items: center !important;
    justify-content: center !important; font-weight: 800 !important;
    flex-shrink: 0;
}
.gr-post-meta__sep { width: 4px; height: 4px; border-radius: 50%; background: #ccc; flex-shrink: 0; }
.gr-post-share-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 16px; border-radius: 50px;
    font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 600;
    color: #827C7C; background: #fff; border: 1.5px solid #ddd;
    cursor: pointer; transition: all 0.25s ease; margin-left: auto;
}
.gr-post-share-btn:hover { border-color: #FD0055; color: #FD0055; }
.gr-post-share-btn svg { width: 14px; height: 14px; }


/* ─── Post Layout: TOC + Content ─── */
.gr-post-layout {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 200px 1fr; gap: 48px;
    padding: 48px 24px 80px;
    overflow: visible !important;
}

/* TOC — sticky - ensure parents don't break it */
.gr-post-page { overflow: visible !important; }
.gr-post-toc {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 88px;
    align-self: start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    z-index: 10;
}
.gr-post-toc__title {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1.5px; color: #827C7C; margin-bottom: 16px;
    padding-bottom: 12px; border-bottom: 1px solid #eee;
}
.gr-post-toc__nav a {
    display: block; padding: 8px 0 8px 12px; margin-left: -2px;
    font-size: 13px; font-weight: 500; color: #827C7C; line-height: 1.4;
    border-left: 2px solid transparent; transition: all 0.2s;
    text-decoration: none;
}
.gr-post-toc__nav a:hover,
.gr-post-toc__nav a.active { color: #FD0055; border-left-color: #FD0055; font-weight: 700; }


/* ─── Post Content: Typography ─── */
.gr-post-main { max-width: 760px; }
.gr-post-content { font-family: 'Montserrat', sans-serif; }
.gr-post-content p { font-size: 16px; line-height: 1.85; color: #2a2a2a; margin-bottom: 24px; }
.gr-post-content > a { color: #FD0055; font-weight: 600; border-bottom: 1.5px solid rgba(253,0,85,0.2); text-decoration: none; transition: border-color 0.2s; }
.gr-post-content > a:hover { border-color: #FD0055; }
.gr-post-content p a { color: #FD0055; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(253,0,85,0.3); text-underline-offset: 3px; transition: text-decoration-color 0.2s; }
.gr-post-content p a:hover { text-decoration-color: #FD0055; }

/* H2 — NO divider line */
.gr-post-content h2 {
    font-size: clamp(24px, 3vw, 32px); font-weight: 800;
    letter-spacing: -0.8px; line-height: 1.2;
    margin: 56px 0 20px; padding-top: 0;
    border-top: none !important;
}
.gr-post-content h2:first-of-type { margin-top: 0; }
.gr-post-content h3 { font-size: 20px; font-weight: 800; margin: 32px 0 14px; }
.gr-post-content h4 { font-size: 17px; font-weight: 700; margin: 24px 0 10px; }
.gr-post-content ul, .gr-post-content ol { margin: 0 0 24px 24px; font-size: 16px; line-height: 1.85; color: #2a2a2a; }
.gr-post-content img:not(.answer__breadcrumb img) { border-radius: 18px; margin: 32px 0; box-shadow: 0 8px 30px rgba(0,0,0,0.06); }
.gr-post-content blockquote { margin: 32px 0; padding: 20px 24px; border-left: 3px solid #FD0055; background: rgba(253,0,85,0.04); border-radius: 0 12px 12px 0; font-style: italic; }


/* ═══════════════════════════════════════════════════════
   BLOCK REDESIGNS
   ═══════════════════════════════════════════════════════ */

/* ─── Internal Link / Read Also — yellow card with pink left border ─── */
.gr-post-content .read-also-section { margin: 32px 0; }
.gr-post-content .read-also-section a { text-decoration: none !important; border-bottom: none !important; }
.gr-post-content .read-also {
    display: flex !important; align-items: center !important; gap: 12px !important;
    padding: 18px 24px !important; background: #FFEEAC !important; border-radius: 14px !important;
    border: none !important; border-left: 4px solid #FD0055 !important;
    transition: background 0.2s !important; position: relative !important;
}
.gr-post-content .read-also:hover { background: #ffe88a !important; }
.gr-post-content .read-also svg { flex-shrink: 0; width: 22px; height: 22px; }
.gr-post-content .read-also svg path { fill: #3A3A3A; }
.gr-post-content .read-also_text {
    font-size: 11px !important; font-weight: 700 !important; text-transform: uppercase !important;
    letter-spacing: 1px !important; color: #FD0055 !important; white-space: nowrap !important;
}
.gr-post-content .read-also-text {
    font-size: 14px !important; font-weight: 700 !important; color: #3A3A3A !important;
    line-height: 1.4 !important; flex: 1;
}
/* Arrow at the end */
.gr-post-content .read-also::after {
    content: '→'; position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
    color: #FD0055; font-size: 16px; font-weight: 700;
    transition: transform 0.3s ease;
}
.gr-post-content .read-also:hover::after { transform: translateY(-50%) translateX(4px); }


/* ─── Riddle Cards (.answer from answer-row.php) ─── */
.gr-post-content .answers { margin: 24px 0; }
.gr-post-content .answers .answer {
    background: #EEF1F6; border-radius: 16px; padding: 22px 28px;
    margin-bottom: 16px; position: relative; border: 2px solid transparent;
    transition: border-color 0.3s ease;
}
.gr-post-content .answers .answer:hover { border-color: rgba(253,0,85,0.08); }

/* Question text */
.gr-post-content .answers .answer .accordion-button {
    background: none !important; border: none !important; box-shadow: none !important;
    padding: 0 !important; color: #3A3A3A !important; font-size: 16px; font-weight: 600;
    line-height: 1.6;
}
.gr-post-content .answers .answer .accordion-button::after { display: none !important; }
.gr-post-content .answers .answer .title {
    font-size: 16px; font-weight: 600; line-height: 1.6; color: #3A3A3A;
}

/* Answer text — hidden by default, jQuery fadeIn shows it */
.gr-post-page .gr-post-content .answers .answer .label,
.gr-post-page .gr-post-content .answers .answer .label.fw-bold {
    display: none;
    margin-top: 14px;
}
/* Answer prefix "Answer:" in pink, answer text in dark */
.gr-post-content .answers .answer .label .answer-prefix {
    font-size: 16px; font-weight: 800; color: #FD0055;
}
.gr-post-content .answers .answer .label .answer-text {
    font-size: 16px; font-weight: 700; color: #3A3A3A;
}

/* Show Answer / Hide Answer button — NO !important on display so jQuery can toggle */
.gr-post-content .answers .answer .answer__btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 22px; border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px; font-weight: 700;
    background: #fff; color: #FD0055;
    border: 2px solid rgba(253,0,85,0.2);
    cursor: pointer; transition: all 0.25s ease;
    text-decoration: none; margin-top: 14px;
    box-shadow: none;
}
.gr-post-content .answers .answer .answer__btn:hover {
    background: #FD0055; color: #fff;
    border-color: #FD0055;
}
.gr-post-content .answers .answer .answer__btn.active {
    background: transparent; color: #827C7C;
    border-color: #ddd;
}
.gr-post-content .answers .answer .answer__btn.active:hover {
    border-color: #FD0055; color: #FD0055;
    background: transparent;
}
.gr-post-content .answers .answer .answer__btn:focus,
.gr-post-content .answers .answer .answer__btn:active,
.gr-post-content .answers .answer a.answer__btn:focus,
.gr-post-content .answers .answer a.answer__btn:active {
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

/* Breadcrumbs inside riddle cards — skipped in PHP on post pages */


/* ─── Key Takeaways ─── */
.gr-post-content .key-takeways {
    background: #EEF1F6; border-radius: 18px; padding: 28px 32px; margin: 32px 0;
}
.gr-post-content .key-takeways h5 { font-size: 18px; font-weight: 800; margin-bottom: 16px; }


/* ─── Printables block ─── */
.gr-post-content .printables {
    display: flex; gap: 28px; align-items: center;
    background: #EEF1F6; border-radius: 22px; padding: 36px 40px;
    margin: 40px 0; border: 2px solid transparent; transition: border-color 0.3s;
}
.gr-post-content .printables:hover { border-color: rgba(253,0,85,0.1); }
.gr-post-content .printables__img { flex-shrink: 0; }
.gr-post-content .printables__img img { width: 140px !important; border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,0.1); margin: 0 !important; }
.gr-post-content .printables__title { font-size: 18px !important; font-weight: 800; color: #3A3A3A; margin-bottom: 8px !important; }
.gr-post-content .printables__text { font-size: 14px; color: #827C7C; line-height: 1.6; }
.gr-post-content .printables__link {
    display: inline-flex !important; align-items: center; gap: 6px;
    padding: 10px 24px !important; background: #FD0055 !important; color: #fff !important;
    border-radius: 50px !important; font-size: 14px !important; font-weight: 700 !important;
    border: none !important; box-shadow: 0 4px 12px rgba(253,0,85,0.2);
    transition: all 0.3s ease; text-decoration: none !important;
}
.gr-post-content .printables__link:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(253,0,85,0.3); }


/* ─── Related Articles block (in-content) ─── */
.gr-post-content .related-posts { margin: 48px 0; padding: 0; background: none; }
.gr-post-content .related-posts h3 { font-size: 22px; font-weight: 800; margin-bottom: 20px; }

/* ─── Table Content ─── */
.gr-post-content .table-content { display: none; }

/* ─── Community / Subscribe in-article ─── */
.gr-post-content .community { display: none; } /* Replaced by sticky newsletter */


/* ═══════════════════════════════════════════════════════
   POST FAQ + FOOTER
   ═══════════════════════════════════════════════════════ */

.gr-post-faq { margin-top: 56px; padding-top: 40px; border-top: 1px solid #eee; }
.gr-post-faq h2 { font-size: 24px; font-weight: 800; margin-bottom: 24px; border: none !important; padding: 0 !important; }

/* Share + Author section */
.gr-post-footer {
    margin-top: 48px; padding-top: 32px; border-top: 1px solid #eee;
    display: flex; flex-direction: column; gap: 20px;
}
.gr-post-share {
    display: flex; align-items: center; gap: 16px;
    font-size: 14px; font-weight: 700; color: #3A3A3A;
}
.gr-post-share .addtoany_share_save_container { display: inline-flex !important; }
.gr-post-share .addtoany_list a {
    padding: 0 4px !important;
}
.gr-post-share .addtoany_list a img,
.gr-post-share .addtoany_list a svg { border-radius: 50%; }

.gr-post-author-box {
    display: flex; align-items: center; gap: 12px;
    font-size: 14px; color: #827C7C; font-weight: 500;
}
.gr-post-author-link {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 700; color: #3A3A3A; text-decoration: none; transition: color 0.2s;
}
.gr-post-author-link:hover { color: #FD0055; }
.gr-post-author-link .gr-author-dot {
    width: 28px !important; height: 28px !important; min-width: 28px;
    font-size: 11px !important; border-radius: 50% !important;
    background: #FD0055 !important; color: #fff !important;
    display: inline-flex !important; align-items: center !important;
    justify-content: center !important; font-weight: 800 !important;
}


/* ═══════════════════════════════════════════════════════
   RECOMMENDED POSTS SECTION
   ═══════════════════════════════════════════════════════ */

.gr-post-related { padding: 80px 24px; background: #EEF1F6; }
.gr-post-related__inner { max-width: 1200px; margin: 0 auto; }
.gr-post-related__header {
    display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px;
}
.gr-post-related__header h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -0.8px; }
.gr-post-related__browse {
    font-size: 15px; font-weight: 600; color: #FD0055;
    display: flex; align-items: center; gap: 6px; transition: gap 0.3s ease; text-decoration: none;
}
.gr-post-related__browse:hover { gap: 12px; }
.gr-post-related__browse .arrow { transition: transform 0.3s; }
.gr-post-related__browse:hover .arrow { transform: translateX(4px); }
.gr-post-related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* Force card styling on related section */
.gr-post-related .gr-result-card {
    background: #fff !important; border-radius: 20px !important; overflow: hidden !important;
    border: 2px solid #eee !important; transition: all 0.4s ease !important;
    display: flex !important; flex-direction: column !important;
    text-decoration: none !important; color: inherit !important;
}
.gr-post-related .gr-result-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 16px 44px rgba(0,0,0,0.07) !important;
    border-color: #FD0055 !important;
}
.gr-post-related .gr-result-card__img-wrap { overflow: hidden; height: 200px; }
.gr-post-related .gr-result-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gr-post-related .gr-result-card:hover .gr-result-card__img { transform: scale(1.04); }
.gr-post-related .gr-result-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.gr-post-related .gr-result-card__cat {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11px; font-weight: 700; color: #FD0055;
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px;
}
.gr-post-related .gr-result-card__cat img { width: 16px !important; height: 16px !important; border-radius: 0 !important; box-shadow: none !important; margin: 0 !important; }
.gr-post-related .gr-result-card__body h3 { font-size: 15px; font-weight: 700; line-height: 1.4; color: #3A3A3A; margin: 0 0 14px 0; }
.gr-post-related .gr-result-card__meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.gr-post-related .gr-post-card__author { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #827C7C; font-weight: 500; }
.gr-post-related .gr-post-card__read {
    font-size: 12px; font-weight: 700; color: #FD0055;
    padding: 6px 14px; border: 1.5px solid #eee; border-radius: 50px;
    transition: all 0.3s ease;
}
.gr-post-related .gr-result-card:hover .gr-post-card__read { border-color: #FD0055; background: rgba(253,0,85,0.08); }


/* ═══════════════════════════════════════════════════════
   STICKY NEWSLETTER BAR
   ═══════════════════════════════════════════════════════ */

.gr-sticky-newsletter {
    position: fixed; bottom: -100px; left: 0; right: 0;
    background: #1a1a2e; z-index: 90; padding: 14px 24px;
    display: flex; align-items: center; justify-content: center; gap: 16px;
    transition: bottom 0.4s ease; box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.gr-sticky-newsletter.visible { bottom: 0; }
.gr-sticky-newsletter__text { font-size: 14px; font-weight: 700; color: #fff; white-space: nowrap; }
.gr-sticky-newsletter__mc { display: flex; gap: 8px; }
.gr-sticky-newsletter__input {
    padding: 10px 18px; border: 1.5px solid rgba(255,255,255,0.15);
    border-radius: 50px; background: rgba(255,255,255,0.06);
    font-family: 'Montserrat', sans-serif; font-size: 13px;
    color: #fff; outline: none; width: 220px;
}
.gr-sticky-newsletter__input::placeholder { color: rgba(255,255,255,0.3); }
.gr-sticky-newsletter__input:focus { border-color: #FD0055; }
.gr-sticky-newsletter__btn {
    padding: 10px 22px; background: #FD0055; color: #fff;
    border: none; border-radius: 50px; font-family: 'Montserrat', sans-serif;
    font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.gr-sticky-newsletter__close {
    background: none; border: none; color: rgba(255,255,255,0.4);
    font-size: 20px; cursor: pointer; padding: 4px 8px;
    position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
}
.gr-sticky-newsletter__close:hover { color: #fff; }


/* ─── Fix sticky TOC - override parent overflow ─── */
.gr-post-page,
.gr-post-page .wrapper,
.gr-post-page #wrapper,
.gr-post-page #content,
.gr-post-page .site,
.gr-post-page #page {
    overflow: visible !important;
    overflow-x: clip !important;
}


/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .gr-post-layout { grid-template-columns: 1fr; gap: 0; }
    .gr-post-toc { display: none; }
    .gr-post-related__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .gr-post-hero { padding: 36px 20px 44px; }
    .gr-post-hero h1 { font-size: 28px; letter-spacing: -1px; }
    .gr-post-layout { padding: 0 20px 60px; }
    .gr-post-related { padding: 60px 20px; }
    .gr-post-related__grid { grid-template-columns: 1fr; }
    .gr-post-related__header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .gr-post-content .printables { flex-direction: column; text-align: center; }
    .gr-sticky-newsletter { flex-direction: column; gap: 10px; padding: 16px 20px; }
    .gr-sticky-newsletter__input { width: 100%; }
    .gr-sticky-newsletter__mc { width: 100%; }
    .gr-sticky-newsletter__close { top: 8px; right: 8px; transform: none; }
    .gr-post-share { flex-wrap: wrap; }
}
