/* Clients Page Enhanced Styling */

.numaken-clients-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* カテゴリフィルターのアニメーション */
#category-filter button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

#category-filter button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#category-filter button.active-filter {
    animation: pulseGradient 2s ease-in-out infinite;
}

@keyframes pulseGradient {
    0%, 100% { 
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        transform: scale(1);
    }
    50% { 
        background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
        transform: scale(1.05);
    }
}

/* クライアントカードのホバー効果 */
.client-item .uk-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.client-item .uk-card:hover {
    transform: translateY(-8px) rotateX(5deg);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.3);
}

/* 画像のオーバーレイ効果 */
.uk-card-media-top::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.client-item:hover .uk-card-media-top::after {
    opacity: 1;
}

/* バッジのアニメーション */
.uk-badge {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.client-item:hover .uk-badge {
    transform: scale(1.1);
}

/* 詳細ボタンの強化 */
.client-item .uk-button-primary {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.client-item .uk-button-primary::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 ease;
}

.client-item .uk-button-primary:hover::before {
    left: 100%;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
    .uk-card-media-top {
        height: 150px !important;
    }
    
    #category-filter {
        gap: 8px !important;
    }
    
    #category-filter button {
        min-width: 80px !important;
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* ロード時のアニメーション */
.client-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.client-item:nth-child(1) { animation-delay: 0.1s; }
.client-item:nth-child(2) { animation-delay: 0.2s; }
.client-item:nth-child(3) { animation-delay: 0.3s; }
.client-item:nth-child(4) { animation-delay: 0.4s; }
.client-item:nth-child(5) { animation-delay: 0.5s; }
.client-item:nth-child(6) { animation-delay: 0.6s; }

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