/* ============================================================
   Asgaros Forum – Rich Embeds | are-styles.css v7
   ============================================================ */

.are-embed {
    display: block;
    margin: 14px 0;
    border-radius: 8px;
    overflow: hidden;
    max-width: 100%;
}

/* YouTube 16/9 */
.are-youtube {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}
.are-youtube iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Steam 16/9 */
.are-steam {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #1b2838;
    border-radius: 8px;
    overflow: hidden;
}
.are-steam iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Spotify */
.are-spotify {
    border-radius: 12px;
    overflow: hidden;
    max-width: 700px;
}
.are-spotify iframe {
    display: block;
    width: 100%;
    height: 152px;
    border: none;
}

/* Instagram */
.are-instagram {
    display: block;
    margin: 14px 0;
}
.are-instagram .instagram-media {
    max-width: 480px !important;
    min-width: 280px !important;
}

/* TikTok portrait */
blockquote.tiktok-embed {
    width: 325px !important;
    max-width: 325px !important;
    min-width: 325px !important;
    margin: 14px 0 !important;
}

/* ============================================================
   X / Twitter – carte avec avatar
   ============================================================ */
.are-twitter-card {
    display: flex;
    flex-direction: column;
    margin: 14px 0;
    border: 1px solid #e1e8ed;
    border-radius: 16px;
    background: #fff;
    text-decoration: none;
    color: #0f1419;
    max-width: 480px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.are-twitter-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    border-color: #1d9bf0;
}

.are-tc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
}

.are-tc-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #eee;
}

.are-tc-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}
.are-tc-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f1419;
}
.are-tc-handle {
    font-size: 0.78rem;
    color: #1d9bf0;
}

.are-tc-xsvg {
    width: 20px;
    height: 20px;
    fill: #000;
    flex-shrink: 0;
}

.are-tc-footer {
    padding: 8px 16px 12px;
    font-size: 0.72rem;
    color: #8b98a5;
    border-top: 1px solid #f0f3f4;
    word-break: break-all;
}

/* ============================================================
   Twitch 16/9
   ============================================================ */
.are-twitch {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #0e0e10;
    border-radius: 8px;
    overflow: hidden;
    margin: 14px 0;
}
.are-twitch iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================================
   Cartes Open Graph
   ============================================================ */
.are-og-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    margin: 14px 0;
    border: 1px solid #e4e6e8;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    max-width: 560px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s, border-color 0.2s;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.are-og-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    border-color: #b0b8c1;
}
.are-og-img {
    width: 140px;
    min-width: 140px;
    object-fit: cover;
    display: block;
    background: #f0f2f4;
}
.are-og-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
    min-width: 0;
}
.are-og-site {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.are-og-favicon {
    width: 14px;
    height: 14px;
}
.are-og-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #111;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.are-og-desc {
    font-size: 0.78rem;
    color: #4b5563;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}
/* Skeleton loader */
.are-og-loading {
    padding: 14px;
    display: flex;
    align-items: center;
}
.are-og-loading span {
    display: block;
    width: 100%;
    height: 16px;
    background: linear-gradient(90deg, #f0f2f4 25%, #e4e6e8 50%, #f0f2f4 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: are-shimmer 1.4s infinite;
}
@keyframes are-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
/* Mobile */
@media (max-width: 480px) {
    .are-og-img { width: 90px; min-width: 90px; }
}

/* ============================================================
   Embed générique (MediaEmbed – Vimeo, Dailymotion, etc.)
   ============================================================ */
.are-generic {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #111;
    border-radius: 8px;
    overflow: hidden;
    margin: 14px 0;
}
.are-generic iframe,
.are-generic object,
.are-generic embed {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
}
