/* ─────────────────────────────────────────────────────────────────────────────
   YouTube Feed para Elementor — Stylesheet v1.1
   ───────────────────────────────────────────────────────────────────────────── */

/* Grid */
.ytfe-grid {
    display: grid;
    gap: 20px;
    width: 100%;
}
.ytfe-cols-1 { grid-template-columns: repeat(1, 1fr); }
.ytfe-cols-2 { grid-template-columns: repeat(2, 1fr); }
.ytfe-cols-3 { grid-template-columns: repeat(3, 1fr); }
.ytfe-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Card */
.ytfe-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    transition: transform .25s ease, box-shadow .25s ease;
}
.ytfe-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,.14);
}

/* ── Thumbnail ── */
.ytfe-thumb-link { display: block; text-decoration: none; flex-shrink: 0; }

.ytfe-thumb-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 padrão */
    overflow: hidden;
    background: #e0e0e0;
}

/* Shorts: proporção 9:16 */
.ytfe-shorts-ratio { padding-top: 177.78%; }

.ytfe-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.ytfe-card:hover .ytfe-thumb { transform: scale(1.05); }

/* ── Play ── */
.ytfe-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .2s ease;
}
.ytfe-play::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.35);
}
.ytfe-play svg {
    position: relative;
    z-index: 1;
    width: 52px;
    height: 52px;
    background-color: #FF0000;
    border-radius: 50%;
    padding: 12px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.4));
    transition: transform .2s ease, background-color .2s ease;
}
.ytfe-card:hover .ytfe-play            { opacity: 1; }
.ytfe-card:hover .ytfe-play svg        { transform: scale(1.1); }

/* ── Badges ── */
.ytfe-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 20px;
    line-height: 1.6;
    pointer-events: none;
}
.ytfe-badge-shorts {
    background: #000;
    color: #fff;
}
.ytfe-badge-playlist {
    background: #065fd4;
    color: #fff;
}

/* ── Info ── */
.ytfe-info {
    padding: 14px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ytfe-title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ytfe-title a {
    text-decoration: none;
    color: inherit;
    transition: color .2s ease;
}
.ytfe-title a:hover { color: #FF0000; }

.ytfe-date {
    font-size: 0.78rem;
    color: #888;
    letter-spacing: .02em;
}

/* ── Shorts: layout portrait destaca melhor em 2 colunas ── */
.ytfe-type-shorts .ytfe-cols-3 { grid-template-columns: repeat(3, 1fr); }
.ytfe-type-shorts .ytfe-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Placeholders no editor ── */
.ytfe-placeholder {
    background: #fff8e1;
    border: 2px dashed #ffc107;
    border-radius: 10px;
    padding: 28px 20px;
    text-align: center;
    color: #795548;
    font-size: .95rem;
}
.ytfe-placeholder-thumb {
    background: linear-gradient(135deg, #e0e0e0 0%, #cfcfcf 100%);
}
.ytfe-error {
    color: #c62828;
    font-size: .9rem;
}

/* ── Responsivo ── */
@media (max-width: 1024px) {
    .ytfe-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .ytfe-cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .ytfe-cols-4,
    .ytfe-cols-3,
    .ytfe-cols-2 { grid-template-columns: 1fr; }
}
