/* SVG Icon Base Styles */
.icon {
    display: inline-block;
    vertical-align: middle;
    transition: all 0.3s ease;
}

.icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Size variations */
.icon-sm { width: 24px; height: 24px; }
.icon-md { width: 48px; height: 48px; }
.icon-lg { width: 64px; height: 64px; }
.icon-xl { width: 96px; height: 96px; }

/* Color overrides for icons */
.icon-heart svg .cls-1 { fill: #ef4444; }
.icon-star svg .cls-1 { fill: #f59e0b; }
.icon-chore svg .cls-1 { fill: #3b82f6; }
.icon-goal svg .cls-1 { fill: #10b981; }
.icon-info svg .cls-1 { fill: #6366f1; }
.icon-warn svg .cls-1 { fill: #f59e0b; }

/* Animations */
@keyframes heart-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

@keyframes star-twinkle {
    0%, 100% { transform: rotate(0deg) scale(1); opacity: 1; }
    25% { transform: rotate(-5deg) scale(1.1); opacity: 0.8; }
    75% { transform: rotate(5deg) scale(1.1); opacity: 0.8; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes rocket-launch {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(-3deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes bounce-gentle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Apply animations to icons */
.animate-heart {
    animation: heart-pulse 1.2s ease-in-out infinite;
    transform-origin: center center;
}

.animate-star {
    animation: star-twinkle 2s ease-in-out infinite;
    transform-origin: center center;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-rocket {
    animation: rocket-launch 2s ease-in-out infinite;
}

.animate-spin-slow {
    animation: spin-slow 8s linear infinite;
}

.animate-bounce-gentle {
    animation: bounce-gentle 2s ease-in-out infinite;
}

/* Hover effects */
.icon-interactive:hover {
    transform: scale(1.1);
    cursor: pointer;
}

.card-interactive {
    transition: all 0.3s ease;
}

.card-interactive:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Progress bar animation */
.progress-bar {
    transition: width 1s ease-out;
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
    .animate-heart,
    .animate-star,
    .animate-float,
    .animate-rocket,
    .animate-spin-slow,
    .animate-bounce-gentle {
        animation: none;
    }
    
    .icon-interactive:hover,
    .card-interactive:hover {
        transform: none;
    }
}

/* Stat badge styling */
.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}
