/* ========================================
   SLIDESHOW — Carol's Homestead
   Course slideshow viewer styles
   ======================================== */

/* ---------- Wrapper ---------- */
.slideshow-wrapper {
    max-width: 1000px;
    margin: 2rem auto;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    padding: 2rem;
}

/* ---------- Header ---------- */
.slideshow-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-light);
}

.slideshow-back {
    color: var(--primary);
    text-decoration: none;
    font-family: var(--font-sans);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.slideshow-back:hover {
    color: var(--primary-dark);
}

.slideshow-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.slideshow-counter {
    font-family: var(--font-sans);
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ---------- Progress Bar ---------- */
.slideshow-progress {
    height: 4px;
    background: var(--border-light);
    border-radius: 2px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.slideshow-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    transition: width 0.4s ease;
}

/* ---------- Slide Container ---------- */
.slideshow-container {
    position: relative;
    min-height: 400px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
    padding: 1rem;
}

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

/* ---------- Slide Content ---------- */
.slide-image {
    text-align: center;
    margin-bottom: 1.5rem;
}

.slide-image img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: var(--radius);
}

.slide-content {
    font-family: var(--font-body);
}

.slide-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.slide-body {
    line-height: 1.8;
    font-size: 1.1rem;
}

/* ---------- Navigation ---------- */
.slideshow-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-light);
}

.slideshow-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slideshow-arrow:hover {
    background: var(--primary);
    color: #fff;
}

.slideshow-arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.slideshow-arrow:disabled:hover {
    background: transparent;
    color: var(--primary);
}

/* ---------- Dots ---------- */
.slideshow-dots {
    display: flex;
    gap: 0.5rem;
}

.slideshow-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.slideshow-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}

.slideshow-dot:hover {
    border-color: var(--primary);
}
