/* =============================================
   2025 Thanks Word Cloud - DOM-based Animation
   ============================================= */

/* Word Cloud Items */
.word-item {
    will-change: transform;
    display: inline-block;
}

/* Pulse Animation - 크게 커졌다 작아지는 효과 */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.85;
    }
    50% {
        transform: scale(1.4);
        opacity: 1;
    }
}

/* Loading Spinner */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #8b5cf6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Select Dropdown */
select option {
    background-color: #1a1a2e;
    color: white;
}

/* Pulse Highlight Animation */
@keyframes pulse-highlight {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Pulse Glow Animation for found words */
@keyframes pulse-glow {
    0%, 100% { opacity: 1; filter: brightness(1); }
    50% { opacity: 0.7; filter: brightness(1.5); }
}

/* =============================================
   Admin Page Styles
   ============================================= */

.name-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.name-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.name-card .name {
    font-weight: 500;
    color: white;
}

.name-card .category-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.name-card .delete-btn {
    opacity: 0;
    transition: opacity 0.2s;
    padding: 4px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.4);
}

.name-card:hover .delete-btn {
    opacity: 1;
}

.name-card .delete-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Category Colors */
.category-colleague { background-color: rgba(99, 102, 241, 0.3) !important; color: #a5b4fc !important; }
.category-mentor { background-color: rgba(168, 85, 247, 0.3) !important; color: #d8b4fe !important; }
.category-client { background-color: rgba(6, 182, 212, 0.3) !important; color: #67e8f9 !important; }
.category-partner { background-color: rgba(34, 197, 94, 0.3) !important; color: #86efac !important; }
.category-friend { background-color: rgba(251, 191, 36, 0.3) !important; color: #fde68a !important; }
.category-family { background-color: rgba(244, 63, 94, 0.3) !important; color: #fda4af !important; }
.category-other { background-color: rgba(156, 163, 175, 0.3) !important; color: #d1d5db !important; }

/* =============================================
   Common UI
   ============================================= */

/* Toast */
.toast-show {
    transform: translateY(0) !important;
    opacity: 1 !important;
}

/* Button Press */
button:active {
    transform: scale(0.98);
}

/* Input Focus */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.3);
}

/* Fade In */
.fade-in {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
