/* ==========================================================================
   SociableKIT Widget Detector — page-scoped styles.

   The header/footer and global tokens (--navy, --black, --white, --grey,
   Figtree/Satoshi fonts, .btn) come from the site's shared partials
   (ssg/partials/head.php + header.php + footer.php), which this page
   includes directly for pixel parity with the homepage/product pages.

   The .hero-section / .hero-title / .hero-trust / .btn-hero-cta /
   .hero-benefits rules below are carried over from the product page
   template (ssg/product-pages/content.php) verbatim, since that CSS is
   page-scoped there too rather than living in the shared stylesheet.
   ========================================================================== */

.hero-section {
    background: #fafbfc;
    padding: 148px 0 64px;
    position: relative;
}

.hero-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0;
    margin: 32px 0 28px;
    list-style: none;
    letter-spacing: 0.04em;
    color: #64748b;
}

.hero-breadcrumb__item {
    font-size: 14px;
    line-height: 1.35;
    font-weight: 400;
    color: #94A3B8;
}

.hero-breadcrumb__item + .hero-breadcrumb__item::before {
    content: "/";
    padding: 0 8px;
    color: #94a3b8;
}

.hero-breadcrumb a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
}

.hero-breadcrumb a:hover {
    color: #0f172a;
    text-decoration: none;
}

.detect-hero-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.hero-trust {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 6px;
    gap: 10px;
    background: #fff;
    border: 1px solid #e8ecf2;
    border-radius: 100px;
    padding: 6px 16px 6px 8px;
    margin-bottom: 28px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
}

.hero-trust__avatars {
    display: flex;
}

.hero-trust__avatars img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: -8px;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}

.hero-trust__avatars img:last-child {
    margin-right: 0;
}

.hero-trust__stars {
    color: #f59e0b;
    font-size: 13px;
    letter-spacing: -1px;
    margin-left: 4px;
}

.hero-trust__text {
    color: #475569;
    text-decoration: none;
    transition: color 0.15s;
}

.hero-trust__text:hover {
    color: #0f172a;
}

