/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Loading states */
.loading-state {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

.loading-state i {
    font-size: 40px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Error states */
.error-state {
    text-align: center;
    padding: 40px;
    color: #e74c3c;
}

.error-state i {
    font-size: 40px;
    margin-bottom: 15px;
}

/* Tool specific animations */
.tool-card {
    animation: fadeIn 0.5s ease-out forwards;
}

.tool-card:hover {
    animation: pulse 1s infinite;
}

/* Tag animations */
.tag {
    display: inline-block;
    background: #f0f0f0;
    padding: 6px 12px;
    border-radius: 20px;
    margin: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.tag.copied {
    background: #2ecc71;
    color: white;
}

/* Idea card animations */
.idea-card {
    animation: fadeIn 0.3s ease-out forwards;
    opacity: 0;
}

.idea-card:nth-child(1) { animation-delay: 0.1s; }
.idea-card:nth-child(2) { animation-delay: 0.2s; }
.idea-card:nth-child(3) { animation-delay: 0.3s; }
.idea-card:nth-child(4) { animation-delay: 0.4s; }
.idea-card:nth-child(5) { animation-delay: 0.5s; }

/* Chart animations */
.chart-container {
    margin-bottom: 40px;
    animation: fadeIn 0.5s ease-out forwards;
}

/* Button animations */
.btn {
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* Saved state */
.btn.saved, .copied {
    background: #2ecc71 !important;
}