/* saas/static/css/timeline_feed.css */

:root { 
    --gym-accent: #ff2d55; 
    --gym-warning: #ffcc00;
    --gym-black: #000; 
}

/* Base Styles */
body { background-color: #fff; font-family: 'Inter', sans-serif; padding-bottom: 120px; overflow-x: hidden; }
.top-nav { display: flex; justify-content: space-between; padding: 20px; position: sticky; top: 0; background: white; z-index: 1000; }
.date-strip-container { border-bottom: 1px solid #f0f0f0; background: #fff; position: sticky; top: 65px; z-index: 999; transition: top 0.3s ease; }

/* Date Strip */
.date-strip { display: flex; overflow-x: auto; padding: 15px 20px; gap: 25px; scrollbar-width: none; align-items: center; }
.date-strip::-webkit-scrollbar { display: none; }
.date-item { display: flex; flex-direction: column; align-items: center; cursor: pointer; transition: all 0.3s; min-width: 40px; }
.date-item.active { transform: scale(1.3); }
.date-item.active .day-num { font-size: 1.5rem; font-weight: 900; color: var(--gym-black); }
.date-item.active .month-text { font-size: 0.7rem; font-weight: 800; color: var(--gym-accent); }
.date-item.inactive { opacity: 0.4; transform: scale(0.9); }

/* Timeline Container */
.timeline-container { padding-top: 10px; }
.time-row { width: 100%; margin-bottom: 50px; }
.cards-grid { display: flex; overflow-x: auto; scrollbar-width: none; position: relative; padding: 10px 0; }
.time-label { position: sticky; left: 0; z-index: 50; min-width: 100px; height: 50px; background: rgba(255,255,255,0.8); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.4rem; border-radius: 0 24px 24px 0; box-shadow: 5px 0 15px rgba(0,0,0,0.05); }

.cards-track { display: flex; gap: 15px; padding-left: 20px; }
.class-card-wrapper { width: 200px; flex-shrink: 0; transition: width 0.3s ease; }

/* --- CARD STYLES --- */
.immersive-card { position: relative; aspect-ratio: 4/5; border-radius: 20px; overflow: hidden; transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.immersive-card.is-full { filter: grayscale(1); opacity: 0.6; }

.card-img { width: 100%; height: 100%; object-fit: cover; }
.overlay { position: absolute; inset: 0; padding: 15px; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent 50%); }
.class-title { color: white; font-size: 1.1rem; font-weight: 900; text-transform: uppercase; line-height: 1.2; }

/* Badges */
.card-badges { position: absolute; top: 10px; right: 10px; z-index: 10; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

.badge-trend { background: linear-gradient(135deg, #00c6ff, #0072ff); color: white; font-size: 0.6rem; font-weight: 800; padding: 4px 8px; border-radius: 6px; box-shadow: 0 4px 10px rgba(0, 114, 255, 0.4); border: 1px solid rgba(255,255,255,0.3); }
.badge-hot { background: linear-gradient(45deg, #ffcc00, #ff9500); color: #000; font-size: 0.65rem; font-weight: 800; padding: 4px 8px; border-radius: 6px; box-shadow: 0 4px 10px rgba(255, 204, 0, 0.4); animation: pulse-hot 1.5s infinite; }
.badge-last-call { background: #dc3545; color: #fff; font-size: 0.65rem; font-weight: 800; padding: 4px 8px; border-radius: 6px; box-shadow: 0 4px 10px rgba(220, 53, 69, 0.5); }

/* Slots & Price */
.seats-left { font-size: 0.7rem; font-weight: 700; color: #fff; background: var(--gym-accent); padding: 4px 10px; border-radius: 12px; transition: all 0.3s ease; }
.seats-left.warning { background: var(--gym-warning); color: #000; }
.seats-left.critical { background: #dc3545; }
.seats-left.full { background: #6c757d; }

/* Visual Effects */
.booking-flash-overlay { position: absolute; inset: 0; background: rgba(255, 255, 255, 0.7); z-index: 5; opacity: 0; pointer-events: none; transition: opacity 0.1s; }
.booking-flash-overlay.active { opacity: 1; }

.live-interaction-ripple { position: absolute; top: 50%; left: 50%; width: 250px; height: 250px; background: rgba(255, 255, 255, 0.4); border-radius: 50%; transform: translate(-50%, -50%) scale(0); pointer-events: none; opacity: 0; }

.live-badge { position: absolute; top: 0; right: 0; width: 10px; height: 10px; background: #28a745; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 10px #28a745; }

@keyframes pulse-hot { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 768px) {
    /* Reduce sticky header usage or offsets on small screens if needed */
    .date-strip-container { top: 60px; } /* Ensure it clears the main-nav */
    
    /* Adjust card size for mobile screens so more cards fit or they are easier to scroll */
    .class-card-wrapper { width: 160px; }
    
    .class-title { font-size: 1rem; }
    
    /* Make Date Strip more compact on mobile */
    .date-strip { gap: 15px; padding: 10px 15px; }
    .date-item.active { transform: scale(1.15); }
    .date-item.active .day-num { font-size: 1.2rem; }
    
    /* Time Label */
    .time-label { min-width: 80px; font-size: 1.1rem; }
    .cards-track { gap: 10px; padding-left: 10px; }

    /* Modal adjustments for small screens */
    .modal-dialog-centered {
        align-items: flex-end; /* Bottom sheet feel optional, or keep centered */
        margin: 0.5rem;
    }
}