/* ==========================================================================
   Slideshow Styles
   ========================================================================== */

.gh-slideshow {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 0 40px;
    overflow: hidden;
    background: #000;
}

.slideshow-container {
    position: relative;
    width: 100%;
    aspect-ratio: 21/9;
}

@media (max-width: 768px) {
    .slideshow-container {
        aspect-ratio: 16/9;
    }
}

/* Individual Slide */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #fff;
}

.slide-link:hover {
    opacity: 1;
}

/* Slide Image */
.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-no-image {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
}

/* Overlay */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
}

/* Slide Content */
.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 60px;
    z-index: 2;
}

@media (max-width: 768px) {
    .slide-content {
        padding: 20px 24px;
    }
}

.slide-tag {
    display: inline-block;
    background: var(--ghost-accent-color, #e60012);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 3px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.slide-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .slide-title {
        font-size: 20px;
        margin-bottom: 8px;
    }
}

.slide-excerpt {
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 12px;
    opacity: 0.9;
    max-width: 600px;
}

@media (max-width: 768px) {
    .slide-excerpt {
        display: none;
    }
}

.slide-date {
    font-size: 14px;
    opacity: 0.7;
}

/* Navigation Arrows */
.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.slide-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.slide-arrow svg {
    width: 24px;
    height: 24px;
    stroke: #333;
}

.slide-prev {
    left: 20px;
}

.slide-next {
    right: 20px;
}

@media (max-width: 768px) {
    .slide-arrow {
        width: 36px;
        height: 36px;
    }

    .slide-arrow svg {
        width: 18px;
        height: 18px;
    }

    .slide-prev {
        left: 10px;
    }

    .slide-next {
        right: 10px;
    }
}

/* Dots Navigation */
.slide-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slide-dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.slide-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.slide-dot.active {
    background: #fff;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .slide-dots {
        bottom: 12px;
    }

    .slide-dot {
        width: 8px;
        height: 8px;
    }
}

/* Progress Bar */
.slide-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 10;
}

.slide-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--ghost-accent-color, #e60012);
    transition: width 0.1s linear;
}

.slide-progress-bar.animating {
    animation: progressBar 7s linear forwards;
}

@keyframes progressBar {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}
