/*
UX Improvements - 5 High-Impact Enhancements
Styles for Daily Checklist, Tomorrow Preview, Progress Ring, Explainer Modal, Trial Banner
*/

/* ============================================
   1. DAILY PRACTICE COMPLETION CHECKLIST
   ============================================ */
.daily-practice-tracker {
    background: rgba(139, 69, 255, 0.05);
    border: 1px solid rgba(139, 69, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 1.5rem;
}

.daily-practice-tracker h4 {
    color: var(--golden, #ffcc02);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checklist-item {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.checklist-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.checklist-item input[type="checkbox"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #22c55e;
}

.checklist-item input[type="checkbox"]:checked + .check-icon {
    opacity: 1;
    transform: scale(1);
}

.check-icon {
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s;
    color: #22c55e;
    font-size: 20px;
    margin-right: 8px;
}

.practice-label {
    flex: 1;
    color: var(--star-light, #f0f8ff);
}

.checklist-item input[type="checkbox"]:checked ~ .practice-label {
    opacity: 0.6;
    text-decoration: line-through;
}

.completion-message {
    margin-top: 1rem;
    padding: 12px;
    background: rgba(92, 219, 149, 0.15);
    border: 1px solid rgba(92, 219, 149, 0.4);
    border-radius: 8px;
    color: #5cdb95;
    text-align: center;
}

/* InTime Fibonacci Flow Display */
.intime-flow {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.3rem;
    flex-wrap: wrap;
}

.intime-badge {
    font-size: 0.65rem;
    font-weight: 600;
    color: #ffd700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.15));
    border: 1px solid rgba(255, 215, 0, 0.4);
    padding: 0.15rem 0.4rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.intime-badge i {
    font-size: 0.55rem;
}

.intime-segment {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(92, 219, 149, 0.2);
    border: 1px solid rgba(92, 219, 149, 0.4);
    padding: 0.1rem 0.35rem;
    border-radius: 6px;
}

.intime-plus {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.5);
}

/* InTime Start Button (clickable) */
.intime-start {
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.intime-start:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.4), rgba(255, 165, 0, 0.35));
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.intime-start i {
    font-size: 0.5rem;
    margin-right: 0.2rem;
}

/* ============================================
   2. TOMORROW'S PREVIEW CARD
   ============================================ */
.tomorrow-preview {
    background: linear-gradient(135deg, rgba(139, 69, 255, 0.1), rgba(75, 85, 255, 0.1));
    border: 1px solid rgba(139, 69, 255, 0.3);
    border-radius: 16px;
    padding: 24px;
    margin-top: 32px;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.preview-header h4 {
    color: var(--golden, #ffcc02);
    margin: 0;
    font-size: 1.3rem;
}

.preview-day-label {
    background: rgba(139, 69, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--star-light, #f0f8ff);
}

.preview-title {
    color: var(--golden, #ffcc02);
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.preview-content p {
    margin-bottom: 8px;
    color: var(--star-light, #f0f8ff);
    opacity: 0.9;
}

.preview-content strong {
    color: var(--cosmic-purple, #9b5de5);
}

.preview-duration {
    color: var(--sage-green, #5cdb95);
    font-weight: 600;
}

.preview-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.preview-footer small {
    color: rgba(240, 248, 255, 0.7);
    font-style: italic;
}

/* ============================================
   3. MOON CYCLE PROGRESS RING
   ============================================ */
.moon-progress-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.moon-progress-ring {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.progress-circle {
    transition: stroke-dashoffset 1s ease-in-out;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-day {
    font-size: 32px;
    font-weight: 700;
    color: var(--golden, #ffcc02);
    line-height: 1;
}

.progress-total {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
}

.moon-info {
    flex: 1;
}

.moon-name {
    font-size: 24px;
    font-weight: 600;
    color: var(--cosmic-purple, #9b5de5);
    margin-bottom: 4px;
}

.moon-phase {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   4. ANTARA-SATSANGA EXPLAINER MODAL
   ============================================ */
.cosmic-modal {
    background: linear-gradient(135deg, #1a0833 0%, #0f172a 100%);
    border: 1px solid rgba(139, 69, 255, 0.3);
    border-radius: 16px;
    color: white;
}

.cosmic-modal .modal-header {
    border-bottom: 1px solid rgba(139, 69, 255, 0.2);
}

.cosmic-modal .modal-title {
    color: var(--golden, #ffcc02);
}

.cosmic-modal .btn-close {
    filter: invert(1);
}

.cosmic-modal .lead {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
}

.flow-steps {
    margin: 24px 0;
}

.step-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b45ff, #4b55ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    color: white;
}

.step-content {
    flex: 1;
}

.step-content strong {
    color: var(--golden, #ffcc02);
    display: block;
    margin-bottom: 4px;
}

.step-content p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.reassurance-note {
    background: rgba(139, 69, 255, 0.1);
    border: 1px solid rgba(139, 69, 255, 0.3);
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 16px;
}

.cosmic-modal .modal-footer {
    border-top: 1px solid rgba(139, 69, 255, 0.2);
}

/* ============================================
   5. FREE TRIAL COUNTDOWN BANNER
   ============================================ */
.trial-countdown-banner {
    background: linear-gradient(90deg, rgba(139, 69, 255, 0.15), rgba(251, 191, 36, 0.15));
    border: 1px solid rgba(139, 69, 255, 0.3);
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
}

.trial-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trial-icon {
    font-size: 24px;
}

.trial-message {
    display: flex;
    flex-direction: column;
}

.trial-message strong {
    color: var(--golden, #ffcc02);
    font-size: 14px;
}

.trial-days {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.trial-cta {
    background: rgba(139, 69, 255, 0.2);
    border: 1px solid rgba(139, 69, 255, 0.4);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.trial-cta:hover {
    background: rgba(139, 69, 255, 0.3);
    border-color: rgba(139, 69, 255, 0.6);
    color: white;
    text-decoration: none;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    .trial-countdown-banner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .trial-cta {
        width: 100%;
        display: block;
        text-align: center;
    }
    
    .moon-progress-container {
        flex-direction: column;
        text-align: center;
    }
    
    .moon-name {
        font-size: 20px;
    }
}

@media (max-width: 375px) {
    .moon-progress-ring {
        width: 100px;
        height: 100px;
    }
    
    .progress-day {
        font-size: 28px;
    }
    
    .daily-practice-tracker {
        padding: 16px;
    }
    
    .tomorrow-preview {
        padding: 16px;
    }
}
