/*
 * Ethos Prod — Social Feed
 * Ενότητα live posts (Instagram / TikTok / YouTube) στο τέλος του project.
 */

.ethos-feed__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: clamp(20px, 3vw, 44px);
    margin-bottom: clamp(30px, 3.5vw, 54px);
}

.ethos-feed__head .ethos-section__title { margin-bottom: 0; }

/* ---------- Κάρτες «Ακολούθησε» ---------- */

.ethos-feed__follows {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ethos-feed__follow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    border: 1px solid rgba(17, 17, 17, .12);
    background: #fff;
    transition: border-color .4s ease, transform .4s ease, color .4s ease;
}

.ethos-feed__follow:hover {
    border-color: currentColor;
    transform: translateY(-2px);
}

.ethos-feed__follow--instagram:hover { color: #e1306c; }
.ethos-feed__follow--tiktok:hover { color: #111; }

.ethos-feed__follow-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
}

.ethos-feed__follow-icon svg { width: 22px; height: 22px; display: block; }

.ethos-feed__follow-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.2;
}

.ethos-feed__follow-network {
    font-size: 9px;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: #888;
}

.ethos-feed__follow-handle {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    letter-spacing: -.01em;
}

.ethos-feed__follow-cta {
    margin-left: 6px;
    padding-left: 16px;
    border-left: 1px solid rgba(17, 17, 17, .12);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
}

/* ---------- Πλέγμα posts ---------- */

.ethos-feed__grid {
    display: grid;
    gap: clamp(16px, 1.8vw, 28px);
    align-items: start;
}

.ethos-feed__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ethos-feed__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ethos-feed__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.ethos-feed__item { min-width: 0; }

/*
 * Τα επίσημα embeds έρχονται με δικά τους inline styles (min-width 326px
 * στο Instagram, 325px στο TikTok). Τα ξαναγράφουμε ώστε να χωράνε στο
 * πλέγμα χωρίς οριζόντιο scroll σε μικρές οθόνες.
 */
.ethos-feed__item .instagram-media,
.ethos-feed__item .tiktok-embed {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: 1px solid rgba(17, 17, 17, .12) !important;
}

.ethos-feed__item iframe {
    max-width: 100% !important;
    width: 100% !important;
}

/* Placeholder όσο δεν έχει φορτώσει ακόμη το script της πλατφόρμας */
.ethos-feed__embed {
    display: block;
    background: #fff;
    min-height: 320px;
    padding: 24px;
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #888;
}

.ethos-feed__embed--youtube {
    position: relative;
    aspect-ratio: 9 / 16;
    min-height: 0;
    padding: 0;
    background: #000;
    border: 1px solid rgba(17, 17, 17, .12);
}

.ethos-feed__embed--youtube iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.ethos-feed__caption {
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: #888;
    font-weight: 300;
}

.ethos-feed__note {
    margin: clamp(26px, 3vw, 42px) 0 0;
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #888;
    text-align: center;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
    .ethos-feed__grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    .ethos-feed__grid--3,
    .ethos-feed__grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ethos-feed__head { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
    .ethos-feed__grid--2,
    .ethos-feed__grid--3,
    .ethos-feed__grid--4 { grid-template-columns: 1fr; }

    .ethos-feed__follow { width: 100%; }
    .ethos-feed__follow-cta { margin-left: auto; }
}

/* ---------- TikTok iframe player ---------- */
.ethos-feed__embed--tiktok-player {
    position: relative;
    aspect-ratio: 9 / 16;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(17, 17, 17, .12);
}

.ethos-feed__embed--tiktok-player iframe {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}
