/* ==========================================================================
   ToolGator: Founder Highlight Styles (Single & Archive)
   Author: Aidweb Solutions LLP
   ========================================================================== */

/* Color Palette */
:root {
    --fh-bg-dark: #080c16;
    --fh-surface: #0f172a;
    --fh-surface-card: #131d31;
    --fh-surface-hover: #19253e;
    --fh-border: rgba(255, 255, 255, 0.09);
    --fh-border-focus: rgba(99, 102, 241, 0.5);
    --fh-text-main: #f8fafc;
    --fh-text-muted: #94a3b8;
    --fh-text-dim: #64748b;
    --fh-accent-primary: #3b82f6;
    --fh-accent-purple: #8224e3;
    --fh-accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --fh-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Wrapper */
.aidweb-fh-single-wrapper,
.aidweb-fh-archive-wrapper {
    background-color: var(--fh-bg-dark);
    color: var(--fh-text-main);
    font-family: var(--fh-font-sans);
    padding: 40px 0 80px;
    min-height: 100vh;
}

/* ==========================================================================
   HERO SECTION (2-COLUMN SPLIT - MATCHES ATTACHED IMAGE)
   ========================================================================== */
.aidweb-fh-hero {
    padding: 30px 0 50px;
    border-bottom: 1px solid var(--fh-border);
    margin-bottom: 50px;
}

.aidweb-fh-pill-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 9999px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #60a5fa;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.aidweb-fh-main-title {
    font-size: clamp(28px, 3.8vw, 44px);
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.aidweb-fh-byline-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.aidweb-fh-byline-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    object-fit: cover;
}

.aidweb-fh-byline-author {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #f1f5f9;
}

.aidweb-fh-byline-time {
    display: block;
    font-size: 13px;
    color: var(--fh-text-dim);
}

.aidweb-fh-guest-box {
    background: var(--fh-surface);
    border: 1px solid var(--fh-border);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.guest-detail-row {
    font-size: 14px;
    margin-bottom: 6px;
    display: flex;
    gap: 8px;
}
.guest-detail-row:last-child {
    margin-bottom: 0;
}
.guest-label {
    color: var(--fh-text-dim);
    font-weight: 500;
    min-width: 70px;
}
.guest-val {
    color: #e2e8f0;
    font-weight: 600;
}

/* Hero inline TOC preview */
.aidweb-fh-hero-toc {
    background: rgba(15, 23, 42, 0.6);
    border-left: 3px solid var(--fh-accent-primary);
    padding: 14px 18px;
    border-radius: 0 10px 10px 0;
}
.hero-toc-heading {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fh-text-muted);
    margin-bottom: 10px;
}
.hero-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.hero-toc-list li {
    margin-bottom: 6px;
}
.hero-toc-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
    display: flex;
    gap: 8px;
}
.hero-toc-link:hover {
    color: #60a5fa;
}
.toc-num {
    color: #64748b;
    font-weight: 600;
}

/* Media Frame (Right Hero Column) */
.aidweb-fh-media-frame {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--fh-surface);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 40px rgba(59, 130, 246, 0.1);
}
.aidweb-fh-image-container img,
.aidweb-fh-hero-image {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.aidweb-fh-video-container iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    display: block;
}

/* ==========================================================================
   STICKY TABLE OF CONTENTS (LEFT SIDEBAR)
   ========================================================================== */
.aidweb-fh-sticky-toc {
    position: sticky;
    top: 100px;
    background: var(--fh-surface);
    border: 1px solid var(--fh-border);
    border-radius: 14px;
    padding: 20px 18px;
    margin-bottom: 40px;
}
.sticky-toc-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fh-text-dim);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--fh-border);
}
.sticky-toc-ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sticky-toc-li {
    margin-bottom: 8px;
}
.sticky-toc-li.level-3 {
    padding-left: 14px;
}
.sticky-toc-a {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #94a3b8;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
    line-height: 1.35;
}
.sticky-toc-a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}
.sticky-toc-a.active {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.2);
    border-left: 3px solid #3b82f6;
    font-weight: 600;
}
.toc-step {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}
.sticky-toc-a.active .toc-step {
    color: #60a5fa;
}