.hero-title {
    font-family: "Satoshi", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: clamp(38px, 5vw, 58px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.035em;
    color: #0f172a;
    margin: 0 0 24px;
}

.hero-title em {
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-weight: 400;
    color: #2563eb;
}

.fonts-loaded .hero-title em {
    font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
}

.hero-subtitle {
    font-family: "Satoshi", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #475569;
    max-width: 560px;
    margin: 0 auto 36px;
}

/* ---------- Search form ---------- */
.detect-form {
    max-width: 620px;
    margin: 0 auto;
}

.detect-input-wrap {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 6px 6px 6px 20px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.detect-input-icon {
    color: #94A3B8;
    flex-shrink: 0;
    margin-right: 12px;
}

.detect-form input[type="text"] {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 14px 8px;
    font-family: "Satoshi", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    color: #0f172a;
    min-width: 0;
}

.detect-form input[type="text"]::placeholder {
    color: #9CA2AB;
}

/* Hero CTA button — carried over from the product-page template. */
.hero-section .detect-form button.btn.btn-hero-cta {
    font-size: 17px;
    font-weight: 600;
    font-family: "Inter", system-ui, sans-serif;
    letter-spacing: -0.005em;
}

.btn-hero-cta {
    display: inline-flex;
    align-items: center;
    background-color: #003fdb !important;
    color: #fff !important;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 17px;
    font-weight: 600;
    padding: 16px 28px;
    border-radius: 50px;
    border: none;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow:
        0 10px 36px rgba(0, 63, 219, 0.32),
        0 4px 14px rgba(0, 63, 219, 0.22),
        0 0 28px rgba(37, 99, 235, 0.2);
    text-decoration: none;
    white-space: nowrap;
}

.btn-hero-cta:hover:not(:disabled),
.btn-hero-cta:focus:not(:disabled) {
    background-color: #0034b4 !important;
    color: #fff;
    transform: translateY(-2px);
    box-shadow:
        0 14px 44px rgba(0, 63, 219, 0.38),
        0 6px 20px rgba(0, 63, 219, 0.28),
        0 0 36px rgba(59, 130, 246, 0.28);
    text-decoration: none;
}

.btn-hero-cta:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.cta-arrow-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    margin-left: 10px;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.cta-arrow-circle svg {
    color: #fff;
    transition: transform 0.2s ease;
}

.btn-hero-cta:hover:not(:disabled) .cta-arrow-circle {
    background: rgba(255, 255, 255, .3);
    transform: translateX(3px);
}

.detect-hint {
    font-family: "Satoshi", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
    color: #94a3b8;
    margin: 16px 0 0;
}

.hero-benefits {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #475569;
    margin-top: 32px;
}

.hero-benefits span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-benefits svg {
    color: #22c55e;
    flex-shrink: 0;
}

/* ---------- Results ---------- */
.detect-results-section {
    padding: 8px 0 100px;
    background: #fafbfc;
}

.detect-results {
    max-width: 760px;
    margin: 0 auto;
}

.detect-status {
    text-align: center;
    padding: 56px 24px;
    color: #64748b;
    font-family: "Satoshi", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    background: #fff;
    border: 1px dashed #e2e8f0;
    border-radius: 16px;
}

.detect-status svg {
    color: #B9C3D6;
    margin-bottom: 14px;
}

.detect-status.detect-error {
    color: #b3261e;
    background: #fdecea;
    border: 1px solid #f6c9c4;
}

.detect-status.detect-error svg {
    color: #d94f45;
}

.detect-status.detect-empty {
    background: #fff;
    border: 1px solid #e2e8f0;
}

.detect-spinner {
    width: 34px;
    height: 34px;
    margin: 0 auto 16px;
    border: 3px solid #e2e8f0;
    border-top-color: #003fdb;
    border-radius: 50%;
    animation: detect-spin 0.8s linear infinite;
}

@keyframes detect-spin {
    to {
        transform: rotate(360deg);
    }
}

.detect-count {
    font-family: "Satoshi", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: #64748b;
    margin-bottom: 20px;
}

.detect-count strong {
    color: #0f172a;
    font-weight: 700;
}

.detect-widget-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #fff;
    border: 1px solid #e8ecf2;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 14px;
    box-shadow: 0px 4px 14px rgba(67, 89, 124, 0.14);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.detect-widget-card:hover {
    transform: translateY(-2px);
    box-shadow: 0px 10px 26px rgba(67, 89, 124, 0.2);
}

.detect-widget-card .detect-widget-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.detect-widget-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3C83FF 0%, #0034b4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.detect-widget-info h3 {
    font-family: "Satoshi", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 700;
    font-size: 17px;
    color: #0f172a;
    margin: 0 0 4px;
}

.detect-widget-info span {
    font-family: "Satoshi", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 13px;
    color: #94A3B8;
}

.detect-widget-card a.detect-customize-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    background: #0f172a;
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    font-family: "Satoshi", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.detect-widget-card a.detect-customize-btn:hover {
    background: #003fdb;
    color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .hero-section {
        padding: 136px 0 48px;
    }

    .hero-title {
        font-size: clamp(32px, 6vw, 44px);
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 96px 0 40px;
    }

    .hero-breadcrumb {
        margin: 10px 0 20px;
    }

    .hero-trust {
        font-size: 13px;
        padding: 6px 14px 6px 8px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-benefits {
        justify-content: center;
        text-align: center;
        gap: 8px 14px;
        font-size: 12.5px;
        margin-top: 24px;
    }

    .detect-input-wrap {
        flex-wrap: wrap;
        border-radius: 18px;
        padding: 14px;
    }

    .detect-form input[type="text"] {
        width: 100%;
        padding: 8px 0 14px;
    }

    .btn-hero-cta {
        width: 100%;
        justify-content: center;
    }

    .detect-results-section {
        padding: 4px 0 64px;
    }

    .detect-widget-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .detect-widget-card a.detect-customize-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 400px) {
    .hero-trust__text {
        display: block;
        margin-top: 2px;
    }
}
