/* ============================================
 * eCyberStore YouTube Feed Pro – Public Styles
 * ============================================
 */

/* Feed container */
.ecs-yt-feed {
    background: var(--ecs-yt-bg, #0b0b0b);
    color: var(--ecs-yt-text, #ffffff);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
    margin: 2rem 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    box-sizing: border-box;
}

/* Layout modifier (hook for future list layouts, etc.) */
.ecs-yt-feed--list .ecs-yt-grid {
    display: flex;
    flex-direction: column;
}

/* Grid wrapper */
.ecs-yt-grid {
    display: grid;
    grid-template-columns: repeat(var(--ecs-yt-columns, 3), minmax(0, 1fr));
    gap: var(--ecs-yt-gap, 20px);
}

/* Responsive columns */
@media (max-width: 900px) {
    .ecs-yt-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .ecs-yt-grid {
        grid-template-columns: 1fr;
    }
}

/* Card */
.ecs-yt-card {
    background: rgba(0, 0, 0, 0.35);
    border-radius: var(--ecs-yt-radius, 12px);
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
    position: relative;
}

.ecs-yt-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
    background: rgba(0, 0, 0, 0.55);
}

/* 16:9 video wrapper */
.ecs-yt-thumb {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    background: #000;
}

.ecs-yt-thumb iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Optional: status / meta area for future expansion */
.ecs-yt-card__meta {
    padding: 0.75rem 0.85rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ecs-yt-card__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    color: #ffffff;
}

.ecs-yt-card__subtitle {
    font-size: 0.8rem;
    opacity: 0.75;
}

/* Pagination container */
.ecs-yt-pagination {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

/* Pagination text */
.ecs-yt-page-status {
    font-size: 0.9rem;
    opacity: 0.85;
}

/* Buttons */
.ecs-yt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 1.1rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: var(--ecs-yt-accent, #ff4b2b);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
    white-space: nowrap;
}

.ecs-yt-btn:hover {
    background: #ffffff;
    color: #000000;
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
    transform: translateY(-1px);
}

.ecs-yt-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Extra spacing for prev/next icons if you ever add them */
.ecs-yt-btn--prev::before,
.ecs-yt-btn--next::after {
    display: inline-block;
}

/* Make sure iframes don’t overflow in weird themes */
.ecs-yt-feed iframe {
    max-width: 100%;
}

/* Handle theme conflicts with box-sizing */
.ecs-yt-feed,
.ecs-yt-feed * {
    box-sizing: border-box;
}
