/* ========================================
   HAIRCOLORGPT CHAT SHARE STYLES
   Replica esatta dello stile della chat nativa
   ======================================== */

/* Typography uses the shared UI font stack loaded via hcgpt-ui-fonts (Google Fonts). */

/* Reset e base */
.hcgpt-chat-share {
    line-height: var(--hcgpt-line-height-160);
    font-family: var(--hcgpt-font-sans);
    max-width: 800px;
    margin: -16px auto 0 auto;
    padding: 20px;
}

/* Header della chat — brand pass (was teal #1bbbb4 monocromo) */
.hcgpt-chat-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 22px;
    position: relative;
    border-bottom: 0;
}

.hcgpt-chat-header::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 80px;
    height: 3px;
    transform: translateX(-50%);
    background: var(--hcgpt-brand-gradient);
    border-radius: 999px;
}

.hcgpt-chat-title {
    font-family: var(--hcgpt-font-editorial, "Neuton", Georgia, serif);
    font-size: clamp(var(--hcgpt-font-size-28, 28px), 4vw, var(--hcgpt-font-size-35, 36px));
    font-weight: var(--hcgpt-font-weight-black, 900);
    line-height: var(--hcgpt-line-height-110, 1.1);
    letter-spacing: 0;
    text-wrap: balance;
    background: var(--hcgpt-brand-gradient);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
    margin: 0 0 10px 0;
}

.hcgpt-chat-subtitle {
    font-family: var(--hcgpt-font-mono, "Roboto Mono", Menlo, Consolas, monospace);
    font-size: var(--hcgpt-font-size-11, 11px);
    font-weight: var(--hcgpt-font-weight-bold, 700);
    letter-spacing: var(--hcgpt-letter-spacing-008em, .08em);
    text-transform: uppercase;
    color: var(--hcgpt-color-text-muted, #6b7280);
    margin: 0;
}

/* Contenuto principale */
.hcgpt-chat-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-left: 35px;
}

/* Themify Parallax replicated styles for bot messages */
.hcgpt-chat-share .hcgpt-message.bot {
    font-family: var(--hcgpt-font-sans);
}

/* Headings — brand pass (Variant A full brand) */
.hcgpt-chat-share .hcgpt-message.bot h1,
.hcgpt-chat-share .hcgpt-chat-bubble h1 {
    font-family: var(--hcgpt-font-editorial, "Neuton", Georgia, serif);
    font-size: var(--hcgpt-font-size-32, 32px);
    font-weight: var(--hcgpt-font-weight-black, 900);
    line-height: var(--hcgpt-line-height-115, 1.15);
    letter-spacing: 0;
    text-wrap: balance;
    background: var(--hcgpt-brand-gradient);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
    margin: 24px 0 14px;
}

.hcgpt-chat-share .hcgpt-message.bot h2,
.hcgpt-chat-share .hcgpt-chat-bubble h2 {
    font-family: var(--hcgpt-font-editorial, "Neuton", Georgia, serif);
    font-size: var(--hcgpt-font-size-26, 26px);
    font-weight: var(--hcgpt-font-weight-black, 900);
    line-height: var(--hcgpt-line-height-115, 1.15);
    letter-spacing: 0;
    text-wrap: balance;
    background: var(--hcgpt-brand-gradient);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
    margin: 22px 0 12px;
}

.hcgpt-chat-share .hcgpt-message.bot h2::before {
    content: none !important;
}

