/* MCAST Slideshow Frontend Styles */

.mcast-slideshow-wrapper * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.mcast-slideshow-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #000;
    height: auto;
    max-width: 100%;
}

.mcast-slideshow-inner {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.mcast-slide {
    min-width: 100%;
    box-sizing: border-box;
    position: relative;
}

.mcast-slide img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.mcast-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 40px;
    transition: all 0.3s ease;
}

.mcast-slide:hover .mcast-slide-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0.1) 70%);
}

.mcast-read-more {
    background-color: #fff;
    color: #000;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: auto;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mcast-slide:hover .mcast-read-more {
    opacity: 1;
    transform: translateY(0);
}

.mcast-read-more:hover,
.mcast-read-more:focus {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    outline: 2px solid #000;
    outline-offset: 2px;
}

.mcast-nav-btn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    color: white;
    font-weight: normal;
    font-size: 28px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    user-select: none;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.mcast-nav-btn.prev {
    left: 20px;
}

.mcast-nav-btn.next {
    right: 20px;
}

.mcast-nav-btn:hover,
.mcast-nav-btn:focus {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.mcast-dots-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 6px;
    padding: 8px 14px;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    flex-wrap: wrap;
    max-width: 85%;
    justify-content: center;
}

.mcast-dot {
    cursor: pointer;
    height: 8px;
    width: 8px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
}

.mcast-dot:hover,
.mcast-dot:focus {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.mcast-dot.active {
    background-color: #ffffff;
    width: 24px;
    border-radius: 4px;
}

.mcast-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.mcast-play-pause {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 16px;
    z-index: 10;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mcast-play-pause:hover,
.mcast-play-pause:focus {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .mcast-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .mcast-nav-btn.prev {
        left: 10px;
    }

    .mcast-nav-btn.next {
        right: 10px;
    }

    .mcast-read-more {
        padding: 10px 20px;
        font-size: 13px;
    }

    .mcast-slide-overlay {
        padding: 20px;
    }

    .mcast-dots-container {
        bottom: 10px;
        gap: 4px;
        padding: 6px 10px;
        max-width: 95%;
    }

    .mcast-dot {
        height: 6px;
        width: 6px;
    }

    .mcast-dot.active {
        width: 18px;
    }
}
