/* ═══════════════════════════════════════════════════
   TDN MAGAZINE — Social Embed Labels & Container Fixes
═══════════════════════════════════════════════════ */

/* ── Embed figure wrapper ───────────────────────── */
.tdn-article-content figure.wp-block-embed {
    margin-left: auto;
    margin-right: auto;
}

/* Center social embeds (they have a fixed max-width) */
.tdn-article-content figure.wp-block-embed:not(.wp-block-embed-youtube):not(.wp-block-embed-vimeo) {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tdn-article-content figure.wp-block-embed:not(.wp-block-embed-youtube):not(.wp-block-embed-vimeo) .wp-block-embed__wrapper {
    width: 100%;
    max-width: 560px;
}

/* ── Platform label ─────────────────────────────── */
.tdn-embed-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    font-family: var(--font-ui, 'Inter', sans-serif);
    background: #f0f0f0;
    color: #444;
    border: 1px solid #e0e0e0;
    line-height: 1;
    align-self: center;       /* centers inside flex column figure */
}

.tdn-embed-label__icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.tdn-embed-label__text {
    white-space: nowrap;
}

.tdn-embed-label__link {
    text-decoration: none;
    font-weight: 700;
    color: inherit;
}
.tdn-embed-label__link:hover {
    text-decoration: underline;
}

/* ── Platform-specific colours ──────────────────── */

/* Instagram — gradient-to-solid approximation */
.tdn-embed-label--instagram {
    background: linear-gradient(135deg, #f9ce34 0%, #ee2a7b 50%, #6228d7 100%);
    color: #fff;
    border-color: transparent;
}
.tdn-embed-label--instagram .tdn-embed-label__link {
    color: #fff;
}

/* X (Twitter) — black */
.tdn-embed-label--x {
    background: #000;
    color: #fff;
    border-color: transparent;
}
.tdn-embed-label--x .tdn-embed-label__link {
    color: #fff;
}

/* YouTube — red */
.tdn-embed-label--youtube {
    background: #ff0000;
    color: #fff;
    border-color: transparent;
}
.tdn-embed-label--youtube .tdn-embed-label__link {
    color: #fff;
}

/* TikTok — dark with teal accent */
.tdn-embed-label--tiktok {
    background: #010101;
    color: #fff;
    border-color: transparent;
}
.tdn-embed-label--tiktok .tdn-embed-label__link {
    color: #69c9d0;
}

/* Facebook — blue */
.tdn-embed-label--facebook {
    background: #1877f2;
    color: #fff;
    border-color: transparent;
}
.tdn-embed-label--facebook .tdn-embed-label__link {
    color: #fff;
}

/* Spotify — green */
.tdn-embed-label--spotify {
    background: #1db954;
    color: #fff;
    border-color: transparent;
}
.tdn-embed-label--spotify .tdn-embed-label__link {
    color: #fff;
}

/* Vimeo — blue */
.tdn-embed-label--vimeo {
    background: #1ab7ea;
    color: #fff;
    border-color: transparent;
}
.tdn-embed-label--vimeo .tdn-embed-label__link {
    color: #fff;
}

/* SoundCloud — orange */
.tdn-embed-label--soundcloud {
    background: #ff5500;
    color: #fff;
    border-color: transparent;
}
.tdn-embed-label--soundcloud .tdn-embed-label__link {
    color: #fff;
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 540px) {
    .tdn-article-content figure.wp-block-embed:not(.wp-block-embed-youtube):not(.wp-block-embed-vimeo) .wp-block-embed__wrapper {
        max-width: 100%;
    }
    .tdn-embed-label {
        font-size: .68rem;
        padding: 4px 10px;
    }
}