.hcgpt-chat-share .hcgpt-message.bot h3,
.hcgpt-chat-share .hcgpt-chat-bubble h3 {
    font-family: var(--hcgpt-font-mono, "Roboto Mono", Menlo, Consolas, monospace);
    font-size: var(--hcgpt-font-size-11, 11px);
    font-weight: var(--hcgpt-font-weight-bold, 700);
    letter-spacing: var(--hcgpt-letter-spacing-008em, .08em);
    text-transform: uppercase;
    line-height: var(--hcgpt-line-height-120, 1.2);
    color: var(--hcgpt-brand-1, #6e3aff);
    margin: 18px 0 10px;
}

.hcgpt-chat-share .hcgpt-message.bot h4 {
    font-size: var(--hcgpt-font-size-22);
    font-weight: var(--hcgpt-font-weight-medium);
    color: #444444;
    font-family: var(--hcgpt-font-heading);
    margin: 12px 0 8px 0;
    line-height: var(--hcgpt-line-height-130);
}

.hcgpt-chat-share .hcgpt-message.bot h5 {
    font-size: var(--hcgpt-font-size-18);
    font-weight: var(--hcgpt-font-weight-medium);
    color: #444444;
    font-family: var(--hcgpt-font-heading);
    margin: 10px 0 6px 0;
    line-height: var(--hcgpt-line-height-130);
}

.hcgpt-chat-share .hcgpt-message.bot h6 {
    font-size: var(--hcgpt-font-size-16);
    font-weight: var(--hcgpt-font-weight-medium);
    color: #444444;
    font-family: var(--hcgpt-font-heading);
    margin: 8px 0 5px 0;
    line-height: var(--hcgpt-line-height-130);
}

/* Body text */
.hcgpt-chat-share .hcgpt-message.bot p {
    font-size: var(--hcgpt-font-size-14);
    font-weight: var(--hcgpt-font-weight-regular);
    color: #444444;
    font-family: var(--hcgpt-font-sans);
    line-height: var(--hcgpt-line-height-160);
    margin: 0 0 12px 0;
}

/* Strong and emphasis — brand violet for emphasis */
.hcgpt-chat-share .hcgpt-message.bot strong,
.hcgpt-chat-share .hcgpt-chat-bubble strong {
    font-weight: var(--hcgpt-font-weight-bold);
    color: var(--hcgpt-brand-1, #6e3aff);
    font-family: var(--hcgpt-font-sans);
}

.hcgpt-chat-share .hcgpt-message.bot em {
    font-style: italic;
    color: #444444;
    font-family: var(--hcgpt-font-sans);
}

/* Lists - replicated Themify style */
.hcgpt-chat-share .hcgpt-message.bot ul {
    list-style: none;
    padding-left: 0;
    margin: 15px 0;
}

.hcgpt-chat-share .hcgpt-message.bot ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: var(--hcgpt-font-size-14);
    font-weight: var(--hcgpt-font-weight-regular);
    color: #444444;
    font-family: var(--hcgpt-font-sans);
    line-height: var(--hcgpt-line-height-160);
}

.hcgpt-chat-share .hcgpt-message.bot ul li::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 9px !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: var(--hcgpt-brand-gradient) !important;
}

/* Ordered lists with Themify style numbering */
.hcgpt-chat-share .hcgpt-message.bot ol {
    list-style: none;
    counter-reset: list-item;
    padding-left: 0;
    margin: 15px 0;
}

.hcgpt-chat-share .hcgpt-message.bot ol li {
    position: relative;
    padding-left: 34px;
    margin-bottom: 8px;
    font-size: var(--hcgpt-font-size-14);
    font-weight: var(--hcgpt-font-weight-regular);
    color: #444444;
    font-family: var(--hcgpt-font-sans);
    line-height: var(--hcgpt-line-height-160);
    counter-increment: list-item;
}

.hcgpt-chat-share .hcgpt-message.bot ol li::before {
    content: counter(list-item) !important;
    position: absolute !important;
    left: 0 !important;
    top: 2px !important;
    width: 22px !important;
    height: 22px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: var(--hcgpt-brand-gradient) !important;
    color: #fff !important;
    font-family: var(--hcgpt-font-mono, "Roboto Mono", monospace) !important;
    font-size: 11px !important;
    font-weight: var(--hcgpt-font-weight-bold, 700) !important;
    line-height: 1 !important;
}

/* Code blocks */
.hcgpt-chat-share .hcgpt-message.bot code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: var(--hcgpt-font-mono);
    font-size: var(--hcgpt-font-size-13);
    color: #333;
}

