/* ============================================
   EMBED STYLE - SOCIAL PROFESSIONALE
   ============================================ */

/* Card principale */
.embed-card {
    max-width: -webkit-fill-available;
    margin: 0 auto;
    background: var(--background-card);
    border-radius: 16px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Twitter, Helvetica, Arial, sans-serif;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.05), 0 8px 16px rgba(0, 0, 0, 0.05);
}

.embed-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Immagine */
.embed-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.embed-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Contenuto */
.embed-content {
    padding: 16px;
}

/* Header */
.embed-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.embed-brand {
    font-weight: 700;
    font-size: 13px;
}

.embed-separator {
    color: #888;
    font-size: 12px;
}

.embed-channel {
    color: var(--badge-color);
    font-size: 12px;
}

.embed-date {
    color: var(--badge-color);
    font-size: 12px;
}

/* Titolo */
.embed-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-color);
    margin-bottom: 8px;
}

/* Descrizione */
.embed-description {
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
}

/* Footer metriche */
.embed-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 8px;
    border-top: 1px solid #eef2f5;
}

.embed-stats {
    display: flex;
    align-items: center;
    gap: 4px;
}

.embed-icon {
    width: 16px;
    height: 16px;
}

.embed-stats-text {
    color: #666;
    font-size: 13px;
    background: var(--bg-aqua);
    padding: 2px 13px;
}

.embed-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.embed-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.embed-author-name {
    color: #666;
    font-size: 13px;
}

/* CTA */
.embed-cta {
    margin-top: 16px;
    padding: 8px 12px;
    background: var(--bg-dark-medium);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.embed-cta-text {
    color: var(--text-color);
    font-size: 13px;
}

.embed-cta-icon {
    width: 18px;
    height: 18px;
}

/* ============================================
   MODALE EMBED - SOLO CLASSI
   ============================================ */

.embed-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.embed-modal {
    background: var(--background-card-border);
    max-width: 650px;
    width: 90%;
    border-radius: 20px;
    overflow: hidden;
}

.embed-modal-header {
    padding: 16px 20px;
    background: #000;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.embed-modal-title {
    margin: 0;
    font-size: 16px;
}

.embed-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
}

.embed-modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: 70vh;
}

.embed-modal-text {
    color: #666;
    margin-bottom: 12px;
    font-size: 14px;
}

.embed-textarea {
    width: 100%;
    height: 100px;
    padding: 12px;
    font-family: monospace;
    font-size: 12px;
    background: var(--bg-darken-4);
    color: var(--inverse-text-color);
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 12px 0;
    resize: vertical;
}

.embed-preview {}

.embed-preview-title {
    font-size: 12px;
    color: var(--text-color);
    margin-bottom: 8px;
    margin-left: 10px;
}

.embed-preview-content {}

.embed-modal-footer {
    padding: 16px;
    background: var(--background);
    border-top: 1px solid #eee;
    text-align: right;
}

.embed-btn-copy {
    background: #000;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 13px;
}

.embed-btn-close {
    background: #e0e0e0;
    color: #333;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    margin-left: 10px;
    cursor: pointer;
    font-size: 13px;
}

.embed-btn-copy:hover {
    background: #333;
}

.embed-btn-close:hover {
    background: #ccc;
}

/* ============================================
   BLOCKQUOTE EMBED STYLE
   ============================================ */

blockquote.lsnn-embed {
    margin: 1.5rem auto;
    padding: 0;
    border-left: none;
    background: transparent;
    quotes: none;
    max-width: 100%;
}

blockquote.lsnn-embed::before,
blockquote.lsnn-embed::after {
    content: none;
}

/* Assicura che l'embed card dentro blockquote sia centrata */
blockquote.lsnn-embed .embed-card {
    max-width: 560px;
    margin: 0 auto;
}