/* Enhanced Task Components for FocusBuddy */

/* Task Button Enhancements */
.task-button {
    background: linear-gradient(135deg, var(--cute-pink), var(--primary-color));
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(254, 197, 187, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.task-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.5s;
}

.task-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(254, 197, 187, 0.4);
}

.task-button:hover::before {
    left: 100%;
}

.task-button:active {
    transform: translateY(-2px) scale(1.02);
}

.task-button i {
    font-size: 1.1rem;
    transition: transform 0.3s;
}

.task-button:hover i {
    transform: scale(1.2);
}

/* Enhanced Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 5px;
}

.section-header h2 {
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header h2::before {
    content: attr(data-emoji);
    font-size: 1.2rem;
    display: inline-block;
    animation: emoji-bounce 2s infinite;
}

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

/* Enhanced Empty States */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(145deg, white, #fff5f8);
    border-radius: 30px;
    box-shadow: 0 15px 30px rgba(254, 197, 187, 0.15);
    border: 3px dashed rgba(254, 197, 187, 0.3);
    position: relative;
    overflow: hidden;
    animation: gentle-float 6s ease-in-out infinite;
}

@keyframes gentle-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.empty-state::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    animation: shimmer 4s infinite;
}

.empty-state .empty-illustration {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        rgba(254, 197, 187, 0.3), 
        rgba(254, 197, 187, 0.1));
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: illustration-pulse 3s infinite;
    position: relative;
    z-index: 2;
}

@keyframes illustration-pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 10px 20px rgba(254, 197, 187, 0.2);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 15px 30px rgba(254, 197, 187, 0.3);
    }
}

.empty-state .empty-illustration i {
    font-size: 2.5rem;
    color: var(--primary-color);
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.1));
}

.empty-state h3 {
    color: var(--text-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 1rem;
    line-height: 1.5;
    position: relative;
    z-index: 2;
}

/* Enhanced Guide Button */
.guide-btn {
    background: linear-gradient(135deg, var(--warning-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 30px;
    padding: 15px 30px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(255, 211, 165, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
}

.guide-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.6s;
}

.guide-btn:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 35px rgba(255, 211, 165, 0.5);
}

.guide-btn:hover::before {
    left: 100%;
}

.guide-btn i {
    font-size: 1.2rem;
    animation: magic-sparkle 2s infinite;
}

@keyframes magic-sparkle {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(1.1); }
    50% { transform: rotate(180deg) scale(1); }
    75% { transform: rotate(270deg) scale(1.1); }
}

/* Enhanced Task Timeline */
.timeline-enhanced {
    position: relative;
    padding-left: 40px;
}

.timeline-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 15px;
    width: 4px;
    background: linear-gradient(to bottom, 
        var(--cute-pink) 0%, 
        var(--primary-color) 50%, 
        var(--cute-lavender) 100%);
    border-radius: 2px;
    opacity: 0.6;
    z-index: 0;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
    animation: timeline-item-appear 0.5s ease-out;
}

@keyframes timeline-item-appear {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--cute-pink));
    border: 3px solid white;
    box-shadow: 0 3px 8px rgba(254, 197, 187, 0.4);
    z-index: 1;
}

.timeline-item.completed::before {
    background: linear-gradient(135deg, var(--success-color), var(--cute-mint));
    animation: check-pulse 2s infinite;
}

@keyframes check-pulse {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.2); }
}

/* Enhanced Task Card */
.task-card-enhanced {
    background: linear-gradient(145deg, white, #fff8fa);
    border-radius: 25px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 12px 25px rgba(254, 197, 187, 0.2);
    border: 2px solid rgba(254, 197, 187, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.task-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--cute-pink), var(--primary-color));
    z-index: 1;
}

.task-card-enhanced::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.7) 0%, 
        rgba(255, 255, 255, 0) 60%);
    pointer-events: none;
    z-index: 0;
}

.task-card-enhanced:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 35px rgba(254, 197, 187, 0.3);
    border-color: rgba(254, 197, 187, 0.3);
}

.task-card-enhanced .task-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 15px;
}

.task-card-enhanced .task-icon-enhanced {
    width: 55px;
    height: 55px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary-color), var(--cute-pink));
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.3rem;
    box-shadow: 0 8px 18px rgba(254, 197, 187, 0.4);
    flex-shrink: 0;
    transition: all 0.3s;
}

.task-card-enhanced:hover .task-icon-enhanced {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 12px 25px rgba(254, 197, 187, 0.5);
}

.task-card-enhanced .task-info-enhanced {
    flex: 1;
    min-width: 0;
}

.task-card-enhanced .task-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 5px;
    line-height: 1.3;
}

.task-card-enhanced .task-subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.task-card-enhanced .task-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(254, 197, 187, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 10px;
}

.task-card-enhanced .task-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success-color), var(--cute-mint));
    border-radius: 3px;
    transition: width 1s ease-in-out;
    animation: progress-shine 2s infinite;
}

@keyframes progress-shine {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

/* Enhanced Tag System */
.task-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(254, 197, 187, 0.2);
    color: var(--primary-color);
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 8px;
    margin-top: 5px;
    border: 1px solid rgba(254, 197, 187, 0.3);
    transition: all 0.3s;
}

.task-tag:hover {
    background: rgba(254, 197, 187, 0.3);
    transform: translateY(-2px);
}

.task-tag.priority-high {
    background: rgba(255, 160, 172, 0.2);
    color: var(--danger-color);
    border-color: rgba(255, 160, 172, 0.3);
}

.task-tag.priority-medium {
    background: rgba(255, 211, 165, 0.2);
    color: var(--warning-color);
    border-color: rgba(255, 211, 165, 0.3);
}

.task-tag.priority-low {
    background: rgba(168, 230, 207, 0.2);
    color: var(--success-color);
    border-color: rgba(168, 230, 207, 0.3);
}

/* Interactive Elements */
.interactive-glow {
    position: relative;
    transition: all 0.3s;
}

.interactive-glow::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        var(--cute-pink), 
        var(--primary-color), 
        var(--cute-lavender), 
        var(--accent-color));
    border-radius: inherit;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s;
    filter: blur(8px);
}

.interactive-glow:hover::before {
    opacity: 0.7;
}

/* Task Completion Effects */
.task-completing {
    animation: task-complete-effect 1s ease-in-out forwards;
}

@keyframes task-complete-effect {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(0.95); opacity: 0.3; }
}

.task-celebration {
    position: relative;
}

.task-celebration::after {
    content: '🎉';
    position: absolute;
    top: -20px;
    right: -10px;
    font-size: 2rem;
    animation: celebration-float 1s ease-out;
}

@keyframes celebration-float {
    0% { transform: translateY(0) scale(0); opacity: 0; }
    50% { transform: translateY(-30px) scale(1.2); opacity: 1; }
    100% { transform: translateY(-60px) scale(1); opacity: 0; }
}