/* Reset and isolate from theme */
.manifesto-page-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #101010;
    margin: 0;
    padding: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

/* Hide page header and fixed CTA only on manifesto pages */
body.has-manifesto .article-single__head {
    display: none !important;
}

body.has-manifesto .cta-fixed {
    display: none !important;
}

.manifesto-section-slide {
    position: absolute;
    top: 120px;
    left: 0;
    width: 100%;
    height: calc(100% - 120px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
    transition: all 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
    overflow-y: auto;
    pointer-events: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.manifesto-section-slide::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.manifesto-section-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: 1;
}

.manifesto-section-content {
    max-width: 1200px;
    width: 100%;
    text-align: left;
    z-index: 2;
    position: relative;
    min-height: 100%;
}

.manifesto-section-content h1,
.manifesto-section-content h2,
.manifesto-section-content h3,
.manifesto-section-content h4,
.manifesto-section-content h5,
.manifesto-section-content h6 {
    margin-bottom: 20px;
    line-height: 1.3;
}

.manifesto-section-content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.manifesto-section-content a {
    color: #4a9eff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.manifesto-section-content a:hover {
    color: #6bb3ff;
    text-decoration: underline;
}

.manifesto-section-content img {
    max-width: 100%;
    height: auto;
}

.manifesto-section-content ul,
.manifesto-section-content ol {
    padding-left: 40px;
    margin-bottom: 15px;
}

.manifesto-section-content ul {
    list-style-type: disc;
}

.manifesto-section-content ol {
    list-style-type: decimal;
}

.manifesto-section-content li {
    margin-bottom: 10px;
    display: list-item;
}

/* Custom scrollbar for content overflow */
.manifesto-section-content::-webkit-scrollbar {
    width: 8px;
}

.manifesto-section-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.manifesto-section-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.manifesto-section-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Down Arrow */
.manifesto-down-arrow {
    position: fixed;
    bottom: 50px;
    left: 50%;
    width: 30px;
    height: 30px;
    border-left: 3px solid;
    border-bottom: 3px solid;
    transform: translateX(-50%) rotate(-45deg);
    animation: pulse-arrow 2s ease-in-out infinite;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9997;
}

.manifesto-down-arrow.active {
    opacity: 1;
    visibility: visible;
}

@keyframes pulse-arrow {
    0%, 100% {
        opacity: 0.4;
        bottom: 40px;
    }
    50% {
        opacity: 1;
        bottom: 30px;
    }
}

/* Back to Top button - hidden on desktop */
#manifesto-back-to-top {
    display: none;
}

/* Navigation Arrows */
.manifesto-nav-arrows {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: auto;
}

.manifesto-nav-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.manifesto-nav-arrow:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.manifesto-nav-arrow:active {
    transform: scale(0.95);
}

.manifesto-nav-arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.manifesto-nav-arrow svg {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .manifesto-section-content {
        max-width: 100%;
    }

    .manifesto-section-content p {
        font-size: 16px;
    }

    .manifesto-section-content h1 {
        font-size: 28px;
    }

    .manifesto-section-content h2 {
        font-size: 24px;
    }

    /* Hide navigation arrows on mobile */
    .manifesto-nav-arrows {
        display: none;
    }

    /* Back to Top button on mobile */
    #manifesto-back-to-top {
        display: block;
        width: calc(100% - 40px);
        margin: 20px 20px 40px 20px;
        padding: 16px;
        background: rgba(255, 255, 255, 0.9);
        color: #333;
        border: 2px solid rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        font-size: 16px;
        font-weight: 600;
        text-align: center;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        transition: all 0.3s ease;
    }

    #manifesto-back-to-top:active {
        transform: scale(0.98);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    }

    /* Mobile down arrow indicator */
    .manifesto-down-arrow {
        width: 24px;
        height: 24px;
        border-left-width: 2px;
        border-bottom-width: 2px;
        bottom: 40px;
    }

    @keyframes pulse-arrow {
        0%, 100% {
            opacity: 0.4;
            bottom: 30px;
        }
        50% {
            opacity: 1;
            bottom: 20px;
        }
    }
}
