@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800;900&display=swap');

/* Main Wrapper */
.ifag-vc-wrapper {
    font-family: 'Inter', sans-serif;
    width: 100%;
}

/* Horizontal native scrolling carousel */
.ifag-vc-carousel {
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 25px;
    padding: 20px 10px 50px 10px; 
    margin: -20px -10px -50px -10px;
    scrollbar-width: none; 
    -webkit-overflow-scrolling: touch;
}

.ifag-vc-carousel::-webkit-scrollbar {
    display: none; 
}

/* The Base Item Definition */
.ifag-vc-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.4s ease;
}

/* Format Controls */
.ifag-vc-format-vertical .ifag-vc-item {
    width: 320px;
    height: 480px;
}

.ifag-vc-format-horizontal .ifag-vc-item {
    width: 440px;
    height: 300px;
}

/* Dark Reddish Overlay */
.ifag-vc-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom, 
        rgba(46, 0, 0, 0.1) 0%, 
        rgba(46, 0, 0, 0.4) 50%, 
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 1;
    transition: opacity 0.4s ease;
}

.ifag-vc-item:hover {
    transform: scale(1.02);
}

/* Central Play Icon */
.ifag-vc-play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60px; height: 60px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.ifag-vc-play-btn svg {
    width: 100%;
    height: 100%;
}

.ifag-vc-item:hover .ifag-vc-play-btn {
    color: #ffffff;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Content at bottom left */
.ifag-vc-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    width: 100%;
}

.ifag-vc-badge {
    display: inline-block;
    background: #CE2139;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.ifag-vc-item-title {
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
}

/* Modal classes */
.ifag-vc-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 100000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ifag-vc-modal.is-open {
    opacity: 1;
}

.ifag-vc-modal-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.ifag-vc-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    z-index: 2;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.ifag-vc-iframe-container {
    width: 100%; height: 100%;
}

.ifag-vc-iframe-container iframe {
    width: 100%; height: 100%;
}

.ifag-vc-modal-close {
    position: absolute;
    top: -40px; right: 0;
    background: none; border: none;
    color: white; font-size: 30px;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .ifag-vc-format-vertical .ifag-vc-item { width: 280px; height: 420px; }
    .ifag-vc-format-horizontal .ifag-vc-item { width: 320px; height: 220px; }
    .ifag-vc-item-title { font-size: 18px; }
    .ifag-vc-content { padding: 20px; }
}