.hcgpt-chat-share .hcgpt-message.bot pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 15px 0;
}

.hcgpt-chat-share .hcgpt-message.bot pre code {
    background: none;
    padding: 0;
    border-radius: 0;
}

/* Links — brand violet with hover text-gradient */
.hcgpt-chat-share .hcgpt-message.bot a,
.hcgpt-chat-share .hcgpt-chat-bubble a {
    color: var(--hcgpt-brand-1, #6e3aff);
    text-decoration: none;
    border-bottom: 1px solid color-mix(in srgb, var(--hcgpt-brand-1, #6e3aff) 30%, transparent);
    font-family: var(--hcgpt-font-sans);
    transition: border-color .2s ease;
}

.hcgpt-chat-share .hcgpt-message.bot a:hover,
.hcgpt-chat-share .hcgpt-chat-bubble a:hover {
    background: var(--hcgpt-brand-gradient);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
    border-bottom-color: transparent;
}

/* Bot message wrapper and icon styles */
.hcgpt-chat-share .hcgpt-message.bot .hcgpt-message-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.hcgpt-chat-share .hcgpt-message.bot .hcgpt-message-star-icon {
    width: 24px !important;
    height: 24px !important;
    flex-shrink: 0 !important;
    margin-top: 2px !important;
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
    animation: none !important;
    /* Ensure no animations in public chat */
}

/* RIMOSSI STILI SPECIFICI: ora usiamo quelli definiti in frontend.css */

/* H1..H3 are styled with brand gradient/violet in the rules above.
   H4..H6 stay neutral charcoal so they don't inherit a theme color that
   may be invisible on the chat-share white background (e.g. Parallax: #424242). */
.hcgpt-chat-share .hcgpt-chat-bubble :is(h4, h5, h6) {
    color: var(--hcgpt-color-text, #1a1a1a);
}

/* Responsive */
@media (max-width: 767.98px) {
    .hcgpt-chat-share {
        padding: 15px;
    }

    .hcgpt-chat-title {
        font-size: var(--hcgpt-font-size-32);
    }

    .hcgpt-chat-content {
        padding: 20px;
    }

    /* Responsive adjustments for headings */
    .hcgpt-chat-share .hcgpt-message.bot h1 {
        font-size: var(--hcgpt-font-size-28);
    }

    .hcgpt-chat-share .hcgpt-message.bot h2 {
        font-size: var(--hcgpt-font-size-24);
    }

    .hcgpt-chat-share .hcgpt-message.bot h3 {
        font-size: var(--hcgpt-font-size-20);
    }
}

/* User question pill — gradient border (matches in-app .hcgpt-turn--user) */
.hcgpt-chat-question {
    background:
        linear-gradient(var(--hcgpt-color-surface, #fff), var(--hcgpt-color-surface, #fff)) padding-box,
        var(--hcgpt-brand-gradient) border-box !important;
    border: 1px solid transparent !important;
    color: var(--hcgpt-color-text, #1a1a1a) !important;
    align-self: flex-end !important;
    border-bottom-right-radius: 4px !important;
    text-align: left !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    padding: 12px 16px !important;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    border-bottom-left-radius: 18px;
    max-width: 85% !important;
    line-height: var(--hcgpt-line-height-150) !important;
    word-wrap: break-word !important;
    margin-bottom: 10px !important;
    position: relative !important;
}

/* Footer — gradient divider sostituisce il border #eee */
.hcgpt-chat-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 0;
    color: var(--hcgpt-color-text-muted, #6b7280);
    font-size: var(--hcgpt-font-size-14, 14px);
    position: relative;
}

.hcgpt-chat-footer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: var(--hcgpt-brand-gradient);
    opacity: .42;
}

/* ===== Shared-chat CTA · Variant B (bordered gradient card) =====
   Rendered by templates/logs/single-chat.php after the messages loop.
   Light + dark mode via --hcgpt-color-surface token (theme-aware).
   ============================================================= */
.hcgpt-chat-share .hcgpt-chat-cta {
    margin: 36px 0 0;
    padding: 28px 28px;
    background:
        linear-gradient(var(--hcgpt-color-surface, #fff), var(--hcgpt-color-surface, #fff)) padding-box,
        var(--hcgpt-brand-gradient) border-box;
    border: 1.5px solid transparent;
    border-radius: 18px;
    color: var(--hcgpt-color-text, #111827);
    text-align: center;
    box-shadow: 0 12px 30px -16px rgba(110, 58, 255, .22);
}

.hcgpt-chat-share .hcgpt-chat-cta__eyebrow {
    display: inline-block;
    margin: 0 0 8px;
    font-family: var(--hcgpt-font-mono, "Roboto Mono", Menlo, Consolas, monospace);
    font-size: var(--hcgpt-font-size-10, 10px);
    font-weight: var(--hcgpt-font-weight-bold, 700);
    letter-spacing: var(--hcgpt-letter-spacing-014em, .14em);
    text-transform: uppercase;
    color: var(--hcgpt-color-text-muted, #6b7280);
    line-height: 1.2;
}

.hcgpt-chat-share .hcgpt-chat-cta__title {
    font-family: var(--hcgpt-font-editorial, "Neuton", Georgia, serif);
    font-weight: var(--hcgpt-font-weight-black, 800);
    font-size: clamp(var(--hcgpt-font-size-22, 22px), 3vw, var(--hcgpt-font-size-28, 28px));
    line-height: 1.1;
    margin: 0 0 8px;
    text-wrap: balance;
    background: var(--hcgpt-brand-gradient);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
}

.hcgpt-chat-share .hcgpt-chat-cta__sub {
    color: var(--hcgpt-color-text-muted, #6b7280);
    font-size: var(--hcgpt-font-size-14, 14px);
    line-height: var(--hcgpt-line-height-150, 1.5);
    margin: 0 auto 18px;
    max-width: 480px;
}

.hcgpt-chat-share .hcgpt-chat-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: var(--hcgpt-brand-gradient);
    color: #fff;
    border: 0;
    border-radius: 9999px;
    font-size: var(--hcgpt-font-size-14, 14px);
    font-weight: var(--hcgpt-font-weight-bold, 700);
    text-decoration: none;
    cursor: pointer;
    transition: filter .15s ease, transform .15s ease, box-shadow .15s ease;
    box-shadow: 0 4px 14px -2px rgba(110, 58, 255, .35);
}

.hcgpt-chat-share .hcgpt-chat-cta__btn:hover,
.hcgpt-chat-share .hcgpt-chat-cta__btn:focus-visible {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px -2px rgba(110, 58, 255, .42);
    color: #fff;
    text-decoration: none;
}

.hcgpt-chat-share .hcgpt-chat-cta__arrow {
    width: 16px;
    height: 16px;
    transition: transform .15s ease;
}

.hcgpt-chat-share .hcgpt-chat-cta__btn:hover .hcgpt-chat-cta__arrow {
    transform: translateX(2px);
}

/* Dark mode — token --hcgpt-color-surface already flips, ma il box-shadow violet
   è meno visibile su scuro: ammorbidisco. */
:where(.hcgpt-scope:is([data-hcgpt-theme="dark"], [data-hcgpt-resolved-theme="dark"])) .hcgpt-chat-cta {
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .55);
}

@media (prefers-color-scheme: dark) {
    :where(.hcgpt-scope[data-hcgpt-theme="system"]) .hcgpt-chat-cta {
        box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .55);
    }
}

/* Responsive */
@media (max-width: 767.98px) {
    .hcgpt-chat-share .hcgpt-chat-cta {
        padding: 22px 18px;
        margin-top: 28px;
    }
    .hcgpt-chat-share .hcgpt-chat-cta__title {
        font-size: var(--hcgpt-font-size-22, 22px);
    }
}








/* ========================================
   Chat Share Modal (migrated from frontend.css)
   ======================================== */

/* ---------- 25. POPUP CONDIVISIONE STILE GEMINI -------------------- */
.hcgpt-share-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: var(--hcgpt-overlay-backdrop-bg, rgba(0, 0, 0, 0.6)) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    backdrop-filter: blur(4px) !important;
    z-index: 2147483646 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    animation: fadeIn 0.15s ease-out !important;
}

.hcgpt-share-modal {
    max-width: 552px !important;
    width: 90% !important;
    background: var(--hcgpt-overlay-bg, var(--hcgpt-color-surface, #fff)) !important;
    color: var(--hcgpt-color-text, #202124) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25) !important;
    animation: slideUp 0.15s ease-out !important;
    overflow: hidden !important;
    font-family: var(--hcgpt-font-sans) !important;
    z-index: 2147483647 !important;
}

.hcgpt-share-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 24px 24px 16px 24px !important;
    border-bottom: none !important;
}

.hcgpt-share-title {
    font-size: var(--hcgpt-font-size-22, 22px) !important;
    font-weight: var(--hcgpt-font-weight-black, 900) !important;
    margin: 0 !important;
    line-height: var(--hcgpt-line-height-110, 1.1) !important;
    font-family: var(--hcgpt-font-editorial, "Neuton", Georgia, serif) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    background: var(--hcgpt-brand-gradient) !important;
    -webkit-background-clip: text !important;
            background-clip: text !important;
    color: transparent !important;
}

.hcgpt-share-close {
    background: none !important;
    border: none !important;
    color: #5f6368 !important;
    cursor: pointer !important;
    padding: 8px !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.2s ease !important;
}

.hcgpt-share-close:hover {
    background-color: #f1f3f4 !important;
}

.hcgpt-share-body {
    padding: 0 24px 24px 24px !important;
}

/* Container del link */
.hcgpt-link-container {
    background: var(--hcgpt-color-surface-2, #f5f5f7) !important;
    border-radius: 12px !important;
    padding: 12px !important;
    margin-bottom: 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

/* Link display — truncate single-line with ellipsis; title attribute (set in JS)
   provides the full URL on hover as native tooltip. min-width:0 is needed inside
   a flex parent to actually let the element shrink and trigger the ellipsis. */
.hcgpt-share-link-display {
    flex: 1 !important;
    min-width: 0 !important;
    display: block !important;
    font-size: var(--hcgpt-font-size-13, 13px) !important;
    color: var(--hcgpt-brand-1, #6e3aff) !important;
    text-decoration: none !important;
    font-family: var(--hcgpt-font-mono, "Roboto Mono", monospace) !important;
    line-height: var(--hcgpt-line-height-140, 1.4) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-break: normal !important;
}

.hcgpt-share-link-display:hover {
    text-decoration: underline !important;
}

/* Copy button — brand gradient pill (was Google blue) */
.hcgpt-share-copy {
    background: var(--hcgpt-brand-gradient) !important;
    color: #fff !important;
    border: 0 !important;
    padding: 10px 18px !important;
    border-radius: 9999px !important;
    font-size: var(--hcgpt-font-size-13, 13px) !important;
    font-weight: var(--hcgpt-font-weight-bold, 700) !important;
    cursor: pointer !important;
    transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: auto !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    box-shadow: 0 4px 12px -2px rgba(110, 58, 255, 0.32) !important;
}

.hcgpt-share-copy:hover {
    filter: brightness(1.06) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px -2px rgba(110, 58, 255, 0.4) !important;
    background: var(--hcgpt-brand-gradient) !important;
}

/* Disclaimer */
.hcgpt-disclaimer {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 16px !important;
    background: #fefefe !important;
    border-radius: 8px !important;
    margin-bottom: 20px !important;
}

.hcgpt-info-icon {
    color: #5f6368 !important;
    flex-shrink: 0 !important;
    margin-top: 2px !important;
}

.hcgpt-disclaimer-text {
    font-size: var(--hcgpt-font-size-14) !important;
    color: #5f6368 !important;
    line-height: var(--hcgpt-line-height-150) !important;
}

.hcgpt-disclaimer-text a {
    color: var(--hcgpt-brand-1, #6e3aff) !important;
    text-decoration: none !important;
    border-bottom: 1px solid color-mix(in srgb, var(--hcgpt-brand-1, #6e3aff) 30%, transparent) !important;
    transition: border-color 0.15s ease !important;
}

.hcgpt-disclaimer-text a:hover {
    background: var(--hcgpt-brand-gradient) !important;
    -webkit-background-clip: text !important;
            background-clip: text !important;
    color: transparent !important;
    border-bottom-color: transparent !important;
    text-decoration: none !important;
}

/* Divider — gradient soft */
.hcgpt-divider {
    height: 1px !important;
    background: var(--hcgpt-brand-gradient) !important;
    opacity: 0.35 !important;
    border: 0 !important;
    margin: 18px 0 !important;
}

/* Social Media Container */
.hcgpt-social-container {
    display: flex !important;
    justify-content: space-between !important;
    gap: 16px !important;
}

.hcgpt-social-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    flex: 1 !important;
}

/* Social buttons — Stile A: square-rounded card, neutral surface, hover gradient border.
   Sostituisce i loghi rotondi pieni (LinkedIn blu, Facebook blu, X nero, Reddit arancio)
   con glyph monocromi che ereditano `currentColor`. Vedi mockup
   docs/mockups/share-modal-brand-proposals.html — opzione A. */
.hcgpt-social-btn {
    background: var(--hcgpt-color-surface, #fff) !important;
    border: 1px solid var(--hcgpt-color-border, #e5e7eb) !important;
    border-radius: 12px !important;
    width: 48px !important;
    height: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: var(--hcgpt-color-text, #111827) !important;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease !important;
}

.hcgpt-social-btn:hover {
    background:
        linear-gradient(var(--hcgpt-color-surface, #fff), var(--hcgpt-color-surface, #fff)) padding-box,
        var(--hcgpt-brand-gradient) border-box !important;
    border-color: transparent !important;
    transform: translateY(-1px) !important;
}

.hcgpt-social-btn svg {
    width: 22px !important;
    height: 22px !important;
}

.hcgpt-social-label {
    font-size: var(--hcgpt-font-size-14) !important;
    color: #5f6368 !important;
    font-weight: var(--hcgpt-font-weight-regular) !important;
    text-align: center !important;
}

/* Animazioni per il popup */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive per il popup stile Gemini */
@media (max-width: 600px) {
    .hcgpt-share-modal {
        width: 95% !important;
        max-width: 95% !important;
        margin: 20px auto !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
    }

    .hcgpt-share-header {
        padding: 20px 20px 12px 20px !important;
    }

    .hcgpt-share-title {
        font-size: var(--hcgpt-font-size-20) !important;
    }

    .hcgpt-share-body {
        padding: 0 20px 20px 20px !important;
    }

    .hcgpt-link-container {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        padding: 12px !important;
    }

    .hcgpt-share-copy {
        width: 100% !important;
        justify-content: center !important;
    }

    .hcgpt-social-container {
        flex-wrap: wrap !important;
        gap: 12px !important;
        justify-content: center !important;
    }

    .hcgpt-social-item {
        flex: 0 0 calc(50% - 6px) !important;
        max-width: calc(50% - 6px) !important;
    }

    .hcgpt-social-btn {
        width: 56px !important;
        height: 56px !important;
    }

    .hcgpt-social-btn svg {
        width: 42px !important;
        height: 42px !important;
    }

    .hcgpt-disclaimer {
        padding: 12px !important;
    }
}

/* Dark theme overrides */
:where(.hcgpt-scope:is([data-hcgpt-theme="dark"], [data-hcgpt-resolved-theme="dark"])) .hcgpt-share-title {
    color: var(--hcgpt-color-text) !important;
}

:where(.hcgpt-scope:is([data-hcgpt-theme="dark"], [data-hcgpt-resolved-theme="dark"])) .hcgpt-share-close {
    color: var(--hcgpt-color-text-muted) !important;
}

:where(.hcgpt-scope:is([data-hcgpt-theme="dark"], [data-hcgpt-resolved-theme="dark"])) .hcgpt-share-close:hover {
    background-color: var(--hcgpt-color-surface-2) !important;
    color: var(--hcgpt-color-text) !important;
}

:where(.hcgpt-scope:is([data-hcgpt-theme="dark"], [data-hcgpt-resolved-theme="dark"])) .hcgpt-link-container {
    background: var(--hcgpt-color-surface-2) !important;
}

:where(.hcgpt-scope:is([data-hcgpt-theme="dark"], [data-hcgpt-resolved-theme="dark"])) .hcgpt-share-link-display {
    color: var(--hcgpt-accent) !important;
}

:where(.hcgpt-scope:is([data-hcgpt-theme="dark"], [data-hcgpt-resolved-theme="dark"])) .hcgpt-share-copy {
    background: var(--hcgpt-accent) !important;
    color: var(--hcgpt-color-on-primary) !important;
}

:where(.hcgpt-scope:is([data-hcgpt-theme="dark"], [data-hcgpt-resolved-theme="dark"])) .hcgpt-disclaimer {
    background: var(--hcgpt-color-surface-2) !important;
}

:where(.hcgpt-scope:is([data-hcgpt-theme="dark"], [data-hcgpt-resolved-theme="dark"])) .hcgpt-info-icon {
    color: var(--hcgpt-color-text-muted) !important;
}

:where(.hcgpt-scope:is([data-hcgpt-theme="dark"], [data-hcgpt-resolved-theme="dark"])) .hcgpt-disclaimer-text {
    color: var(--hcgpt-color-text-muted) !important;
}

:where(.hcgpt-scope:is([data-hcgpt-theme="dark"], [data-hcgpt-resolved-theme="dark"])) .hcgpt-disclaimer-text a {
    color: var(--hcgpt-accent) !important;
}

@media (prefers-color-scheme: dark) {
    :where(.hcgpt-scope[data-hcgpt-theme="system"]) .hcgpt-share-title {
        color: var(--hcgpt-color-text) !important;
    }

    :where(.hcgpt-scope[data-hcgpt-theme="system"]) .hcgpt-share-close {
        color: var(--hcgpt-color-text-muted) !important;
    }

    :where(.hcgpt-scope[data-hcgpt-theme="system"]) .hcgpt-share-close:hover {
        background-color: var(--hcgpt-color-surface-2) !important;
        color: var(--hcgpt-color-text) !important;
    }

    :where(.hcgpt-scope[data-hcgpt-theme="system"]) .hcgpt-link-container {
        background: var(--hcgpt-color-surface-2) !important;
    }

    :where(.hcgpt-scope[data-hcgpt-theme="system"]) .hcgpt-share-link-display {
        color: var(--hcgpt-accent) !important;
    }

    :where(.hcgpt-scope[data-hcgpt-theme="system"]) .hcgpt-share-copy {
        background: var(--hcgpt-accent) !important;
        color: var(--hcgpt-color-on-primary) !important;
    }

    :where(.hcgpt-scope[data-hcgpt-theme="system"]) .hcgpt-disclaimer {
        background: var(--hcgpt-color-surface-2) !important;
    }

    :where(.hcgpt-scope[data-hcgpt-theme="system"]) .hcgpt-info-icon {
        color: var(--hcgpt-color-text-muted) !important;
    }

    :where(.hcgpt-scope[data-hcgpt-theme="system"]) .hcgpt-disclaimer-text {
        color: var(--hcgpt-color-text-muted) !important;
    }

    :where(.hcgpt-scope[data-hcgpt-theme="system"]) .hcgpt-disclaimer-text a {
        color: var(--hcgpt-accent) !important;
    }
}
