/* TikTok-style vertical infinite relaxation feed */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    color: #333;
    line-height: 1.6;
    height: 100vh;
    overflow: hidden; /* No scroll */
    touch-action: none; /* Disable scroll, only swipes */
    -webkit-overflow-scrolling: touch; /* Smooth on iOS */
}

.app-container {
    height: 100vh;
    position: relative;
}

.feed-container {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.slide {
    height: 100vh;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smooth slide */
    transform: translateY(100vh); /* Initially off-screen */
}

.slide.active {
    transform: translateY(0);
}

.slide.prev {
    transform: translateY(-100vh);
}

.slide-content {
    max-width: 90%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.slide h1 {
    font-size: clamp(1.5em, 5vw, 2.5em);
    color: #4fc3f7;
    margin-bottom: 20px;
    font-weight: 300;
}

.slide p {
    font-size: clamp(1em, 4vw, 1.2em);
    margin-bottom: 30px;
    opacity: 0.9;
}

.visualization {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 300px;
    height: 200px;
}

/* Breathing Circle */
.circle {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #4fc3f7, #29b6f6);
    border-radius: 50%;
    transition: all 4s ease-in-out;
    box-shadow: 0 0 20px rgba(79, 195, 247, 0.5);
}

.circle.expand {
    width: 200px;
    height: 200px;
    transform: scale(1.5);
}

/* Ocean Waves */
.waves {
    width: 100%;
    height: 150px;
    position: relative;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    width: 200%;
    height: 60px;
    background: linear-gradient(45deg, #81d4fa, #b3e5fc);
    border-radius: 50px;
    animation: wave 3s ease-in-out infinite;
}

.wave:nth-child(1) { animation-delay: 0s; opacity: 0.7; }
.wave:nth-child(2) { animation-delay: 1s; opacity: 0.5; height: 40px; left: -50%; }
.wave:nth-child(3) { animation-delay: 2s; opacity: 0.3; height: 20px; left: -100%; }

@keyframes wave {
    0%, 100% { transform: translateX(-50%); }
    50% { transform: translateX(0); }
}

/* Affirmations Fade Text */
.fade-text {
    font-size: 1.5em;
    color: #4fc3f7;
    animation: fadeInOut 3s ease-in-out infinite;
    opacity: 0;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Progress Bar for Muscle Relaxation */
.progress-bar {
    width: 200px;
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #4fc3f7, #29b6f6);
    width: 0;
    animation: progress 30s linear infinite;
    border-radius: 5px;
}

@keyframes progress {
    0% { width: 0; }
    100% { width: 100%; }
}

/* Pulse Light */
.pulse-light {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #fff, #4fc3f7);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(79, 195, 247, 0.5);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
}

/* Responsive */
@media (max-width: 480px) {
    .slide {
        padding: 10px;
    }
    
    .visualization {
        height: 150px;
    }
    
    .slide h1 {
        margin-bottom: 10px;
    }
    
    .slide p {
        margin-bottom: 20px;
        font-size: 1em;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .slide, .circle, .wave, .fade-text, .progress-bar::after, .pulse-light {
        animation: none;
        transition: none;
    }
}