/* Reset body */
body.top-list-immersive-body {
    margin: 0;
    padding: 0;
    background: #000;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #ffffff;
}

/* Hide WP admin bar on frontend to ensure true full screen */
#wpadminbar { display: none !important; }
html { margin-top: 0 !important; scroll-behavior: smooth; }

.top-list-container {
    height: 100vh;
    height: 100dvh; /* For mobile browsers with dynamic UI */
    width: 100vw;
    position: relative;
    overflow-y: scroll; /* Allow native scrolling */
    overflow-x: hidden;
    scroll-snap-type: y mandatory; /* Enable CSS scroll snap */
    -webkit-overflow-scrolling: touch;
}

.top-list-slide {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    scroll-snap-align: start; /* Snap to top of each slide */
    scroll-snap-stop: always;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

img.slide-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transform: scale(1.05); /* Slight zoom for parallax */
    transition: transform 6s linear;
}

.top-list-slide.active img.slide-bg-img {
    transform: scale(1);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark gradient overlay so text is highly readable */
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.9) 100%);
    z-index: 2;
}

.slide-content {
    position: relative;
    z-index: 3;
    padding-bottom: 12vh;
    width: 90%;
    max-width: 800px;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s;
}

.top-list-slide.active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

/* Intro specific */
.top-list-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 0 4px 12px rgba(0,0,0,0.6);
    letter-spacing: -1px;
}

.top-list-desc {
    font-size: 1.3rem;
    opacity: 0.9;
    font-weight: 400;
}

.swipe-indicator {
    margin-top: 50px;
    font-size: 2rem;
    animation: bounce 2s infinite;
    opacity: 0.8;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}

/* Item specific */
.item-badge {
    display: inline-block;
    background: #ffb703;
    color: #023047;
    font-size: 1.5rem;
    font-weight: 900;
    padding: 6px 20px;
    border-radius: 30px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(255, 183, 3, 0.5);
    letter-spacing: 1px;
}

.item-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.6);
    letter-spacing: -1px;
    line-height: 1.1;
}

.item-rating {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.item-rating .star {
    color: #ffb703;
    font-size: 1.6rem;
}

.item-review {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 25px;
    font-style: italic;
    font-weight: 400;
    opacity: 0.95;
    text-shadow: 0 2px 6px rgba(0,0,0,0.8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.item-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 35px;
    align-items: center;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    background: rgba(0,0,0,0.5);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.1);
}

.detail-icon {
    font-size: 1.2rem;
}

.detail-text {
    color: #fff;
    opacity: 0.9;
}

.detail-link {
    color: #ffb703;
    text-decoration: none;
    font-weight: bold;
}

.detail-link:hover {
    text-decoration: underline;
}

.social-row {
    background: transparent;
    border: none;
    padding: 0;
    gap: 10px;
}

.detail-social-link {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 1rem;
    transition: transform 0.2s, background 0.2s;
}

.instagram-link {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.facebook-link {
    background: #1877F2;
}

.detail-social-link:hover {
    transform: scale(1.05);
}

.item-action-btn {
    display: inline-block;
    background: #fff;
    color: #000;
    padding: 16px 45px;
    border-radius: 40px;
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(255,255,255,0.2);
}

.item-action-btn:hover {
    transform: scale(1.05) translateY(-2px);
    background: #f0f0f0;
    box-shadow: 0 8px 25px rgba(255,255,255,0.3);
}

.item-action-btn:active {
    transform: scale(0.98);
}

/* Nav */
.top-list-nav {
    position: fixed; /* Fixed relative to viewport now */
    right: 20px;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10;
}

.nav-btn, .nav-close {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    text-decoration: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.3s, transform 0.2s;
    outline: none;
}

.nav-btn:hover, .nav-close:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

.nav-btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
    transform: scale(1);
}

.nav-close {
    margin-top: 15px;
    font-size: 1rem;
    background: rgba(0,0,0,0.3);
}

.nav-close:hover {
    background: rgba(255,0,0,0.5);
    border-color: rgba(255,0,0,0.5);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .slide-content {
        bottom: 8%;
    }
    .top-list-title { font-size: 2.8rem; }
    .item-title { font-size: 2.5rem; }
    .item-badge { font-size: 1.2rem; padding: 4px 15px; }
    .item-review { font-size: 1.1rem; margin-bottom: 25px; }
    .item-action-btn { padding: 14px 35px; font-size: 1rem; }
    
    .top-list-nav {
        right: 15px;
        bottom: 25px;
    }
    .nav-btn, .nav-close {
        width: 40px;
        height: 40px;
    }
}
