/**
 * Instagram Embed for SMF 2.1 — Stylesheet
 */

/* ────────────────────────────────────────────
   Ana kapsayıcı
   ──────────────────────────────────────────── */
.igem-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: 16px auto;
    width: 100%;
    max-width: 540px;
}

/* ────────────────────────────────────────────
   Instagram resmi blockquote — yükleniyor hali
   ──────────────────────────────────────────── */
.igem-container blockquote.instagram-media {
    margin: 0 !important;
    width: 100% !important;
    max-width: 540px !important;
    min-width: 280px !important;
    border-radius: 8px !important;
    border: 0 !important;
    box-shadow: 0 1px 8px rgba(0, 0, 0, .18) !important;
    background: #ffffff !important;
    overflow: hidden;
}

/* embed.js yüklenmeden önce gösterilen placeholder metin */
.igem-loading-inner {
    display: block;
    padding: 24px 16px;
    text-align: center;
    font-size: 13px;
    color: #8e8e8e;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: .1px;
}

.igem-loading-inner::before {
    content: "";
    display: block;
    width: 32px;
    height: 32px;
    margin: 0 auto 10px;
    border: 3px solid #e1e1e1;
    border-top-color: #0095f6;
    border-radius: 50%;
    animation: igem-spin .8s linear infinite;
}

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

/* ────────────────────────────────────────────
   Gizli / Silinmiş / Hatalı içerik kutusu
   ──────────────────────────────────────────── */
.igem-info-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    padding: 12px 16px;
    background: #fafafa;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: #3d3d3d;
}

.igem-info-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.igem-info-text {
    flex: 1 1 auto;
    color: #555;
}

.igem-info-link {
    display: inline-block;
    color: #0095f6;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: color .15s;
}

.igem-info-link:hover,
.igem-info-link:focus {
    color: #0074cc;
    text-decoration: underline;
}

/* ────────────────────────────────────────────
   Karanlık mod uyumu (SMF tema)
   ──────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
    .igem-container blockquote.instagram-media {
        background: #1a1a1a !important;
        box-shadow: 0 1px 8px rgba(0, 0, 0, .5) !important;
    }

    .igem-loading-inner {
        color: #aaa;
    }

    .igem-loading-inner::before {
        border-color: #333;
        border-top-color: #0095f6;
    }

    .igem-info-box {
        background: #1e1e1e;
        border-color: #3a3a3a;
        color: #d4d4d4;
    }

    .igem-info-text {
        color: #aaa;
    }
}

/* ────────────────────────────────────────────
   Dar ekran desteği
   ──────────────────────────────────────────── */
@media (max-width: 580px) {
    .igem-container {
        max-width: 100%;
    }

    .igem-container blockquote.instagram-media {
        min-width: 0 !important;
    }
}