/* ==========================================================================
   ARTICLE ENTRY & TYPOGRAPHY
   ========================================================================== */
.aidweb-fh-article-entry {
    background: var(--fh-surface);
    border: 1px solid var(--fh-border);
    border-radius: 18px;
    padding: clamp(24px, 4vw, 48px);
}

.aidweb-fh-content-body {
    font-size: 17px;
    line-height: 1.75;
    color: #cbd5e1;
}

.aidweb-fh-content-body p {
    margin-bottom: 1.6em;
}

.aidweb-fh-content-body h2 {
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 700;
    color: #ffffff;
    margin-top: 2.2em;
    margin-bottom: 0.8em;
    padding-top: 0.5em;
    letter-spacing: -0.01em;
}

.aidweb-fh-content-body h3 {
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 600;
    color: #f1f5f9;
    margin-top: 1.8em;
    margin-bottom: 0.6em;
}

.aidweb-fh-content-body blockquote {
    margin: 2.2em 0;
    padding: 20px 24px;
    border-left: 4px solid var(--fh-accent-primary);
    background: rgba(15, 23, 42, 0.9);
    border-radius: 0 12px 12px 0;
    color: #e2e8f0;
    font-style: italic;
    font-size: 18px;
    line-height: 1.6;
}

.aidweb-fh-content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2em 0;
    border: 1px solid var(--fh-border);
}

/* Q&A Dialog blocks */
.fh-qa-block {
    margin: 24px 0;
    padding: 18px 22px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 12px;
    border: 1px solid var(--fh-border);
}
.fh-qa-question {
    font-weight: 700;
    color: #60a5fa;
    margin-bottom: 10px;
    font-size: 16px;
}

/* ==========================================================================
   INLINE NEWSLETTER CARD (MATCHES IMAGE)
   ========================================================================== */
.aidweb-fh-newsletter-card {
    background: linear-gradient(135deg, #131d31 0%, #17223b 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    padding: 32px 28px;
    margin: 48px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.newsletter-icon {
    font-size: 28px;
    display: inline-block;
    margin-bottom: 12px;
}

.newsletter-text h3 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.newsletter-text p {
    font-size: 14px;
    color: var(--fh-text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.aidweb-fh-newsletter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.newsletter-input {
    flex: 1 1 240px;
    padding: 12px 18px;
    background: #080c16;
    border: 1px solid var(--fh-border);
    border-radius: 10px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: border 0.2s;
}

.newsletter-input:focus {
    border-color: #3b82f6;
}

.newsletter-btn {
    padding: 12px 28px;
    background: var(--fh-accent-primary);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.newsletter-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.newsletter-status {
    width: 100%;
    font-size: 13px;
    margin-top: 8px;
}

/* ==========================================================================
   ENGAGEMENT BAR (CLAPS & SOCIAL SHARE)
   ========================================================================== */
.aidweb-fh-engagement-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 24px 0;
    border-top: 1px solid var(--fh-border);
    border-bottom: 1px solid var(--fh-border);
    margin: 40px 0;
}

.aidweb-fh-clap-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--fh-surface-card);
    border: 1px solid var(--fh-border);
    padding: 10px 20px;
    border-radius: 9999px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.aidweb-fh-clap-btn:hover {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.03);
}

.aidweb-fh-clap-btn.clapped {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
    color: #60a5fa;
}

.engagement-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-label {
    font-size: 13px;
    color: var(--fh-text-dim);
    margin-right: 4px;
}

.fh-share-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--fh-surface-card);
    border: 1px solid var(--fh-border);
    border-radius: 50%;
    color: #cbd5e1;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.fh-share-icon:hover {
    background: #1e293b;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   COMMENTS SECTION
   ========================================================================== */
.aidweb-fh-comments-section {
    padding-top: 20px;
}

.comments-header .comments-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
}

.aidweb-fh-comments-section .comment-respond {
    background: var(--fh-surface-card);
    border: 1px solid var(--fh-border);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 30px;
}

