/* Premium Task Enhancements for FocusBuddy */

/* Premium Task Card */
.task-item.premium {
    background: linear-gradient(145deg, #fff8f0, #fff5e6);
    border-left: 5px solid transparent;
    border-image: linear-gradient(135deg, #FFD700, #FFA500, #FF6347) 1;
    position: relative;
    overflow: hidden;
}

.task-item.premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.05) 0%, 
        rgba(255, 165, 0, 0.05) 50%, 
        rgba(255, 99, 71, 0.05) 100%);
    pointer-events: none;
}

.task-item.premium::after {
    content: '⭐';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 1.2rem;
    opacity: 0.8;
    animation: star-sparkle 3s ease-in-out infinite;
}

@keyframes star-sparkle {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
        opacity: 0.8;
    }
    50% { 
        transform: scale(1.2) rotate(180deg); 
        opacity: 1;
    }
}

/* Premium Task Icon */
.task-item.premium .task-icon {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
    position: relative;
    animation: premium-icon-pulse 2s ease-in-out infinite;
}

@keyframes premium-icon-pulse {
    0%, 100% { 
        box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
    }
    50% { 
        box-shadow: 0 8px 30px rgba(255, 215, 0, 0.6);
    }
}

.task-item.premium .task-icon::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #FFD700, #FFA500, #FF6347, #FFD700);
    border-radius: inherit;
    opacity: 0;
    z-index: -1;
    animation: premium-icon-glow 3s linear infinite;
}

@keyframes premium-icon-glow {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.5; }
}

/* Premium Task Status */
.task-item.premium .task-status {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.3);
}

.task-item.premium .task-status.completed {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.3);
}

/* Premium Current Task Card */
.task-card.premium-current {
    background: linear-gradient(145deg, #fffbf5, #fff8ec);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.task-card.premium-current::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #FFD700, #FFA500, #FF6347);
    border-radius: 25px;
    z-index: -1;
    opacity: 0.8;
    animation: premium-border-glow 3s ease-in-out infinite;
}

@keyframes premium-border-glow {
    0%, 100% { 
        opacity: 0.8;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.02);
    }
}

.task-card.premium-current .task-icon {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5);
}

.task-card.premium-current .task-icon i {
    animation: premium-icon-rotate 20s linear infinite;
}

@keyframes premium-icon-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Premium Hover Effects */
.task-item.premium:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.3);
}

.task-item.premium:hover .task-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Premium Completion Animation */
.task-item.premium.completing {
    animation: premium-complete 1.5s ease-out forwards;
}

@keyframes premium-complete {
    0% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.1);
        filter: brightness(1.2);
    }
    100% { 
        transform: scale(0.95);
        opacity: 0.3;
        filter: brightness(0.8);
    }
}

/* Premium Task Info Enhancements */
.task-item.premium .task-info h3 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.task-item.premium .completion-note {
    color: #FFD700;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(255, 215, 0, 0.2);
}

/* Premium Badge for Task List */
.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    animation: badge-shine 3s ease-in-out infinite;
}

@keyframes badge-shine {
    0%, 100% { 
        box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    }
    50% { 
        box-shadow: 0 4px 16px rgba(255, 215, 0, 0.5);
    }
}

/* Premium Task Progress Bar */
.task-item.premium .task-progress {
    height: 4px;
    background: rgba(255, 215, 0, 0.2);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
    position: relative;
}

.task-item.premium .task-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    border-radius: 2px;
    transition: width 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

.task-item.premium .task-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.5), 
        transparent);
    animation: progress-shine 2s linear infinite;
}

@keyframes progress-shine {
    from { left: -100%; }
    to { left: 100%; }
}

/* Premium Empty State */
.empty-timeline-message.premium {
    background: linear-gradient(145deg, #fffbf5, #fff8ec);
    border: 2px dashed #FFD700;
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.15);
}

.empty-timeline-message.premium .empty-illustration {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.3), 
        rgba(255, 165, 0, 0.2));
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

.empty-timeline-message.premium .empty-illustration i {
    color: #FFA500;
}

/* Premium Motivational Messages */
.task-item.premium .premium-motivation {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    padding: 3px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s, top 0.3s;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.4);
}

.task-item.premium:hover .premium-motivation {
    opacity: 1;
    top: -30px;
}

/* Premium Visual Effects */
.premium-sparkles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.premium-sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #FFD700;
    border-radius: 50%;
    animation: sparkle-float 3s linear infinite;
}

@keyframes sparkle-float {
    0% {
        transform: translateY(100%) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Premium Detailed Task Cards */
.task-card-detailed.premium {
    background: linear-gradient(145deg, #fffbf5, #fff8ec);
    border: 2px solid rgba(255, 215, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.task-card-detailed.premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.05) 0%, 
        rgba(255, 165, 0, 0.05) 50%, 
        rgba(255, 99, 71, 0.05) 100%);
    pointer-events: none;
}

.task-card-detailed.premium::after {
    content: '⭐';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    opacity: 0.8;
    animation: star-sparkle 3s ease-in-out infinite;
}

.task-card-detailed.premium .task-icon.premium-icon {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.task-card-detailed.premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.25);
    border-color: rgba(255, 215, 0, 0.4);
}

/* Premium Action Button */
.action-btn.premium-action {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.action-btn.premium-action:hover {
    background: linear-gradient(135deg, #FFA500, #FF8C00);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.action-btn.premium-action i {
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Premium Empty State for Detailed View */
.empty-state.premium {
    background: linear-gradient(145deg, #fffbf5, #fff8ec);
    border: 2px dashed #FFD700;
}

/* Premium task progress in detailed view */
.task-card-detailed.premium .task-progress {
    margin-top: 8px;
    height: 4px;
    background: rgba(255, 215, 0, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.task-card-detailed.premium .task-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    transition: width 0.5s ease-out;
    position: relative;
}

.task-card-detailed.premium .task-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.5), 
        transparent);
    animation: progress-shine 2s linear infinite;
}

/* Responsive adjustments for premium elements */
@media (max-width: 768px) {
    .task-item.premium::after {
        font-size: 1rem;
        top: 5px;
        right: 5px;
    }
    
    .premium-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    .task-item.premium .premium-motivation {
        font-size: 0.7rem;
        padding: 2px 10px;
    }
    
    .task-card-detailed.premium::after {
        font-size: 1.2rem;
        top: 8px;
        right: 8px;
    }
}