/* ===========================
   マッチングページ ローディング演出
   =========================== */

/* ローディングコンテナ */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 3rem;
}

/* スピナー */
.loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 2rem;
}

/* スピナーリング */
.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: #4a90e2;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.spinner-ring:nth-child(1) {
    animation-delay: 0s;
    border-top-color: #4a90e2;
}

.spinner-ring:nth-child(2) {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    animation-delay: 0.2s;
    border-top-color: #5ba3f5;
    animation-duration: 1.2s;
}

.spinner-ring:nth-child(3) {
    width: 40%;
    height: 40%;
    top: 30%;
    left: 30%;
    animation-delay: 0.4s;
    border-top-color: #6bb6ff;
    animation-duration: 1s;
}

/* ローディングテキスト */
.loading-text {
    font-size: 1.125rem;
    color: #6c757d;
    font-weight: 500;
    animation: pulse 2s ease-in-out infinite;
}

/* アニメーション */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

/* スケルトンローディング（代替案） */
.skeleton-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

.skeleton-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 16px;
}

.skeleton-text {
    height: 20px;
    margin-bottom: 12px;
}

.skeleton-text.title {
    width: 60%;
    margin: 0 auto 12px;
}

.skeleton-text.subtitle {
    width: 40%;
    margin: 0 auto 12px;
}

.skeleton-button {
    height: 40px;
    width: 100%;
    margin-top: 16px;
}

@keyframes loading {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .loading-container {
        min-height: 300px;
        padding: 2rem;
    }
    
    .loading-spinner {
        width: 60px;
        height: 60px;
    }
    
    .loading-text {
        font-size: 1rem;
    }
}