.aidweb-fh-comments-section .comment-respond textarea,
.aidweb-fh-comments-section .comment-respond input[type="text"],
.aidweb-fh-comments-section .comment-respond input[type="email"] {
    background: #080c16;
    border: 1px solid var(--fh-border);
    color: #ffffff;
    border-radius: 8px;
    padding: 10px 14px;
    width: 100%;
    margin-bottom: 12px;
}

.aidweb-fh-comments-section .comment-respond .submit {
    background: var(--fh-accent-primary);
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.aidweb-fh-comments-section .comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.aidweb-fh-comments-section .comment-list li.comment {
    background: var(--fh-surface-card);
    border: 1px solid var(--fh-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

/* ==========================================================================
   ARCHIVE LISTING (MATCHES TOOLGATOR TOOLS LISTING)
   ========================================================================== */
.aidweb-hub-hero {
    background: radial-gradient(circle at 50% 20%, #162035 0%, #080c16 70%);
    padding: 60px 0 50px;
    border-bottom: 1px solid var(--fh-border);
}

.hub-hero-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 9999px;
    background: rgba(130, 36, 227, 0.2);
    border: 1px solid rgba(130, 36, 227, 0.4);
    color: #c084fc;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.hub-hero-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 14px;
}

.hub-hero-sub {
    font-size: 17px;
    color: var(--fh-text-muted);
    max-width: 650px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.aidweb-hub-search-box {
    max-width: 580px;
    margin: 0 auto 28px;
}

.hub-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.hub-search-input {
    width: 100%;
    padding: 14px 50px 14px 20px;
    background: #0f172a;
    border: 1px solid var(--fh-border);
    border-radius: 9999px;
    color: #ffffff;
    font-size: 15px;
    outline: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: border 0.2s;
}

.hub-search-input:focus {
    border-color: #3b82f6;
}

.hub-search-submit {
    position: absolute;
    right: 8px;
    width: 40px;
    height: 40px;
    background: var(--fh-accent-primary);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.aidweb-category-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.chip-item {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 9999px;
    background: #0f172a;
    border: 1px solid var(--fh-border);
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.chip-item:hover,
.chip-item.active {
    background: var(--fh-accent-primary);
    color: #ffffff;
    border-color: var(--fh-accent-primary);
}

/* CARDS IN ARCHIVE */
.aidweb-hub-content-section {
    padding: 50px 0;
}

.hub-results-count {
    font-size: 14px;
    color: var(--fh-text-muted);
}

.hub-sort-select {
    padding: 6px 12px;
    background: #0f172a;
    border: 1px solid var(--fh-border);
    color: #ffffff;
    border-radius: 8px;
    font-size: 13px;
}

.aidweb-tool-like-card {
    background: var(--fh-surface);
    border: 1px solid var(--fh-border);
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.aidweb-tool-like-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

.card-media-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.aidweb-tool-like-card:hover .card-thumb {
    transform: scale(1.04);
}

.card-overlay-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
}

.play-icon-ring {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 14px;
    padding-left: 2px;
}

.card-duration-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
}

.card-body-wrap {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-author-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.card-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.guest-name {
    font-size: 13px;
    font-weight: 600;
    color: #f1f5f9;
    display: block;
}

.guest-sub {
    font-size: 12px;
    color: var(--fh-text-dim);
}

.card-highlight-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 10px;
}

.card-highlight-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
}

.card-highlight-title a:hover {
    color: #60a5fa;
}

.card-highlight-excerpt {
    font-size: 14px;
    color: var(--fh-text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
    flex: 1;
}

.card-footer-action {
    padding-top: 14px;
    border-top: 1px solid var(--fh-border);
}

.btn-read-highlight {
    font-size: 13px;
    font-weight: 600;
    color: #60a5fa;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: gap 0.2s;
}

.btn-read-highlight:hover {
    color: #93c5fd;
}

.claps-counter-badge {
    font-size: 12px;
    color: var(--fh-text-dim);
    font-weight: 600;
}
