/* ===== MOTIVATION FEED ===== */
.motivation-feed {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: var(--footer-height);
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-snap-stop: always;
    -webkit-overflow-scrolling: touch;
    background-color: #000;
    overscroll-behavior-y: contain;
}

/* Hide scrollbar */
.motivation-feed::-webkit-scrollbar {
    display: none;
}

.motivation-feed {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.motivation-item {
    width: 100%;
    height: calc(100vh - var(--header-height) - var(--footer-height));
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== QUOTE CONTAINER ===== */
.quote-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.quote-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
}

/* Ken Burns Effect */
.ken-burns {
    animation: kenburns 12s ease-in-out infinite alternate;
}

@keyframes kenburns {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.4) translate(3%, -3%);
    }
}

.quote-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
}

.quote-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 24px 100px 24px;
    z-index: 10;
    text-align: center;
}

/* Pull to refresh indicator */
.pull-refresh-indicator {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
}

.pull-refresh-indicator.visible {
    opacity: 1;
    top: 20px;
}

.pull-refresh-indicator.active {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translateX(-50%) rotate(0deg); }
    100% { transform: translateX(-50%) rotate(360deg); }
}

.quote-text {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.4;
    color: #fff;
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.quote-author {
    font-size: 16px;
    font-weight: 400;
    color: var(--color-gold);
    font-style: italic;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* ===== VIDEO CONTAINER ===== */
.video-container {
    width: 100%;
    height: 100%;
    position: relative;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.motivation-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Unmute Button */
.unmute-btn {
    position: absolute;
    bottom: 120px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
}

.unmute-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: var(--color-gold);
    transform: scale(1.1);
}

.unmute-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

.unmute-btn svg {
    width: 20px;
    height: 20px;
}

/* Swipe Up Indicator */
.swipe-indicator {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    animation: bounce 2s ease-in-out infinite;
    z-index: 50;
    pointer-events: none;
}

.swipe-indicator-text {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.swipe-indicator-arrow {
    font-size: 24px;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* Hide swipe indicator after first interaction */
.motivation-feed.interacted .swipe-indicator {
    display: none;
}

/* ===== RESPONSIVE - DESKTOP ===== */
@media (min-width: 768px) {
    .motivation-feed {
        left: 180px;
        bottom: 0;
        background-color: #000;
        padding: 0;
        display: block;
    }

    .motivation-item {
        width: 100%;
        height: calc(100vh - var(--header-height));
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px 0;
    }

    .quote-container,
    .video-container {
        width: 100%;
        max-width: 450px;
        height: 100%;
        max-height: 800px;
        aspect-ratio: 9 / 16;
        margin: 0 auto;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    }

    .quote-content {
        padding: 40px 24px 60px 24px;
    }

    .quote-text {
        font-size: 20px;
    }

    .quote-author {
        font-size: 15px;
    }
}

@media (min-width: 1024px) {
    .motivation-feed {
        left: 200px;
    }

    .quote-container,
    .video-container {
        max-width: 500px;
    }
}

/* ===== TALL SCREENS (iPhone, etc) ===== */
@media (max-height: 700px) {
    .quote-text {
        font-size: 18px;
    }

    .quote-author {
        font-size: 14px;
    }

    .quote-content {
        padding: 32px 20px 110px 20px;
    }
}
